Auteur: crichmon
Date:
À: dng
Sujet: [DNG] kernel updates on RPi fail
I’ve started using Devuan on my RPi’s for the last while, and the current issue is tied to
a Bluetooth package for reading battery data needing python3.13, which leads to an
upgrade from Daedalus to Excalibur. The upgrade proceeded OK, but the kernel version didn’t
update. After enough goofing around, I did a clean install of Excalibur on an RPi2:
rpi-2+3-devuan-excalibur-6.12.61-armhf-ext4-2025-12-14-0736.img
So far, so good… I tried compiling in a driver for a usb wifi adapter (Realtek 8821au) from a couple
of sources and neither worked, but there was mention that the 6.16+ kernels had the included driver,
so I tried to update the kernel from backports to linux-image-6.16.12+deb13-armmp. Again, things
went OK, but there was this same issue with the ‘cp’ command for initrd.gz I’d seen before.
Unpacking apparmor (4.1.0-1) ...
Setting up linux-image-6.16.12+deb13-armmp (6.16.12-1~bpo13+1) ...
I: /vmlinuz.old is now a symlink to boot/vmlinuz-6.12.61
I: /initrd.img.old is now a symlink to boot/initrd.img-6.12.61
I: /vmlinuz is now a symlink to boot/vmlinuz-6.16.12+deb13-armmp
I: /initrd.img is now a symlink to boot/initrd.img-6.16.12+deb13-armmp
/etc/kernel/postinst.d/dkms:
Automatic installation of modules for kernel 6.16.12+deb13-armmp was skipped since the kernel headers for this kernel do not seem to be installed.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.16.12+deb13-armmp
W: Possible missing firmware /lib/firmware/imx/sdma/sdma-imx7d.bin for built-in driver imx_sdma
W: Possible missing firmware /lib/firmware/imx/sdma/sdma-imx6q.bin for built-in driver imx_sdma
update-initramfs: Generating /boot/broadcom/initrd.gz
cp: target '/boot/broadcom/initrd.gz': No such file or directory
This is the same issue I’d seen earlier with the daedalus to excalibur upgrade. I checked /, /boot, and /boot/broadcom
for how the kernel and initfs was installed and had some inkling about how to manually fix things, which caused a
no-boot condition. I was able to revert the changes moving the SD card to a running system. I tried to figure out what
script related to the kernel install and initramfs stuff was failing, but failed to figure out what was causing the error.
The closest I could find was in /usr/sbin/update-initramfs in set_linked_version, but no mention of initrd.gz is there.
Any suggestions would be appreciated. Docs on whatever this process flow is, is fine.
Thx, Chris