Hi,

I am using an imx8mp-evk board and I can flash the U-Boot into the
eMMC hardware partition 0 by running:

   => tftpboot $loadaddr flash.bin
   => setexpr blkcnt $filesize + 0x1ff && setexpr blkcnt $blkcnt / 0x200
   => mmc dev 2 1
   => mmc write $loadaddr 0 $blkcnt

Now I want to do the same via UUU.

I tried to create a script called emmc_flash:

uuu_version 1.5.21

SDPS: boot -f flash.bin
SDPS: done
FB: ucmd setenv fastboot_dev mmc
FB: ucmd mmc dev 2 1
FB: flash bootloader flash.bin
FB: Done

Then on the PC: uuu emmc_flash

U-Boot is loaded to RAM, but the eMMC hardware partition is not programmed.

What is the correct script for doing this?

Any suggestions?

Thanks

Reply via email to