fixing "raspi firmware" errors on the official amd64 ISO

More
1 year 1 month ago - 1 year 1 month ago #335346 by unknown
Could we make this a sticky.

Fix for RPi-firmware errors see this post:
forum.linuxcnc.org/9-installing-linuxcnc...-64?start=110#290282
Last edit: 1 year 1 month ago by unknown. Reason: Better decriptive heding

Please Log in or Create an account to join the conversation.

More
1 year 1 month ago - 1 year 3 weeks ago #335347 by tommylight
The above link/post does not fix the issue, so try this
Code:
sudo apt purge *raspi*
Still needs those two lines from the middle of the above linked post.
Last edit: 1 year 3 weeks ago by tommylight. Reason: more info
The following user(s) said Thank You: unknown

Please Log in or Create an account to join the conversation.

More
1 year 3 weeks ago - 1 year 3 weeks ago #336255 by unknown
More Details

You try to upgrade, add a package or install dkms and you get the following:
Code:
dkms: running auto installation service for kernel 6.1.0-40-amd64. dkms: autoinstall for kernel: 6.1.0-40-amd64. Setting up libqt5opengl5:amd64 (5.15.8+dfsg-11+deb12u3) ... Setting up linux-headers-rt-amd64 (6.1.153-1) ... Setting up libgimp2.0:amd64 (2.10.34-1+deb12u3) ... Setting up libpoppler-qt5-1:amd64 (22.12.0-2+deb12u1) ... Setting up linux-headers-amd64 (6.1.153-1) ... Processing triggers for systemd (252.39-1~deb12u1) ... Processing triggers for man-db (2.11.2-2) ... Processing triggers for dbus (1.14.10-1~deb12u1) ... Processing triggers for shared-mime-info (2.2-1) ... Processing triggers for debianutils (5.7-0.5~deb12u1) ... Processing triggers for mailcap (3.70+nmu1) ... Processing triggers for desktop-file-utils (0.26-1) ... Processing triggers for hicolor-icon-theme (0.17-2) ... Processing triggers for libc-bin (2.36-9+deb12u13) ... Processing triggers for initramfs-tools (0.142+deb12u3) ... update-initramfs: Generating /boot/initrd.img-6.1.0-40-rt-amd64 raspi-firmware: missing /boot/firmware, did you forget to mount it? run-parts: /etc/initramfs/post-update.d//z50-raspi-firmware exited with return c ode 1 dpkg: error processing package initramfs-tools (--configure): installed initramfs-tools package post-installation script subprocess returned error exit status 1 Processing triggers for ca-certificates (20230311+deb12u1) ... Updating certificates in /etc/ssl/certs... 0 added, 0 removed; done. Running hooks in /etc/ca-certificates/update.d... done. Errors were encountered while processing: linux-image-6.1.0-40-rt-amd64 linux-image-rt-amd64 initramfs-tools E: Sub-process /usr/bin/dpkg returned an error

The error starts here:
update-initramfs: Generating /boot/initrd.img-6.1.0-40-rt-amd64

The error messages are here:

raspi-firmware: missing /boot/firmware, did you forget to mount it?
run-parts: /etc/initramfs/post-update.d//z50-raspi-firmware exited with return c
ode 1
dpkg: error processing package initramfs-tools (--configure):
installed initramfs-tools package post-installation script subprocess returned
error exit status 1
Processing triggers for ca-certificates (20230311+deb12u1) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
Errors were encountered while processing:
linux-image-6.1.0-40-rt-amd64
linux-image-rt-amd64
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)


The bad thing is here is here:

raspi-firmware: missing /boot/firmware, did you forget to mount it?
run-parts: /etc/initramfs/post-update.d//z50-raspi-firmware exited with return c
ode 1


Fear not My Little Ones. We have an answer.


Code:
sudo rm /etc/{initramfs/post-update.d/,kernel/{postinst.d/,postrm.d/}}z50-raspi-firmware sudo apt purge *raspi*
as noted by tommy above.


For a belts and braces check
Code:
sudo apt update


Now everything is good.

For further details you can refer to this thread:
forum.linuxcnc.org/9-installing-linuxcnc...ng-with-installation
Last edit: 1 year 3 weeks ago by unknown.
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
1 year 3 weeks ago #336257 by tommylight
I edited my previous post to reflect that it does require running both those lines.
Thank you.
The following user(s) said Thank You: unknown

Please Log in or Create an account to join the conversation.

More
1 year 3 weeks ago #336258 by unknown
Hopefully this should cover it, and there will no need to have 2 pages per thread, per instance.
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
1 year 3 weeks ago #336262 by unknown
A small shell script
download the file and open the directory (containing the file)in a terminal 

File Attachment:

File Name: amd64-rpi-...-fix.txt
File Size:140 B

Code:
cp amd64-rpi-firmware-fix.txt amd64-rpi-firmware-fix.sh chmod x amd64-rpi-firmware-fix.sh ./amd64-rpi-firmware-fix.sh

You can delete the files when done.

Please Log in or Create an account to join the conversation.

Time to create page: 0.075 seconds
Powered by Kunena Forum