From 0df986a59bf9a71986ff6a8d7faabdec4f4300ac Mon Sep 17 00:00:00 2001 From: Fengwei Tan Date: Sat, 19 Sep 2026 18:29:04 +0800 Subject: [PATCH] board/visionfive2, configs/visionfive2: add support for v1.2a board 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 / 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. Signed-off-by: Fengwei Tan Signed-off-by: Thomas Petazzoni --- board/visionfive2/overlay/boot/extlinux/extlinux.conf | 2 +- configs/visionfive2_defconfig | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/board/visionfive2/overlay/boot/extlinux/extlinux.conf b/board/visionfive2/overlay/boot/extlinux/extlinux.conf index 7934d70e15..6c290f519c 100644 --- a/board/visionfive2/overlay/boot/extlinux/extlinux.conf +++ b/board/visionfive2/overlay/boot/extlinux/extlinux.conf @@ -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 diff --git a/configs/visionfive2_defconfig b/configs/visionfive2_defconfig index 3e30c0649c..7ce605b84b 100644 --- a/configs/visionfive2_defconfig +++ b/configs/visionfive2_defconfig @@ -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