hi
How to write files to the address specified by EMMC in Linux can be written by shell instruction or programming. For example, I want to write u-boot.img to 0x400 block of EMMC, how to operate
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.
hi
How to write files to the address specified by EMMC in Linux can be written by shell instruction or programming. For example, I want to write u-boot.img to 0x400 block of EMMC, how to operate
Why are you using the eMMC in "raw" mode? Why not use a FAT file system? It's much simpler in that case since you would just copy the file. If you go down the path of using the eMMC in "raw" mode you would likely need to use dd utility for writing u-boot.img to the specific location.
The board documentation file part of U-Boot for AM65x has steps on how to program eMMC from the U-Boot console, see here https://git.ti.com/cgit/processor-sdk/processor-sdk-u-boot/tree/board/ti/am65x/README?h=processor-sdk-u-boot-2019.01#n217. While those do not directly apply to AM5718 you can see the commands involved and how they are used and have a general idea of how to go about it. Also make sure to erase the respective eMMC regions before writing them, and note that the transfer sizes and offsets used for the 'mmc' commands are in units of blocks (512B each).
Other than that, file-system based boot as Brad had suggested might be an easier path to go.
Regards, Andreas