summaryrefslogtreecommitdiffstats
path: root/meta-agl-bsp/riscv-layer/recipes-bsp/u-boot/u-boot-starfive/uEnv-visionfive2.txt
diff options
context:
space:
mode:
Diffstat (limited to 'meta-agl-bsp/riscv-layer/recipes-bsp/u-boot/u-boot-starfive/uEnv-visionfive2.txt')
-rw-r--r--meta-agl-bsp/riscv-layer/recipes-bsp/u-boot/u-boot-starfive/uEnv-visionfive2.txt22
1 files changed, 22 insertions, 0 deletions
diff --git a/meta-agl-bsp/riscv-layer/recipes-bsp/u-boot/u-boot-starfive/uEnv-visionfive2.txt b/meta-agl-bsp/riscv-layer/recipes-bsp/u-boot/u-boot-starfive/uEnv-visionfive2.txt
new file mode 100644
index 000000000..dac31bf6b
--- /dev/null
+++ b/meta-agl-bsp/riscv-layer/recipes-bsp/u-boot/u-boot-starfive/uEnv-visionfive2.txt
@@ -0,0 +1,22 @@
+# This is the sample jh7110_uEnv.txt file for starfive visionfive U-boot
+# The current convention (SUBJECT TO CHANGE) is that this file
+# will be loaded from the third partition on the
+# MMC card.
+#devnum=1
+partnum=3
+
+# The FIT file to boot from
+fitfile=fitImage
+
+# for debugging boot
+bootargs_ext=if test ${devnum} = 0; then setenv bootargs "console=ttyS0,115200 rootwait root=/dev/mmcblk0p4"; else setenv bootargs "console=ttyS0,115200 rootwait root=/dev/mmcblk1p4"; fi;
+
+# for addr info
+fileaddr=0xa0000000
+fdtaddr=0x46000000
+# boot Linux flat or compressed 'Image' stored at 'kernel_addr_r'
+kernel_addr_r=0x40200000
+
+bootwait=setenv _delay ${bootdelay}; echo ${_delay}; while test ${_delay} > 0; do sleep 1; setexpr _delay ${_delay} - 1; echo ${_delay}; done
+
+boot2=run bootargs_ext; mmc dev ${devnum}; fatload mmc ${devnum}:${partnum} ${fileaddr} ${fitfile}; bootm ${fileaddr} \ No newline at end of file