|
@@ -0,0 +1,32 @@
|
|
|
+# 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
|
|
|
+# NVME ssd.
|
|
|
+#devnvm=0
|
|
|
+partnum=3
|
|
|
+
|
|
|
+# The FIT file to boot from
|
|
|
+fitfile=starfiveu.fit
|
|
|
+
|
|
|
+# for debugging boot
|
|
|
+bootargs_ext=if test ${devnvme} = 0; then setenv bootargs "earlyprintk console=tty1 console=ttyS0,115200 debug rootwait earlycon=sbi root=/dev/nvme0n1p4"; else setenv bootargs "earlyprintk console=tty1 console=ttyS0,115200 debug rootwait earlycon=sbi root=/dev/nvme1n1p4"; fi;
|
|
|
+#bootargs=earlyprintk console=ttyS0,115200 debug rootwait earlycon=sbi root=/dev/nvme0n1p4
|
|
|
+
|
|
|
+# for addr info
|
|
|
+fileaddr=0xa0000000
|
|
|
+fdtaddr=0x46000000
|
|
|
+# boot Linux flat or compressed 'Image' stored at 'kernel_addr_r'
|
|
|
+kernel_addr_r=0x40200000
|
|
|
+irdaddr=46100000
|
|
|
+irdsize=5f00000
|
|
|
+
|
|
|
+# Use the FDT in the FIT image..
|
|
|
+setupfdt1=fdt addr ${fdtaddr}; fdt resize;
|
|
|
+
|
|
|
+setupird=setexpr irdend ${irdaddr} + ${irdsize}; fdt set /chosen linux,initrd-start <0x0 0x${irdaddr}>; fdt set /chosen linux,initrd-end <0x0 0x${irdend}>
|
|
|
+
|
|
|
+setupfdt2=fdt set /chosen bootargs "${bootargs}";
|
|
|
+
|
|
|
+bootwait=setenv _delay ${bootdelay}; echo ${_delay}; while test ${_delay} > 0; do sleep 1; setexpr _delay ${_delay} - 1; echo ${_delay}; done
|
|
|
+
|
|
|
+boot2=run bootargs_ext; nvme dev ${devnvme}; fatload nvme ${devnvme}:${partnum} ${fileaddr} ${fitfile}; bootm start ${fileaddr}; run setupfdt1;run setupird;run setupfdt2; bootm loados ${fileaddr}; run chipa_set_linux; run cpu_vol_set; echo "Booting kernel in"; booti ${kernel_addr_r} ${irdaddr}:${filesize} ${fdtaddr}
|