u-boot for eMMC programming and img boot on iMX8QM MEK

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

u-boot for eMMC programming and img boot on iMX8QM MEK

跳至解决方案
1,140 次查看
rkohli2000
Contributor III

Hi,
I can program u-boot.bin to eMMC using "uuu" on my iMX8QM MEK. Then boot my test image via tftpboot/bootm commands.

=> tftpboot 0xf0000000 App.bin
Using ethernet@5b040000 device
TFTP from server 192.168.86.43; our IP address is 192.168.86.44 Filename 'App.bin'.
Load address: 0xf0000000
Loading: #################################################################
     #################################################################
...
     ################
     6.6 MiB/s
done
Bytes transferred = 9767696 (950b10 hex)
==>bootm 0xf0000000
=> mmc info
Device: FSL_SDHC
Manufacturer ID: 13
OEM: 14e
Name: R1J57
Bus Speed: 200000000
Mode : HS400 (200MHz)
Rd Block Len: 512
MMC version 5.0
High Capacity: Yes
Capacity: 29.1 GiB
Bus Width: 8-bit DDR
Erase Group Size: 512 KiB
HC WP Group Size: 8 MiB
User Capacity: 29.1 GiB WRREL
Boot Capacity: 8 MiB ENH
RPMB Capacity: 4 MiB ENH
=> mmc dev 0
switch to partitions #0, OK
mmc0(part 0) is current device
=>

I'd like to use u-boot to program the test image (A53 bare metal)  into eMMC at a given location 0xf0000000. Thanks to rweiss for sharing this option in uboot.

Can someone please share what u-boot instructions are needed to program App.bin to eMMC and load it to RAM at address 0xf0000000 ? Example, mmc write

I am trying to use "bootm 0xf0000000" to boot this eMMC image.

Thanks in advance.

Ravi

0 项奖励
回复
1 解答
1,091 次查看
ravi_kohli
Senior Contributor I

I am able to program eMMC using the "emmc read/write/erase" commands. The issue I ran into was picking the right block size (512). That is needed otherwise I saw CRC errors. I will mark this thread closed. Thanks.

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,092 次查看
ravi_kohli
Senior Contributor I

I am able to program eMMC using the "emmc read/write/erase" commands. The issue I ran into was picking the right block size (512). That is needed otherwise I saw CRC errors. I will mark this thread closed. Thanks.

0 项奖励
回复