Skip to contentSkip to conversation

mx6sabresd: README: Add eMMC boot configuration

PATCH Superseded Breno Lima 2 participants 2 messages Apr 7, 2017 – Apr 8, 2017

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Breno Lima

author
#0 lore raw

PATCH 1/1 mx6sabresd: README: Add eMMC boot configuration

Explain how to flash the eMMC and how to boot from it.

---
 board/freescale/mx6sabresd/README | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
board/freescale/mx6sabresd/README +22 -0
index 5814b9d..875d4b2 100644
@@ -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
 ------------------
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 mx6sabresd: README: Add eMMC boot configuration

Hi Breno,

Quoted 12 lines · Breno Lima

Explain how to flash the eMMC and how to boot from it.

---
 board/freescale/mx6sabresd/README | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
board/freescale/mx6sabresd/README +0 -0
index 5814b9d..875d4b2 100644

board/freescale/mx6sabresd/README This will generate the image called u-boot.imx. · line 30

Quoted 4 lines
board/freescale/mx6sabresd/README +1 -0
@@ -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:

I would put a extra section for booting from eMMC.

Something like:

Change:

1. Booting via Normal U-Boot

to

1. Booting from SD card via normal U-Boot

and then:

2. Booting from eMMC via normal U-Boot

The rest looks good.