forked from mirror/openwrt
starfive: add uEnv script on VF2 boards
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>
This commit is contained in:
parent
d37289d0b8
commit
39423810c1
2 changed files with 7 additions and 0 deletions
|
|
@ -24,6 +24,7 @@ define Build/riscv-sdcard
|
|||
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 \
|
||||
|
|
|
|||
6
target/linux/starfive/image/jh7110-vf2-uenv.txt
Normal file
6
target/linux/starfive/image/jh7110-vf2-uenv.txt
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
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
|
||||
Loading…
Add table
Reference in a new issue