mmc dev 0
mmc rescan
mmc dev 1
fatload mmc 0 ${loadaddr} MLO
mmc write ${loadaddr} 0x100 0x100
echo $filesize
# In the following command, take the hex value from the above command, divide it by 0x200, and round up to the nearest whole number
mmc write ${loadaddr} 0x2000x100 0x100#FILESIZE#
fatload mmc 0 ${loadaddr} u-boot.img
echo $filesize
# In the following command, take the hex value from the above command, divide it by 0x200, and round up to the nearest whole number
mmc write ${loadaddr} 0x300 0x1300#FILESIZE# |