How to flash i.MX6 Quad from recovery mode

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

How to flash i.MX6 Quad from recovery mode

跳至解决方案
1,804 次查看
korteland
Contributor I

I have an i.MX6 Quad, and due to an earlier mistake I am using recovery mode over the OTG USB. I can get it to boot to a specific u-boot.bin stored on my laptop, and I'm trying to copy it to the flash storage on the board (via the microSD card) so I no longer have to use recovery mode. Using instructions I found elsewhere, I've tried the following:

> mmc dev 1

> ext2load mmc 1:1 12000000 u-boot.bin

But on the second command, it just hangs indefinitely (I tried leaving it for 20 minutes). What am I doing wrong here? I'm very new to embedded development, so I might need you to talk slowly :smileysilly:

标签 (3)
1 解答
1,549 次查看
Yuri
NXP Employee
NXP Employee

  First, please check if mmc dev is correct (1), using "mmc dev" command of U-boot.

Next - please verify if the mmc card with U-boot is ext2 formatted.


Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

2 回复数
1,550 次查看
Yuri
NXP Employee
NXP Employee

  First, please check if mmc dev is correct (1), using "mmc dev" command of U-boot.

Next - please verify if the mmc card with U-boot is ext2 formatted.


Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

1,549 次查看
korteland
Contributor I

Hi Yuri,

Thanks for taking the time to respond. I have double-checked that the card is formatted as ext2 (I reformatted it just to be sure, and I check with fdisk). I also think that the mmc dev is correct:

> mmc dev

Card did not respond to voltage select!

mmc0(part 0) is current device

> mmc dev 1

mmc1 is current device

> mmc dev

mmc1 is current device

But for some reason, after a re-format, it will now do the ext2load command correctly! I have now managed to restore the onboard flash of my board. Perhaps my microSD card is a bit wonky? I know Linux was having trouble reading it at several stages. In any case, I now have a working board that doesn't rely on my microSD card - thank you!

- Will

0 项奖励
回复