vf2_uEnv.txt 1.5 KB

1234567891011121314151617181920212223242526272829303132
  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. #devnum=1
  6. partnum=3
  7. # The FIT file to boot from
  8. fitfile=starfiveu.fit
  9. # for debugging boot
  10. bootargs_ext=if test ${devnum} = 0; then setenv bootargs "earlyprintk console=tty1 console=ttyS0,115200 debug rootwait earlycon=sbi root=/dev/mmcblk0p4"; else setenv bootargs "earlyprintk console=tty1 console=ttyS0,115200 debug rootwait earlycon=sbi root=/dev/mmcblk1p4"; fi;
  11. #bootargs=earlyprintk console=ttyS0,115200 debug rootwait earlycon=sbi root=/dev/mmcblk1p4
  12. # for addr info
  13. fileaddr=0xa0000000
  14. fdtaddr=0x46000000
  15. # boot Linux flat or compressed 'Image' stored at 'kernel_addr_r'
  16. kernel_addr_r=0x40200000
  17. irdaddr=46100000
  18. irdsize=5f00000
  19. # Use the FDT in the FIT image..
  20. setupfdt1=fdt addr ${fdtaddr}; fdt resize;
  21. setupird=setexpr irdend ${irdaddr} + ${irdsize}; fdt set /chosen linux,initrd-start <0x0 0x${irdaddr}>; fdt set /chosen linux,initrd-end <0x0 0x${irdend}>
  22. setupfdt2=fdt set /chosen bootargs "${bootargs}";
  23. bootwait=setenv _delay ${bootdelay}; echo ${_delay}; while test ${_delay} > 0; do sleep 1; setexpr _delay ${_delay} - 1; echo ${_delay}; done
  24. boot2=run bootargs_ext; mmc dev ${devnum}; fatload mmc ${devnum}:${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}