vf2_uEnv.txt 1.2 KB

12345678910111213141516171819202122232425
  1. # This is the sample jh7110_uEnv.txt file for starfive visionfive U-boot
  2. # The current convention (SUBJECT TO CHANGE) is that this file
  3. # will be loaded from the third partition on the
  4. # MMC card.
  5. # The FIT file to boot from
  6. fitfile=starfiveu.fit
  7. # for debugging boot
  8. bootargs_ext=setenv bootargs "console=tty1 console=ttyS0,115200 debug rootwait earlycon=sbi root=/dev/${sdev_blk}";
  9. # for addr info
  10. # boot Linux flat or compressed 'Image' stored at 'kernel_addr_r'
  11. irdsize=5f00000
  12. # Use the FDT in the FIT image..
  13. setupfdt1=fdt addr ${fdtaddr}; fdt resize;
  14. setupird=setexpr irdend ${ramdisk_addr_r} + ${irdsize}; fdt set /chosen linux,initrd-start <0x0 ${ramdisk_addr_r}>; fdt set /chosen linux,initrd-end <0x0 0x${irdend}>
  15. setupfdt2=fdt set /chosen bootargs "${bootargs}";
  16. bootwait=setenv _delay ${bootdelay}; echo ${_delay}; while test ${_delay} > 0; do sleep 1; setexpr _delay ${_delay} - 1; echo ${_delay}; done
  17. boot2=run bootargs_ext; fatload ${bootdev} ${devnum}:${bootpart} ${loadaddr} ${fitfile}; bootm start ${loadaddr}; run setupfdt1;run setupird;run setupfdt2; bootm loados ${loadaddr}; run chipa_set_linux; run cpu_vol_set; echo "Booting kernel in"; booti ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdtaddr}