# 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}