aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/firmware.scm
diff options
context:
space:
mode:
authorZheng Junjie <zhengjunjie@iscas.ac.cn>2024-05-19 01:09:55 +0800
committerZheng Junjie <zhengjunjie@iscas.ac.cn>2024-05-22 11:15:30 +0800
commit800b33786c361f463d801dbc21115749e78071af (patch)
tree6a9e2f20357329489748f8ebf48868b5b60fb2ed /gnu/packages/firmware.scm
parenteaa99648fff969876379ef3243fbd867f66dc5fa (diff)
downloadguix-800b33786c361f463d801dbc21115749e78071af.tar.gz
guix-800b33786c361f463d801dbc21115749e78071af.zip
gnu: Add opensbi-for-visionfive2.
* gnu/packages/firmware.scm (opensbi-for-visionfive2): New variable. Change-Id: I27963937410a3900a63193ce2a1033ac20a79919
Diffstat (limited to 'gnu/packages/firmware.scm')
-rw-r--r--gnu/packages/firmware.scm14
1 files changed, 14 insertions, 0 deletions
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 @@ executing in M-mode.")
(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")