aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitchell Horne <mhorne@FreeBSD.org>2024-02-14 15:12:57 +0000
committerMitchell Horne <mhorne@FreeBSD.org>2024-02-14 15:16:54 +0000
commit3fb8f1272b50cb87cb624b321f7b81e76627c437 (patch)
treefb7b2e555eaca984d71b52680f133ce7ab0a8bf4
parent2af03ebfb853e918554e86ee0e37cf4b30a93bd0 (diff)
downloadsrc-3fb8f1272b50cb87cb624b321f7b81e76627c437.tar.gz
src-3fb8f1272b50cb87cb624b321f7b81e76627c437.zip
-rw-r--r--release/riscv/GENERICSD.conf16
1 files changed, 14 insertions, 2 deletions
diff --git a/release/riscv/GENERICSD.conf b/release/riscv/GENERICSD.conf
index 7bd58bc9f97b..d4abbc7965b8 100644
--- a/release/riscv/GENERICSD.conf
+++ b/release/riscv/GENERICSD.conf
@@ -1,6 +1,4 @@
#!/bin/sh
-#
-#
EMBEDDED_TARGET_ARCH="riscv64"
EMBEDDED_TARGET="riscv"
@@ -11,4 +9,18 @@ IMAGE_SIZE="6144M"
KERNEL="GENERIC"
MD_ARGS="-x 63 -y 255"
PART_SCHEME="GPT"
+EFIPART_SUFFIX=p3
+ROOTFSPART_SUFFIX=p4
export BOARDNAME="GENERICSD"
+
+arm_create_partitions() {
+ # Create two partitions for firmware, preceding EFI and ROOTFS:
+ # 1. u-boot SPL
+ # 2. u-boot loader
+ #
+ # The exact partition types can be rewritten by the user, but they should
+ # be reserved now.
+
+ chroot ${CHROOTDIR} gpart add -t hifive-fsbl -l spl -a 512k -b 2m -s 2m ${mddev}
+ chroot ${CHROOTDIR} gpart add -t hifive-bbl -l uboot -a 512k -b 4m -s 4m ${mddev}
+}