Skip to contentSkip to conversation

board/visionfive2, configs/visionfive2: add support for v1.2a board

Buildroot Thomas Petazzoni via buildroot 1 participant 1 message Sep 20

lore
Share & tools
lore
#0 lore raw

commit: https://gitlab.com/buildroot.org/buildroot/-/commit/0df986a59bf9a71986ff6a8d7faabdec4f4300ac
branch: https://gitlab.com/buildroot.org/buildroot/-/tree/master

There are two revisions of the VisionFive 2: v1.2a and v1.3b. The main difference between them is that v1.2a has one Gigabit Ethernet port and one Fast Ethernet port, while v1.3b has two Gigabit Ethernet ports.

Unless explicitly set, U-Boot automatically sets $fdtfile based on the EEPROM product data during initialization, enabling <fdtdir>/<fdtfile> to be loaded via extlinux.conf.

Additionally, since $fdtfile contains the directory name, preserve the directory structure of the DTBs when copying them to the target directory.

---
 board/visionfive2/overlay/boot/extlinux/extlinux.conf | 2 +-
 configs/visionfive2_defconfig                         | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)
board/visionfive2/overlay/boot/extlinux/extlinux.conf +1 -1
index 7934d70e15..6c290f519c 100644
@@ -1,4 +1,4 @@
 label linux
   kernel /boot/Image
-  devicetree /boot/jh7110-starfive-visionfive-2-v1.3b.dtb
+  fdtdir /boot
   append console=ttyS0,115200 root=/dev/mmcblk1p1 rootwait
configs/visionfive2_defconfig +2 -1
index 3e30c0649c..7ce605b84b 100644
@@ -11,7 +11,8 @@ BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.18.51"
 BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
 BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/visionfive2/linux_defconfig"
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
-BR2_LINUX_KERNEL_INTREE_DTS_NAME="starfive/jh7110-starfive-visionfive-2-v1.3b"
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="starfive/jh7110-starfive-visionfive-2-v1.2a starfive/jh7110-starfive-visionfive-2-v1.3b"
+BR2_LINUX_KERNEL_DTB_KEEP_DIRNAME=y
 BR2_LINUX_KERNEL_INSTALL_TARGET=y
 BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
 BR2_TARGET_ROOTFS_EXT2=y

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot