summary refs log tree commit diff
path: root/nixos/modules/system/boot/loader/raspberrypi/raspberrypi-builder.sh
diff options
context:
space:
mode:
authorThomas Kerber <tk@drwx.org>2019-08-17 17:42:22 +0100
committerThomas Kerber <tk@drwx.org>2019-09-17 04:05:16 +0100
commitcc5baf2d8671d2f2dd9e00fc8bbc96d769ec27e0 (patch)
treebf311377d69ed13987867bdc75ba1be92a3f9e71 /nixos/modules/system/boot/loader/raspberrypi/raspberrypi-builder.sh
parent7f523f4d7e1f6eea06094e59ab6f55730ec0eb2e (diff)
downloadnixpkgs-cc5baf2d8671d2f2dd9e00fc8bbc96d769ec27e0.tar
nixpkgs-cc5baf2d8671d2f2dd9e00fc8bbc96d769ec27e0.tar.gz
nixpkgs-cc5baf2d8671d2f2dd9e00fc8bbc96d769ec27e0.tar.bz2
nixpkgs-cc5baf2d8671d2f2dd9e00fc8bbc96d769ec27e0.tar.lz
nixpkgs-cc5baf2d8671d2f2dd9e00fc8bbc96d769ec27e0.tar.xz
nixpkgs-cc5baf2d8671d2f2dd9e00fc8bbc96d769ec27e0.tar.zst
nixpkgs-cc5baf2d8671d2f2dd9e00fc8bbc96d769ec27e0.zip
Various: Add support for raspberry pi 4.
Diffstat (limited to 'nixos/modules/system/boot/loader/raspberrypi/raspberrypi-builder.sh')
-rw-r--r--nixos/modules/system/boot/loader/raspberrypi/raspberrypi-builder.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/loader/raspberrypi/raspberrypi-builder.sh b/nixos/modules/system/boot/loader/raspberrypi/raspberrypi-builder.sh
index 0fb07de10c0..c8b5bf2e61a 100644
--- a/nixos/modules/system/boot/loader/raspberrypi/raspberrypi-builder.sh
+++ b/nixos/modules/system/boot/loader/raspberrypi/raspberrypi-builder.sh
@@ -71,7 +71,7 @@ addEntry() {
 
     local kernel=$(readlink -f $path/kernel)
     local initrd=$(readlink -f $path/initrd)
-    local dtb_path=$(readlink -f $path/kernel-modules/dtbs)
+    local dtb_path=$(readlink -f $path/dtbs)
 
     if test -n "@copyKernels@"; then
         copyToKernelsDir $kernel; kernel=$result
@@ -113,10 +113,18 @@ done
 fwdir=@firmware@/share/raspberrypi/boot/
 copyForced $fwdir/bootcode.bin  $target/bootcode.bin
 copyForced $fwdir/fixup.dat     $target/fixup.dat
+copyForced $fwdir/fixup4.dat    $target/fixup4.dat
+copyForced $fwdir/fixup4cd.dat  $target/fixup4cd.dat
+copyForced $fwdir/fixup4db.dat  $target/fixup4db.dat
+copyForced $fwdir/fixup4x.dat   $target/fixup4x.dat
 copyForced $fwdir/fixup_cd.dat  $target/fixup_cd.dat
 copyForced $fwdir/fixup_db.dat  $target/fixup_db.dat
 copyForced $fwdir/fixup_x.dat   $target/fixup_x.dat
 copyForced $fwdir/start.elf     $target/start.elf
+copyForced $fwdir/start4.elf    $target/start4.elf
+copyForced $fwdir/start4cd.elf  $target/start4cd.elf
+copyForced $fwdir/start4db.elf  $target/start4db.elf
+copyForced $fwdir/start4x.elf   $target/start4x.elf
 copyForced $fwdir/start_cd.elf  $target/start_cd.elf
 copyForced $fwdir/start_db.elf  $target/start_db.elf
 copyForced $fwdir/start_x.elf   $target/start_x.elf