flash u-boot to emmc by uboot

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

flash u-boot to emmc by uboot

跳至解决方案
2,151 次查看
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 项奖励
回复
1 解答
2,147 次查看
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 项奖励
回复
2 回复数
2,133 次查看
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 项奖励
回复
2,148 次查看
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 项奖励
回复