# This uEnv.txt file can contain additional environment settings that you
# want to set in U-Boot at boot time.  This can be simple variables such
# as the serverip or custom variables.  The format of this file is:
#    variable=value
# NOTE: This file will be evaluated after the bootcmd is run and the
#       bootcmd must be set to load this file if it exists (this is the
#       default on all newer U-Boot images.  This also means that some
#       variables such as bootdelay cannot be changed by this file since
#       it is not evaluated until the bootcmd is run.

load_addr=0x80080000

flash_ospi=sf probe; fatload mmc ${mmcdev} $load_addr sbl/tiboot3.bin.ospi.tiimage; sf update $load_addr 0x0 $filesize;fatload mmc ${mmcdev} $load_addr sbl/nor_spi_patterns.bin;sf update $load_addr 0x3FE0000 $filesize;fatload mmc ${mmcdev} $load_addr sbl/tifs.bin;sf update $load_addr 0x80000 $filesize;fatload mmc ${mmcdev} $load_addr sbl/app_ospi;sf update $load_addr 0x100000 $filesize;if fatload mmc ${mmcdev} $load_addr sbl/lateapp1; then sf update $load_addr 0x1FC0000 $filesize;fi;if fatload mmc ${mmcdev} $load_addr sbl/lateapp2; then sf update $load_addr 0x27C0000 $filesize;fi;fatload mmc ${mmcdev} $load_addr sbl/atf_optee.appimage;sf update $load_addr 0x1C0000 $filesize;fatload mmc ${mmcdev} $load_addr sbl/ifs_qnx.appimage;sf update $load_addr 0x7C0000 $filesize
uenvcmd=run flash_ospi;echo 'OSPI flashed...please restart board in spi boot mode';sleep 1000
