fixing "raspi firmware" errors on the official amd64 ISO

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
11 Oct 2025 23:22 #336302 by tommylight
@Andy,
sorry i was not aware anyone except Rod is involved into it.

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
11 Oct 2025 23:40 #336304 by tommylight
@Rob,
as long as you are chrooted into the ISO, you can do everything you can on a normally running system, so yes, easy to remove at any point in time while preparing and before building the final ISO.

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

More
12 Oct 2025 03:37 #336308 by unknown
This is kind of preplexing, shouldn't the architecture be arm or similar
Package: raspi-firmware
Architecture: all
Version: 1.20220830+ds-1
Priority: optional
Section: non-free-firmware/misc
Maintainer: pkg-raspi <pkg-raspi-maintainers@lists.alioth.debian.org>
Installed-Size: 22281
Pre-Depends: dpkg (>= 1.17.14)
Depends: dosfstools
Suggests: firmware-brcm80211, firmware-misc-nonfree, bluez-firmware
Breaks: linux-firmware-raspi3 (<< 1.20161123-2), raspi3-firmware (<< 1.20190718-1~)
Replaces: linux-firmware-raspi3 (<< 1.20161123-2), raspi3-firmware (<< 1.20190718-1~)
Filename: pool/non-free-firmware/r/raspi-firmware/raspi-firmware_1.20220830+ds-1_all.deb
Size: 4815784
MD5sum: 02766adeeeea1246010c8a3c2851a73b
SHA1: f37dba3e827325667381703815ac227ee1aa9b64
SHA256: 0094ced47a7fbb6a220ff83e7b43aa637a5d8f6802461e2e4e474597fb796f62
SHA512: 2ef6547b160b9207ce6bdf33572a4eed389c56db0b7172e049c5bf4c8471ee60f7fd5f05fd8bf08075ec4e8baae8a602e219b5592a854ed3e6678222a989a2d7
Homepage: https://github.com/raspberrypi/firmware
Description: Raspberry Pi family GPU firmware and bootloaders
 This package contains all the proprietary files necessary to boot a
 Raspberry Pi board. This should work with all models in the 0, 1, 2, 3 and
 4 families.
 .
 Raspberry Pi is a trademark of the Raspberry Pi Foundation.
The following user(s) said Thank You: tommylight

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

More
12 Oct 2025 08:43 #336310 by unknown
OK I think I've found a fix for this thing when installing from the ISO. The ISO needs rebuilding, the one built failed during the grub install, this was tracked down to an issue to dpkg install when building the ISO.
So I had to do some messing about, to install grub inside the installed system in my virtual machine. I haven't had chance to fix/find out why I had the issue with the ISO.

A small edit is required to the config/includes.install/preseed.cfg
At the end of the file add this line:
d-i preseed/late_command string in-target apt-get -y purge raspi-firmeware
Obviously a new image ISO will need to be created, for this mod to be included.


Whilst the installer still installs raspi-firmware at the end of the install process the above line removes the package. The live session will still have the raspi-firmware but I really haven't heard of anyone attempting to update the kernel on a live session. Still a bit of a hack, but the system once installed to a HDD\SSD or large storage rock it wont have the raspi-firmware installed.

The ISO issue maybe cos I was using Mint to build the image and had to install live-build from the debian repo & there might have been a mis-match......I dunno

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

More
12 Oct 2025 10:49 #336314 by rodw

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)

I blame Debian for not fixing this 12.0 bug in their builder in subsequent releases of Bookworm eg 12.1

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

More
12 Oct 2025 10:56 - 12 Oct 2025 12:27 #336316 by unknown
Still even if it was Debian's fault we should have come up with a fix. I'm attempting to use Live-Build on a Debian install and hopefully I wont have the issue with dpkg and grub. Somehow start-stop-daemon was left out whilst building the ISO.

And it does appear the added line to preseed does what it should do when running the installer from the ISO.


Update:
ISO Build completed successfully on my Debian partition.
Quick eval via install on VirtualBox, successful no raspi-firmware installed, Linuxcnc-2.9.6 installed,
Issues: asks for root passwd, my fault will fix on another build, ISO still identifies as 2.9.4, need to update the config file.

Uploading to Google Drive, once done I'll supply a link, please be aware this is for testing only, issues as stated above need to be fixed. Would be grateful if the "more experienced" members who are aware of the firmware issue could test. Please do not use for a production machine.
BTW the raspi-firmware may still be present in the "Live Session".

Link to ISO:
drive.google.com/file/d/1oT72ciy9cofYArC...1IO/view?usp=sharing
Last edit: 12 Oct 2025 12:27 by unknown.

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

More
12 Oct 2025 16:34 #336332 by andypugh

Issues: asks for root passwd, my fault will fix on another build, ISO still identifies as 2.9.4, need to update the config file.

That should be fixed by this:
github.com/LinuxCNC/linuxcnc-live-build/...aller/preseed.cfg#L1
The following user(s) said Thank You: unknown

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

More
12 Oct 2025 19:15 #336342 by rodw
I was able to block the installation on the ISO (which was done on our installer) but as soon as you do a sudo apt upgrade, the issue comes back. 
Ref: github.com/LinuxCNC/linuxcnc-live-build/...sts/desktop.list#L23
 

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

More
12 Oct 2025 20:24 #336346 by unknown
Thanks Andy, I made a typo in the preseed.cfg on the line for the root account.
Rod that line for blocking raspi-firmware is made null and void by the pressed.cfg line for firmware. So the raspi-firmware package is still installed.
My little mod causes the offending package to be removed during the installation process.
sudo find / -name "*raspi*"
Gives no results when run on first login. On the current ISO the find command lists the offending files from the firmware package.

Installing r8168-dkms completes with no errors when I use my ISO. Listing installed packages returns no results for the firmware package.

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

More
13 Oct 2025 00:05 #336354 by unknown
Found the underlying issue:
#!/bin/sh

set -e

lb config noauto \
	--architectures amd64 \
	--linux-packages linux-image-rt \
	--debootstrap-options "--include=apt-transport-https,ca-certificates,openssl" \
	--distribution bookworm \
	--binary-images iso-hybrid \
	--debian-installer live \
	--archive-areas "main contrib non-free non-free-firmware" \
	--iso-application "LinuxCNC-2.9.6" \
	--iso-preparer "rmurphy@gmx.com" \
	--iso-volume "LinuxCNC_2.9.6" \
	--image-name "LinuxCNC_2.9.6" \
	--iso-publisher "www.linuxcnc.org" \
	--apt-recommends true \
	--security true \
	--updates true \
	--apt-options " --yes --allow-change-held-packages" \
	--bootappend-install "ipv6.disable=1" \
	--parent-mirror-bootstrap http://deb.debian.org/debian \
	--parent-mirror-binary http://deb.debian.org/debian \
	--parent-mirror-chroot-security http://deb.debian.org/debian-security \
	"${@}"

This line
	--architectures amd64 \
is missing from auto/config file

Booting into a live seesion dpkg --list has no entries for raspi-firmware
The following user(s) said Thank You: tommylight

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

Time to create page: 0.130 seconds
Powered by Kunena Forum