[Apologies in advance if this is not the correct place to report this issue; there is basically no current documentation that I could find on how to boot and run nix on Raspberry Pi Zero 2]
Attempting to boot the Aarch64 SD card images built by Hydra on a Raspberry Pi Zero 2 fails because uboot cannot find gd19f48w8fwcbvb3g0pmfrlyj74zcnb0-linux-5.15.94-dtbs/broadcom/bcm2837-rpi-zero-2.dtb
Based on this line in master:
|
copyDTB bcm2710-rpi-zero-2.dtb bcm2837-rpi-zero-2.dtb |
It appears the file and a few others should be included, but for whatever reason (maybe this linux-rpi is not used or Hydra building off an different branch?) the file is not present in the image.
Here are the files actually present on the flashed SD card:
ls -1 /run/media/${USER}/NIXOS_SD/boot/nixos/gd19f48w8fwcbvb3g0pmfrlyj74zcnb0-linux-5.15.94-dtbs/broadcom
bcm2711-rpi-4-b.dtb
bcm2711-rpi-400.dtb
bcm2837-rpi-3-a-plus.dtb
bcm2837-rpi-3-b-plus.dtb
bcm2837-rpi-3-b.dtb
bcm2837-rpi-cm3-io3.dtb
bcm4908
northstar2
stingray
Steps To Reproduce
Steps to reproduce the behavior:
- Download an AArch64 image from Hydra
- Use etcher or dd to flash a micro sd card
- Insert micro sd and boot a Pi Zero 2
Expected behavior
Expect it to boot to a nixOS shell
Workaround
It is possible to workaround the issue by mounting the micro SD on a operable Linux system by copying the RPi-3-b dtb file to the expected Pi Zero 2 file name:
cd /run/media/${USER}/NIXOS_SD/boot/nixos/gd19f48w8fwcbvb3g0pmfrlyj74zcnb0-linux-5.15.94-dtbs/broadcom/
cp bcm2837-rpi-3-b.dtb bcm2837-rpi-zero-2.dtb
Then unmount the SD and boot with your RPi Zero 2
Notify maintainers
Notify the 2 folks listed as having touched the RPi Zero 2 dtb line in linux-rpi.nix
@leo60228
@zhaofengli
[Apologies in advance if this is not the correct place to report this issue; there is basically no current documentation that I could find on how to boot and run nix on Raspberry Pi Zero 2]
Attempting to boot the Aarch64 SD card images built by Hydra on a Raspberry Pi Zero 2 fails because uboot cannot find
gd19f48w8fwcbvb3g0pmfrlyj74zcnb0-linux-5.15.94-dtbs/broadcom/bcm2837-rpi-zero-2.dtbBased on this line in
master:nixpkgs/pkgs/os-specific/linux/kernel/linux-rpi.nix
Line 78 in 270de46
It appears the file and a few others should be included, but for whatever reason (maybe this linux-rpi is not used or Hydra building off an different branch?) the file is not present in the image.
Here are the files actually present on the flashed SD card:
Steps To Reproduce
Steps to reproduce the behavior:
Expected behavior
Expect it to boot to a nixOS shell
Workaround
It is possible to workaround the issue by mounting the micro SD on a operable Linux system by copying the RPi-3-b dtb file to the expected Pi Zero 2 file name:
Then unmount the SD and boot with your RPi Zero 2
Notify maintainers
Notify the 2 folks listed as having touched the RPi Zero 2 dtb line in
linux-rpi.nix@leo60228
@zhaofengli