Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F174993453
D43517.id133153.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D43517.id133153.diff
View Options
diff --git a/sysutils/Makefile b/sysutils/Makefile
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -1533,6 +1533,7 @@
SUBDIR += u-boot-sinovoip-bpi-m3
SUBDIR += u-boot-sopine
SUBDIR += u-boot-sopine-spi
+ SUBDIR += u-boot-starfive-visionfive2
SUBDIR += u-boot-tools
SUBDIR += u-boot-wandboard
SUBDIR += ua
diff --git a/sysutils/u-boot-starfive-visionfive2/Makefile b/sysutils/u-boot-starfive-visionfive2/Makefile
new file mode 100644
--- /dev/null
+++ b/sysutils/u-boot-starfive-visionfive2/Makefile
@@ -0,0 +1,16 @@
+MASTERDIR= ${.CURDIR}/../u-boot-master
+
+MODEL= starfive-visionfive2
+BOARD_CONFIG= starfive_visionfive2_defconfig
+FAMILY= starfive
+UBOOT_ARCH= riscv64
+
+# The FIT image will embed an OpenSBI firmware binary
+OPENSBI_FIRM= ${LOCALBASE}/share/opensbi/lp64/generic/firmware/fw_dynamic.bin
+BUILD_DEPENDS+= ${OPENSBI_FIRM}:sysutils/opensbi
+MAKE_ENV+= OPENSBI=${OPENSBI_FIRM}
+
+UBOOT_MOVE= ${WRKSRC}/spl/u-boot-spl.bin.normal.out
+UBOOT_PLIST= u-boot.itb u-boot-spl.bin.normal.out
+
+.include "${MASTERDIR}/Makefile"
diff --git a/sysutils/u-boot-starfive-visionfive2/pkg-descr b/sysutils/u-boot-starfive-visionfive2/pkg-descr
new file mode 100644
--- /dev/null
+++ b/sysutils/u-boot-starfive-visionfive2/pkg-descr
@@ -0,0 +1,15 @@
+U-Boot loader and related files for the StarFive VisionFive v2 (JH7110).
+
+The SD card must be formatted with a GPT partition scheme, and expects two
+specific GUID partition types for the SPL and FIT image.
+
+Assuming an SD card device in /dev/da2, execute:
+# gpart create -s gpt da2
+# gpart add -l spl -t !2E54B353-1271-4842-806F-E436D6AF6985 -b 2m -s 2m da2
+# gpart add -l uboot -t !BC13C2FF-59E6-4262-A352-B275FD6F7172 -b 4m -s 4m da2
+
+Now, copy the u-boot files to the SD card with dd(1).
+dd if=/usr/local/share/u-boot/u-boot-starfive-visionfive2/u-boot-spl.bin.normal.out \
+ of=/dev/da2p1 conv=sync
+dd if=/usr/local/share/u-boot/u-boot-starfive-visionfive2/u-boot.itb \
+ of=/dev/da2p2 conv=sync
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Oct 8, 11:45 AM (10 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40419616
Default Alt Text
D43517.id133153.diff (1 KB)
Attached To
Mode
D43517: sysutils/u-boot-starfive-visionfive2: new port
Attached
Detach File
Event Timeline
Log In to Comment