nikhiljha / pp-fedora-sdsetup

PinePhone Fedora Image Generation Script
GNU General Public License v3.0
107 stars 21 forks source link

Freezes during boot when using initramfs #123

Open Siroj42 opened 2 years ago

Siroj42 commented 2 years ago

I've been trying to get full disk encryption working, but there is one issue: To unlock the disk during boot, the kernel needs to start with initramfs, which it currently does not do by default. However, when building an initramfs image with dracut and then rebooting, the Pinephone's screen stays black. When booting the same image on a raspberry pi 400 (to see the bootloader output), it seems to hang when starting the kernel. Does anyone have an idea what could be done to make the initramfs work?

alh61 commented 2 years ago

Sorry for the late answer. Our images are made with the megi-kernel, which is small and fast, and doesn't need initramfs. As such, the boot process is not set up to load any initramfs - thats why it fails for you. Control of loading the kernel, dtb and initramfs is done in the boot.scr file (which is a compiled version of the boot.cmd file).