|
|
@ -23,27 +23,22 @@ kernel=u-boot.bin |
|
|
|
#~(lambda (bootloader device mount-point) |
|
|
|
#~(lambda (bootloader device mount-point) |
|
|
|
(let ((u-boot (string-append bootloader "/libexec/u-boot.bin")) |
|
|
|
(let ((u-boot (string-append bootloader "/libexec/u-boot.bin")) |
|
|
|
(install-dir (string-append mount-point "/boot"))) |
|
|
|
(install-dir (string-append mount-point "/boot"))) |
|
|
|
;; Autoload Nonguix*, so we only have a soft dependency. |
|
|
|
|
|
|
|
;; * <https://gitlab.com/nonguix/nonguix> |
|
|
|
|
|
|
|
(module-autoload! (current-module) |
|
|
|
|
|
|
|
'(nongnu packages linux) '(raspberrypi-firmware)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;; Install raspberrypi-firmware |
|
|
|
;; Install raspberrypi-firmware |
|
|
|
(for-each (lambda (file) |
|
|
|
;; (for-each (lambda (file) |
|
|
|
(install-file |
|
|
|
;; (install-file |
|
|
|
(string-append raspberrypi-firmware "/" file) install-dir)) |
|
|
|
;; (string-append #$raspberrypi-firmware "/" file) install-dir)) |
|
|
|
'(;; VideoCore firmwares |
|
|
|
;; '(;; VideoCore firmwares |
|
|
|
"start4.elf" ;basic |
|
|
|
;; "start4.elf" ;basic |
|
|
|
"start4x.elf" ;camera drivers and codec |
|
|
|
;; "start4x.elf" ;camera drivers and codec |
|
|
|
"start4cd.elf" ;cut-down |
|
|
|
;; "start4cd.elf" ;cut-down |
|
|
|
"start4db.elf" ;debug |
|
|
|
;; "start4db.elf" ;debug |
|
|
|
;; Linker files |
|
|
|
;; ;; Linker files |
|
|
|
"fixup4.dat" |
|
|
|
;; "fixup4.dat" |
|
|
|
"fixup4x.dat" |
|
|
|
;; "fixup4x.dat" |
|
|
|
"fixup4cd.dat" |
|
|
|
;; "fixup4cd.dat" |
|
|
|
"fixup4db.dat" |
|
|
|
;; "fixup4db.dat" |
|
|
|
;; Device Tree Overlays (for Raspberry Pi's bootloader) |
|
|
|
;; ;; Device Tree Overlays (for Raspberry Pi's bootloader) |
|
|
|
"bcm2711-rpi-4-b.dtb")) |
|
|
|
;; "bcm2711-rpi-4-b.dtb")) |
|
|
|
;; Install u-boot |
|
|
|
;; Install u-boot |
|
|
|
(install-file u-boot install-dir) |
|
|
|
(install-file u-boot install-dir) |
|
|
|
;; Raspberry Pi's bootloader configuration |
|
|
|
;; Raspberry Pi's bootloader configuration |
|
|
|