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

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

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

Jump to solution
1,019 Views
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 Kudos
Reply
1 Solution
970 Views
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.

View solution in original post

0 Kudos
Reply
1 Reply
971 Views
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 Kudos
Reply