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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
1,052件の閲覧回数
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

ラベル(1)
0 件の賞賛
返信
1 解決策
1,003件の閲覧回数
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,004件の閲覧回数
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 件の賞賛
返信