sd-image-aarch64: add support for the RaspberryPi CM4

main
Bernardo Meurer 2 years ago
parent 2975ad1195
commit d1fef1e7c3
No known key found for this signature in database
GPG Key ID: F4C0D53B8D14C246
  1. 14
      nixos/modules/installer/sd-card/sd-image-aarch64.nix

@ -39,6 +39,17 @@
# Supported in newer board revisions
arm_boost=1
[cm4]
kernel=u-boot-rpi4.bin
enable_gic=1
armstub=armstub8-gic.bin
disable_overscan=1
# Enable host mode on the 2711 built-in XHCI USB controller.
# This line should be removed if the legacy DWC2 controller is required
# (e.g. for USB device mode) or if USB support is not required.
otg_mode=1
[all]
# Boot in 64-bit mode.
arm_64bit=1
@ -65,6 +76,9 @@
cp ${pkgs.ubootRaspberryPi4_64bit}/u-boot.bin firmware/u-boot-rpi4.bin
cp ${pkgs.raspberrypi-armstubs}/armstub8-gic.bin firmware/armstub8-gic.bin
cp ${pkgs.raspberrypifw}/share/raspberrypi/boot/bcm2711-rpi-4-b.dtb firmware/
# Add cm4 specific files
cp ${pkgs.raspberrypifw}/share/raspberrypi/boot/bcm2711-rpi-cm4.dtb firmware/
'';
populateRootCommands = ''
mkdir -p ./files/boot

Loading…
Cancel
Save