Part Number: AM5728
Hi,
I have booted am5728 EVM with SD card. I want to flash eMMC with the contents of SD card and then boot from eMMC. How do I do that ?
I ran "fdisk -l". I can't see any eMMC partition of size 8GB.
Please help!
Thanks!
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: AM5728
Hi,
I have booted am5728 EVM with SD card. I want to flash eMMC with the contents of SD card and then boot from eMMC. How do I do that ?
I ran "fdisk -l". I can't see any eMMC partition of size 8GB.
Please help!
Thanks!
Hi,
I checked the section 3.1.1.6.4 in the link you mentioned.
3.1.1.6.4. Updating an SD card or eMMC with RAW writes
It gives the following commands:-
U-Boot # mmc dev 0
U-Boot # mmc rescan
U-Boot # mmc dev 1
U-Boot # fatload mmc 0 ${loadaddr} MLO
U-Boot # mmc write ${loadaddr} 0x100 0x100
U-Boot # mmc write ${loadaddr} 0x200 0x100
U-Boot # fatload mmc 0 ${loadaddr} u-boot.img
U-Boot # mmc write ${loadaddr} 0x300 0x400
U-Boot # fatload mmc 0 ${loadaddr} rootfs.ext4
U-Boot # mmc write ${loadaddr} 0x1000 ...rootfs.ext4 size in bytes divided by 512, in hex...
These are my doubts:-
1) Do I have to partition the eMMC (one for bootloader and the other for rootfs). If yes, then how to do that?
2) In the command pasted above for MLO :-
i)First it loads MLO into RAM
ii) Then it writes into the mmc device.
I don't understand why the write command is written twice ? i.e. , 0x100 x100 and 0x200 0x100 ??
Vishal,
1) 3.1.1.6.1. Partitioning eMMC from U-Boot
One more way: 3.1.1.6.3. Updating an SD card or eMMC using DFU
2) https://e2e.ti.com/support/processors/f/791/p/901671/3335174
This should answer in detail. Basically redundant copies of MLO for RoM code.
Regards,
Keerthy