-
Notifications
You must be signed in to change notification settings - Fork 1.7k
initramfs selection broken when kernel=kernel8.img #1965
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
Comments
Thanks for reporting this - it's clearly a bug, and an easy one to fix. https://drive.google.com/file/d/1OxmVXmUHBH5woHupzSoWrubbax0SXfdg/view?usp=sharing contains an EEPROM image with a patch that should fix the problem. Once you've extracted the .bin file from the zip, install it with:
|
Tested and confirmed fix. Will it be in the next eeprom update? Thx! |
The change hasn't been approved and merged yet, but I think it's unlikely we'll make a release before it gets merged, so yes. |
Perfect. Thanks again! |
Thanks! Maybe you can also update auto_initramfs documentation. While debugging this issue, the description was confusing. It should probably say that it selects initramfs based on the autodetected kernel name. But how does it behave when an explicit kernel is selected (but no initramfs)? |
There's another auto_initramfs implementation that works for custom kernel names. The only requirements are that the kernel image name starts with Update: The This scheme obviously works with the names currently used with RPiOS, but also allows for other variations. The new image is available here: https://drive.google.com/file/d/1RL4HNb-5AyyIOc_JyNqqAumqc2SZxJwE/view?usp=drive_link |
Describe the bug
Something is broken in initramfs loading with
kernel=kernel8.img
on a Pi5, such that the wrong initramfs is loaded.Steps to reproduce the behaviour
break=premount
to /boot/firmware/cmdline.txtlsmod
displays a few modules that have already been loadedexit
initramfs and the system will continue bootingkernel=kernel8.img
lsmod
displays only the listing header and NO modulesexit
initramfs and the system will continue bootingauto_initramfs=1
initramfs initramfs8 followkernel
lsmod
works again, showing loaded modulesWhile this is not a problem in the normal use case, trying to use
cryptsetup
in initramfs fails due to the incorrect initramfs being loaded.See https://gitlab.com/cryptsetup/cryptsetup/-/issues/940 for additional details and comments from the cryptsetup developer, Milan Broz.
Device (s)
Raspberry Pi 5
System
https://pastebin.com/UEh3iz2h
Logs
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: