From: Breno Lima Date: Fri, 7 Apr 2017 16:22:25 -0300 Subject: [U-Boot] [PATCH] mx6sabresd: README: Add eMMC boot configuration Message-ID: <1491592945-18772-1-git-send-email-breno.lima@nxp.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Explain how to flash the eMMC and how to boot from it. Signed-off-by: Breno Lima --- board/freescale/mx6sabresd/README | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/board/freescale/mx6sabresd/README b/board/freescale/mx6sabresd/README index 5814b9d..875d4b2 100644 --- a/board/freescale/mx6sabresd/README +++ b/board/freescale/mx6sabresd/README @@ -27,6 +27,28 @@ This will generate the image called u-boot.imx. $ sudo dd if=u-boot.imx of=/dev/sdb bs=1K seek=1 && sync +- Flash the u-boot.imx binary into the eMMC: + +Set SW6 to download mode: 00001100 + +Plug a usb cable to USB-OTG and load the u-boot image using the imx_usb_loader +tool (https://github.com/boundarydevices/imx_usb_loader): + +$ sudo ./imx_usb u-boot.imx + +In U-boot change the eMMC partition config: + +=> mmc partconf 2 1 0 0 + +Mount the eMMC in the host PC: + +=> ums 0 mmc 2 + +Flash the u-boot.imx binary + +$ sudo dd if=u-boot.imx of=/dev/sdX bs=1K seek=1 && sync + +Set SW6 to eMMC 8-bit boot: 11010110 2. Booting via SPL ------------------ -- 2.7.4