fixing "raspi firmware" errors on the official amd46 ISO

More
23 Sep 2025 23:51 - 24 Sep 2025 02:49 #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: 24 Sep 2025 02:49 by unknown. Reason: Better decriptive heding

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
24 Sep 2025 00:25 - 11 Oct 2025 02:49 #335347 by tommylight
The above link/post does not fix the issue, so try this
sudo apt purge *raspi*
Still needs those two lines from the middle of the above linked post.
Last edit: 11 Oct 2025 02:49 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
11 Oct 2025 01:44 - 11 Oct 2025 01:50 #336255 by unknown
More Details

You try to upgrade, add a package or install dkms and you get the following:
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.


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
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: 11 Oct 2025 01:50 by unknown.
The following user(s) said Thank You: tommylight

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
11 Oct 2025 02:51 #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
11 Oct 2025 02:59 #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
11 Oct 2025 04:42 #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:0 KB

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.
Attachments:

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

  • andypugh
  • andypugh's Avatar
  • Away
  • Moderator
  • Moderator
More
11 Oct 2025 19:06 - 11 Oct 2025 19:07 #336289 by andypugh
bugs.debian.org/cgi-bin/bugreport.cgi?bug=1065640

It looks to have been recently fixed upstream.

(I am still not clear if you are blaming me, Rod or Roland Clobus)
Last edit: 11 Oct 2025 19:07 by andypugh.

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
11 Oct 2025 20:01 #336293 by tommylight
Waiting to confirm something by unknown.

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

More
11 Oct 2025 21:25 #336296 by unknown

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

More
11 Oct 2025 21:28 #336297 by unknown
Just a thought, if this still persists with the installer is there a way to check for the existence of the firmware and remove it if found during the stage when the installer on the ISO removed packages ?
I guess this would have to be a custom script, and a band aid type of fix. You know in case this beast raises its head again.

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

Time to create page: 0.287 seconds
Powered by Kunena Forum