Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Re: Raspi 4 debian image update-initramfs

182 views
Skip to first unread message

Vorak David Hoeung

unread,
Apr 23, 2021, 10:30:03 AM4/23/21
to
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.

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

Diederik de Haas

unread,
Apr 23, 2021, 6:20:02 PM4/23/21
to
On vrijdag 23 april 2021 16:27:05 CEST Vorak David Hoeung wrote:
> Have you any idea ?

You need a newer image which contains initramfs-tools version 0.140, where the
reset_raspberrypi module gets included. You need that for USB boot to work.
You should try a daily built image as that does have the updated initramfs-
tools version.
signature.asc

Vorak David Hoeung

unread,
Apr 26, 2021, 10:00:02 AM4/26/21
to
Hello Diederik,

Yes it works with initramfs-tools version 0.140 from bullseye on USB.

I have tested :

https://raspi.debian.net/verified/20210210_raspi_4_buster.img.xz
It boots on USB. But after upgrade, kernel updated, it cannot boot any more.

https://raspi.debian.net/daily/raspi_4_buster.img.xz
It cannot boot on USB.

https://raspi.debian.net/verified/20210413_raspi_4_bullseye.img.xz
It boots on USB. Upgrade, upgrade kernel, update-initramfs is called. It still boots.

https://raspi.debian.net/daily/raspi_4_bullseye.img.xz
It boots on USB. Upgrade. cryptsetup and lvm2 is installed, update-initramfs is called. It still boots.

So I'll used initramfs-tools from bullseye.

Thanks a lot.

--
David


----- Mail original -----
0 new messages