Hello,
I have a problem with a raspberry Pi 400 and initramfs.
I have modified the boot from SDCard to USB, and removed the SDCard.
Using the USB is more convenient for me.
I have downloaded the tested image https://raspi.debian.net/verified/20210210_raspi_4_buster.img.xz
And dd to an USB flashdrive
xzcat raspi_3.img.xz | sudo dd of=/dev/{USB_DEVICE} bs=64k oflag=dsync status=progress
I boot and loggued as root.
Run
# apt update
# apt upgrade
The new kernel 5.10 is installed with the 5.9.
In /boot/firmware/cmdline.txt
root=/dev/sda2
cma=64M has been added
/dev/sda2 is correct.
I reboot, but boot hangs.
As suggested in this thread and in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=964915
In /boot/firmware/cmdline.txt
ttyS1 is removed
/dev/sda2 is replaced by LABEL=RASPIROOT
(cma is removed too)
But it still hangs.
Begin: Running /scripts/local-block ... done.
Gave up waiting for root file system device.
ALERT! LABEL=RASPIROOT does not exist. Dropping to a shell!
BusyBox v1.30.1
(initramfs)
but keyboard is not responding ...
I changed in /boot/firmware/config.txt to use back kernel (vmlinuz and initrd.img) 5.9 instead of 5.10, and this time it boots !
But something is wrong with update-initramfs when 5.10 was installed.
I tried to compare the contents of initrd.img but didn't find anything. The same for files in Raspifirm.
I wish to use use plymouth, lvm2 and cryptsetup, but it is not possible. Each time of update-initramfs is called, I cannot boot again ...
Have you any idea ?
Thanks a lot in advance.
--
David