gnu: bootloader: Add orangepi-zero2w bootloader.

* gnu/bootloader/u-boot.scm (u-boot-orangepi-zero2w-bootloader): Add
variable.
* gnu/packages/bootloaders.scm (u-boot-orangepi-zero2w): Add variable.
* gnu/packages/firmware.scm (arm-trusted-firmware-sun50i-h616): Add
variable.

Change-Id: Idb43fdabac51b3301f3bea24fec72bfa29636489
This commit is contained in:
Herman Rimm 2023-11-20 15:10:15 +01:00 committed by Ryan Schanzenbacher
parent 0b06788009
commit f321a5022d
Signed by: ryan77627
GPG key ID: 81B0E222A3E2308E
3 changed files with 30 additions and 0 deletions

View file

@ -41,6 +41,7 @@ (define-module (gnu bootloader u-boot)
u-boot-nintendo-nes-classic-edition-bootloader
u-boot-novena-bootloader
u-boot-orangepi-r1-plus-lts-rk3328-bootloader
u-boot-orangepi-zero2w-bootloader
u-boot-pine64-plus-bootloader
u-boot-pine64-lts-bootloader
u-boot-pinebook-bootloader
@ -296,6 +297,11 @@ (define u-boot-orangepi-r1-plus-lts-rk3328-bootloader
(package u-boot-orangepi-r1-plus-lts-rk3328)
(disk-image-installer install-orangepi-r1-plus-lts-rk3328-u-boot)))
(define u-boot-orangepi-zero2w-bootloader
(bootloader
(inherit u-boot-allwinner-bootloader)
(package u-boot-orangepi-zero2w)))
(define u-boot-pine64-plus-bootloader
(bootloader
(inherit u-boot-allwinner64-bootloader)

View file

@ -1188,6 +1188,24 @@ (define*-public (make-u-boot-sunxi64-package board triplet scp-firmware
(modify-inputs (package-inputs base)
(append arm-trusted-firmware-sun50i-a64))))))
(define-public u-boot-orangepi-zero2w
(let ((base (make-u-boot-package
"orangepi_zero2w" "aarch64-linux-gnu")))
(package
(inherit base)
(arguments
(substitute-keyword-arguments (package-arguments base)
((#:phases phases)
#~(modify-phases #$phases
(add-after 'unpack 'set-environment
(lambda* (#:key native-inputs inputs #:allow-other-keys)
(setenv "SCP" "/dev/null")
(setenv "BL31" (search-input-file inputs "bl31.bin"))))))))
(inputs
(modify-inputs (package-inputs base)
;; The Zero 2W uses the slightly revised Allwinner H618.
(append arm-trusted-firmware-sun50i-h616))))))
(define-public u-boot-pine64-plus
(make-u-boot-sunxi64-package "pine64_plus" "aarch64-linux-gnu"
(delay crust-pine64-plus)))

View file

@ -1165,6 +1165,12 @@ (define-public arm-trusted-firmware-sun50i-a64
(inherit base)
(name "arm-trusted-firmware-sun50i-a64"))))
(define-public arm-trusted-firmware-sun50i-h616
(let ((base (make-arm-trusted-firmware "sun50i_h616")))
(package
(inherit base)
(name "arm-trusted-firmware-sun50i-h616"))))
(define-public arm-trusted-firmware-rk3328
(make-arm-trusted-firmware "rk3328"))