Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bullseye not droping to initramfs #7

Open
topuli opened this issue Nov 19, 2021 · 5 comments
Open

bullseye not droping to initramfs #7

topuli opened this issue Nov 19, 2021 · 5 comments

Comments

@topuli
Copy link

topuli commented Nov 19, 2021

to be clear, this is not a problem of this guide it is a problem that comes with the latest raspberry os version.
to boot into initramfs /boot/config.txt should contain dtoverlay=vc4-fkms-v3d instead of dtoverlay=vc4-kms-v3d

@unicorn-farts
Copy link

Thanks for this!

@3lion
Copy link

3lion commented Dec 5, 2021

i applied this, but on bullseye i get this error on the PI400:

pi@raspberrypi:~ $ sudo -E CRYPTSETUP=y mkinitramfs -o /boot/initramfs.gz
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8156b-2.fw for built-in driver r8152
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8156a-2.fw for built-in driver r8152
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8153c-1.fw for built-in driver r8152
cryptsetup: ERROR: Couldn't resolve device /dev/root
cryptsetup: WARNING: Couldn't determine root device
E: /etc/initramfs-tools/hooks/luks_hooks failed with return 1.
pi@raspberrypi:~ $

@topuli
Copy link
Author

topuli commented Dec 6, 2021

i applied this, but on bullseye i get this error on the PI400:

pi@raspberrypi:~ $ sudo -E CRYPTSETUP=y mkinitramfs -o /boot/initramfs.gz W: Possible missing firmware /lib/firmware/rtl_nic/rtl8156b-2.fw for built-in driver r8152 W: Possible missing firmware /lib/firmware/rtl_nic/rtl8156a-2.fw for built-in driver r8152 W: Possible missing firmware /lib/firmware/rtl_nic/rtl8153c-1.fw for built-in driver r8152 cryptsetup: ERROR: Couldn't resolve device /dev/root cryptsetup: WARNING: Couldn't determine root device E: /etc/initramfs-tools/hooks/luks_hooks failed with return 1. pi@raspberrypi:~ $

This is a warning about Realtek drivers. As you are building the initial ramfs on the raspberry, you can ignore the missing firmware errors. The other error can also be ignored as long as the new programs are in the initial ramfs. How to check this is explained in this guide.

@andrewchen5678
Copy link

Can you update the doc for this? I spent a day trying to get it work for bullseye arm64 because it kept on rebooting with initramfs on until I see this.

@Loggsie
Copy link

Loggsie commented Nov 12, 2022

Perfect guide, however for a headless Pi incorporating a pre-boot Dropbear SSH to allow headless entry of the decryption key would be of use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants