[U-Boot] burning eMMC from sdcard.img in U-Boot

I have a board with eMMC storage. I've been trying to find an elegant solution to burning the sdcard image to eMMC. I looked at using the USB mass storage gadget, but it's a bit slow. I was hoping to avoid having to boot all the way into Linux to do it, but the sdcard.img file is larger than the memory I have available.
Does anyone have any suggestions on how to burn the contents of a file to eMMC (or mmc/sd) from within U-Boot when the source file size may vary and it's larger than the available memory, so it needs to be done in blocks?
thanks
adam

On Tue, Apr 2, 2019 at 9:59 PM Adam Ford aford173@gmail.com wrote:
I have a board with eMMC storage. I've been trying to find an elegant solution to burning the sdcard image to eMMC. I looked at using the USB mass storage gadget, but it's a bit slow. I was hoping to avoid having to boot all the way into Linux to do it, but the sdcard.img file is larger than the memory I have available.
Does anyone have any suggestions on how to burn the contents of a file to eMMC (or mmc/sd) from within U-Boot when the source file size may vary and it's larger than the available memory, so it needs to be done in blocks?
Convert to Android sparse format and use that? You still need the sparse image to fit into memory though.

On 02/04/2019 21:59, Adam Ford wrote:
I have a board with eMMC storage. I've been trying to find an elegant solution to burning the sdcard image to eMMC. I looked at using the USB mass storage gadget, but it's a bit slow. I was hoping to avoid having to boot all the way into Linux to do it, but the sdcard.img file is larger than the memory I have available.
DFU could be worth a look, it has an mmc backend and may be more efficient than the mass storage gadget.
Does anyone have any suggestions on how to burn the contents of a file to eMMC (or mmc/sd) from within U-Boot when the source file size may vary and it's larger than the available memory, so it needs to be done in blocks?
thanks
adam _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
participants (3)
-
Adam Ford
-
Alex Kiernan
-
Jack Mitchell