Certain versions of the VF2 bootloader require the presence of a
vf2_uEnv.txt in the boot partition to properly load a non-SDK kernel.
Add this file during the SD-card generation.
Known VF2 bootloader versions exhibiting this behaviour are:
U-Boot 2021.10 (Mar 31 2025 - 22:49:46 +0800), Build: jenkins-github_visionfive2_6.12-11
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
mcopy -i $@.boot $(LINUX_DIR)/arch/riscv/boot/dts/$(DEVICE_DTS).dtb ::dtb
mcopy -i $@.boot $@-boot.scr ::boot.scr.uimg
mcopy -i $@.boot $(IMAGE_KERNEL) ::Image
+ mcopy -i $@.boot jh7110-vf2-uenv.txt ::vf2_uEnv.txt
./gen_starfive_sdcard_img.sh \
$@ \
$@.boot \
--- /dev/null
+boot2=echo "HELLO WORLD"; run bootcmd
+fatbootpart=1:3
+devnum=1
+boot_targets=mmc1
+bootcmd_mmc1=setenv devnum 1; run mmc_boot
+bootcmd=run chipa_set_linux; run cpu_vol_set; run bootcmd_mmc1