From: Herman Rimm via Guix-patches via <guix-patches@gnu.org>
To: 72987@debbugs.gnu.org
Cc: Efraim Flashner <efraim@flashner.co.il>,
Vagrant Cascadian <vagrant@debian.org>
Subject: [bug#72987] [PATCH v3 5/5] gnu: bootloader: Add ASUS Tinker Board S bootloader.
Date: Fri, 13 Dec 2024 22:07:36 +0100 [thread overview]
Message-ID: <aa942aa5c8e550aa6d3f4c8c80840107c70d5957.1734122005.git.herman@rimm.ee> (raw)
In-Reply-To: <cover.1734122005.git.herman@rimm.ee>
* gnu/bootloader/u-boot.scm (install-tinker-s-rk3288-u-boot,
u-boot-tinker-s-rk3288-bootloader): Add variables.
* gnu/packages/bootloaders.scm (u-boot)[native-inputs]: Add bc.
(u-boot-tinker-s-rk3288): Add variable.
* gnu/packages/firmware.scm (arm-trusted-firmware-rk3288): Add variable.
Change-Id: Ic28193d4377c672f4cbbac4cc059e283fcfb06e0
---
gnu/bootloader/u-boot.scm | 10 ++++++++++
gnu/packages/bootloaders.scm | 20 +++++++++++++++++++-
gnu/packages/firmware.scm | 6 ++++++
3 files changed, 35 insertions(+), 1 deletion(-)
diff --git a/gnu/bootloader/u-boot.scm b/gnu/bootloader/u-boot.scm
index 52527ab0db..0d6cd5c6a8 100644
--- a/gnu/bootloader/u-boot.scm
+++ b/gnu/bootloader/u-boot.scm
@@ -53,6 +53,7 @@ (define-module (gnu bootloader u-boot)
u-boot-sifive-unmatched-bootloader
u-boot-qemu-riscv64-bootloader
u-boot-starfive-visionfive2-bootloader
+ u-boot-tinker-s-rk3288-bootloader
u-boot-ts7970-q-2g-1000mhz-c-bootloader
u-boot-wandboard-bootloader))
@@ -115,6 +116,9 @@ (define install-puma-rk3399-u-boot
(define install-rockchip-u-boot
(write-u-boot-image '(("idbloader.img" 64) ("u-boot.itb" 16384)) 512))
+(define install-tinker-s-rk3288-u-boot
+ (write-u-boot-image '(("idbloader.img" 64) ("u-boot.img" 16384)) 512))
+
(define install-sifive-unmatched-u-boot
(write-u-boot-image '(("spl/u-boot-spl.bin" 34) ("u-boot.itb" 2082))
512))
@@ -273,6 +277,12 @@ (define u-boot-pinebook-pro-rk3399-bootloader
(inherit u-boot-rockchip-bootloader)
(package u-boot-pinebook-pro-rk3399)))
+(define u-boot-tinker-s-rk3288-bootloader
+ (bootloader
+ (inherit u-boot-bootloader)
+ (package u-boot-tinker-s-rk3288)
+ (disk-image-installer install-tinker-s-rk3288-u-boot)))
+
(define u-boot-ts7970-q-2g-1000mhz-c-bootloader
;; This bootloader doesn't really need to be installed, as it is read from
;; an SPI memory chip, not the SD card. It is copied to /boot/u-boot.imx
diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm
index b91ff00e28..4516e343b2 100644
--- a/gnu/packages/bootloaders.scm
+++ b/gnu/packages/bootloaders.scm
@@ -39,6 +39,7 @@
(define-module (gnu packages bootloaders)
#:use-module (gnu packages)
+ #:use-module (gnu packages algebra)
#:use-module (gnu packages assembly)
#:use-module (gnu packages base)
#:use-module (gnu packages disk)
@@ -763,7 +764,8 @@ (define u-boot
"u-boot-rockchip-inno-usb.patch"))))
(build-system gnu-build-system)
(native-inputs
- (list bison
+ (list bc
+ bison
dtc
gnutls
flex
@@ -1308,6 +1310,22 @@ (define-public u-boot-cubietruck
(define-public u-boot-puma-rk3399
(make-u-boot-rockchip-package "puma" 'rk3399))
+(define-public u-boot-tinker-s-rk3288
+ (let ((base (make-u-boot-package "tinker-s-rk3288" "arm-linux-gnueabihf")))
+ (package
+ (inherit base)
+ (arguments
+ (substitute-keyword-arguments (package-arguments base)
+ ((#:phases phases)
+ #~(modify-phases #$phases
+ (add-after 'unpack 'set-environment
+ (lambda* (#:key inputs #:allow-other-keys)
+ ;; ARMv7 does not have the BL31 stage.
+ (setenv "BL32" (search-input-file inputs "/bl32.elf"))))))))
+ (inputs
+ (modify-inputs (package-inputs base)
+ (append arm-trusted-firmware-rk3288))))))
+
(define-public u-boot-qemu-arm
(make-u-boot-package "qemu_arm" "arm-linux-gnueabihf"
;; Disable features that require OpenSSL due
diff --git a/gnu/packages/firmware.scm b/gnu/packages/firmware.scm
index d89b136c86..670cef5a02 100644
--- a/gnu/packages/firmware.scm
+++ b/gnu/packages/firmware.scm
@@ -1171,6 +1171,12 @@ (define-public arm-trusted-firmware-sun50i-a64
(define-public arm-trusted-firmware-sun50i-h616
(make-arm-trusted-firmware "sun50i_h616"))
+(define-public arm-trusted-firmware-rk3288
+ (make-arm-trusted-firmware "rk3288" #:triplet "arm-linux-gnueabihf"
+ #:make-flags '("ARCH=aarch32"
+ "AARCH32_SP=sp_min"
+ "DEBUG=1")))
+
(define-public arm-trusted-firmware-rk3328
(make-arm-trusted-firmware "rk3328"))
--
2.45.2
prev parent reply other threads:[~2024-12-13 21:09 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-02 19:04 [bug#72987] [PATCH] gnu: u-boot: Enlarge space available for kernel Herman Rimm via Guix-patches via
2024-09-15 22:12 ` Ludovic Courtès
2024-09-16 17:24 ` [bug#72987] [PATCH v2] " Herman Rimm via Guix-patches via
2024-09-16 21:05 ` [bug#72987] u-boot: rpi: " Vagrant Cascadian
2024-09-19 14:11 ` Simon Glass
2024-09-16 21:10 ` [bug#72987] [PATCH v2] gnu: u-boot: " Vagrant Cascadian
2024-09-19 10:50 ` [bug#70131] " Herman Rimm via Guix-patches via
2024-09-20 21:52 ` Vagrant Cascadian
2024-12-13 21:07 ` [bug#72987] [PATCH v3 0/5] Add U-Boot patches and bootloaders Herman Rimm via Guix-patches via
2024-12-13 21:07 ` [bug#72987] [PATCH v3 1/5] gnu: u-boot: Enlarge space available for kernel Herman Rimm via Guix-patches via
2024-12-13 21:07 ` [bug#72987] [PATCH v3 2/5] gnu: bootloader: Add nanopi-r4s-rk3399 bootloader Herman Rimm via Guix-patches via
2024-12-13 21:07 ` [bug#72987] [PATCH v3 3/5] gnu: u-boot: Use DDR3 patch for Nano Pi R4S Herman Rimm via Guix-patches via
2024-12-13 21:07 ` [bug#72987] [PATCH v3 4/5] gnu: bootloader: Add orangepi-zero2w bootloader Herman Rimm via Guix-patches via
2024-12-13 21:07 ` Herman Rimm via Guix-patches via [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aa942aa5c8e550aa6d3f4c8c80840107c70d5957.1734122005.git.herman@rimm.ee \
--to=guix-patches@gnu.org \
--cc=72987@debbugs.gnu.org \
--cc=efraim@flashner.co.il \
--cc=herman@rimm.ee \
--cc=vagrant@debian.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).