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
Signed-off-by: Vagrant Cascadian <vagrant@debian.org>
This commit is contained in:
Herman Rimm 2024-12-13 22:07:35 +01:00 committed by Vagrant Cascadian
parent 0c88ec2560
commit 6e41ca397d
No known key found for this signature in database
GPG key ID: DC518FC87F9716AA
3 changed files with 27 additions and 0 deletions

View file

@ -41,6 +41,7 @@
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
@ -225,6 +226,11 @@ is BLOCK-SIZE * COUNT, or FILE size if COUNT is not given."
(inherit u-boot-rockchip-bootloader)
(package u-boot-orangepi-r1-plus-lts-rk3328)))
(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

@ -1214,6 +1214,24 @@ removed so that it fits within common partitioning schemes.")))
(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

@ -1172,6 +1172,9 @@ interface standards, such as:
(define-public arm-trusted-firmware-sun50i-a64
(make-arm-trusted-firmware "sun50i_a64"))
(define-public arm-trusted-firmware-sun50i-h616
(make-arm-trusted-firmware "sun50i_h616"))
(define-public arm-trusted-firmware-rk3328
(make-arm-trusted-firmware "rk3328"))