[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#70892] [PATCH v3 4/7] gnu: Add opensbi-for-visionfive2.
From: |
Zheng Junjie |
Subject: |
[bug#70892] [PATCH v3 4/7] gnu: Add opensbi-for-visionfive2. |
Date: |
Sun, 19 May 2024 22:15:28 +0800 |
* gnu/packages/firmware.scm (opensbi-for-visionfive2): New variable.
Change-Id: I27963937410a3900a63193ce2a1033ac20a79919
---
gnu/packages/firmware.scm | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/gnu/packages/firmware.scm b/gnu/packages/firmware.scm
index 6f0c2da806..49cc8c1ee3 100644
--- a/gnu/packages/firmware.scm
+++ b/gnu/packages/firmware.scm
@@ -585,6 +585,20 @@ (define-public opensbi-qemu
(description
"This package contains OpenSBI firmware files for use with QEMU.")))
+(define-public opensbi-for-visionfive2
+ (package
+ (inherit opensbi-generic)
+ (name "opensbi-for-visionfive2")
+ (arguments
+ (substitute-keyword-arguments
+ (package-arguments opensbi-generic)
+ ((#:make-flags flags)
+ ;; visionfive2's u-boot need opensbi with the following flags.
+ ;; see
https://docs.u-boot.org/en/latest/board/starfive/visionfive2.html
+ #~(cons* "FW_TEXT_START=0x40000000"
+ "FW_OPTIONS=0"
+ #$flags))))))
+
(define-public seabios
(package
(name "seabios")
--
2.41.0
- [bug#70892] [PATCH v2 7/7] system: images: Add visionfive2 module., (continued)
- [bug#70892] [PATCH v3 0/7] Add visionfive2 support., Zheng Junjie, 2024/05/19
- [bug#70892] [PATCH v3 2/7] image: Raise error when use both grub-efi* bootloader and not gpt image., Zheng Junjie, 2024/05/19
- [bug#70892] [PATCH v3 1/7] gnu: linux-libre-6.8: Add riscv config., Zheng Junjie, 2024/05/19
- [bug#70892] [PATCH v3 3/7] gnu: shepherd-0.10: When target riscv64, use guile-fibers-1.1., Zheng Junjie, 2024/05/19
- [bug#70892] [PATCH v3 6/7] bootloader: Add u-boot-starfive-visionfive2-bootloader., Zheng Junjie, 2024/05/19
- [bug#70892] [PATCH v3 4/7] gnu: Add opensbi-for-visionfive2.,
Zheng Junjie <=
- [bug#70892] [PATCH v3 5/7] gnu: Add u-boot-starfive-visionfive2., Zheng Junjie, 2024/05/19
- [bug#70892] [PATCH v3 7/7] system: images: Add visionfive2 module., Zheng Junjie, 2024/05/19
- bug#70892: [PATCH v3 0/7] Add visionfive2 support., Z572, 2024/05/21