flash u-boot to emmc by uboot

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

flash u-boot to emmc by uboot

Jump to solution
2,069 Views
1053387324
Contributor I

I use i.MX8MQ.

I want to flash u-boot to emmc by using uboot.

I run the follow commands:

fatload mmc 0:1 ${loadaddr} flash.bin
mmc write ${loadaddr} 0x21 <u-boot image size in blocks>

but, failed. I also try change 0x21 to 0x42 or 0x2 ,all fails.

Please help me,thank you very much!

0 Kudos
Reply
1 Solution
2,065 Views
igorpadykov
NXP Employee
NXP Employee

Hi 1053387324

 

for various emmc programming options one can look at

https://boundarydevices.com/programming-emmc-on-i-mx-platforms/

 

Best regards
igor

View solution in original post

0 Kudos
Reply
2 Replies
2,051 Views
1053387324
Contributor I

I also try the u-boot ums function.

when in host ubuntu, I find the new device /dev/sdb , /dev/sdb1, /dev/sdb2,then I use the fllow command to flash img

sudo dd if=$BOOT_DIR/flash.bin of=/dev/sdb seek=33 bs=1k conv=fsync

the u-boot version is not changed.

0 Kudos
Reply
2,066 Views
igorpadykov
NXP Employee
NXP Employee

Hi 1053387324

 

for various emmc programming options one can look at

https://boundarydevices.com/programming-emmc-on-i-mx-platforms/

 

Best regards
igor

0 Kudos
Reply