;;; Raspberry Pi 4 U-Boot with a memory layout that fits a Guix kernel. ;;; ;;; Upstream rpi.env reserves only ~36 MB for the kernel at 0x80000 and puts ;;; the FDT at 0x02600000 and the initrd at 0x02700000. booti relocates our ;;; Image (image_size ~36.4 MB) to 0x200000, so it would overwrite both. See ;;; patches/rpi-env-layout.patch for the new layout. (define-module (u-boot-rpi-arm64-guix-router) #:use-module (gnu packages bootloaders) #:use-module (guix packages) #:use-module (guix gexp)) (define-public u-boot-rpi-arm64-guix-router (package (inherit u-boot-rpi-arm64) (name "u-boot-rpi-arm64-guix-router") (source (origin (inherit (package-source u-boot-rpi-arm64)) (patches (append (origin-patches (package-source u-boot-rpi-arm64)) (list (local-file "patches/rpi-env-layout.patch")))))))) u-boot-rpi-arm64-guix-router