Open n-hass opened 9 months ago
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/pi4-broken-on-23-11-uefi-zfs-root/36375/2
Please see my edits in the bug description.
The root cause is actually loading the bcm2711-rpi-cm4.dtb
, not the patched kernel… mainline does not load this dtb, linux_rpi4 does, hence the issue is reproduced only with linux_rpi4. Removing the dtb does not fix the issue. loading the dtb in mainline reproduces the issue.
Could I please have some input on this problem?
I've used linux_rpi4
on a CM4 for more than a year, and never had boot issues. I do have bcm2711-rpi-cm4.dtb
in my dtbs folder.
Is your CM4's bootloader EEPROM updated? You might also want to check your firmware partition's config.txt
(although the one included with the NixOS SD image has worked for me).
Describe the bug
Booting a Raspberry Pi Compute Module 4 with
boot.kernelPackages = pkgs.linuxPackages_rpi4
is not possible. Booting freezes at "Starting kernel ..." and does not progress, no other activity (network, any monitor, serial) can be detected.This is caused by loading the dtb
bcm2711-rpi-cm4.dtb
. When using the mainline kernel, only the dtbsbcm2711-rpi-400.dtb bcm2711-rpi-4-b.dtb bcm2711-rpi-cm4-io.dtb
get placed in the corresponding boot entry files in /boot/nixos directory.The mainline kernel config still tries to look for
bcm2711-rpi-cm4.dtb
, but it does not find it and every boot you will get an error message pre-stage 1:but it continues to boot into stage 1 and so on.
Notably copying the missing dtb to the location that the mainline kernel initrd is looking for so it can load it, causes the same boot failure.
Steps To Reproduce
Steps to reproduce the behavior:
23.05.4930.f741f8a83991-aarch64-linux
or23.11beta509.21af6ad5395b-aarch64-linux
boot.kernelPackages = pkgs.linuxPackages_rpi4
to configuration.nixos-rebuild
and rebootExpected behavior
Boot should progress to login screen.
Additional context
A custom carrier board is being used from Seeed Studio for their EdgeBox RPI-200. Behaviour is reproducible on a standard CM4 IO board though
stdout while booting with linux_rpi4 kernel:
Notify maintainers
@TredwellGit @Ma27 @NeQuissimus @alyssais @thoughtpolice
Metadata
(This is running WITHOUT the kernelPackage as its not possible to boot with it)
Priorities
Add a :+1: reaction to issues you find important.