All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] mx6sabresd: README: Add eMMC boot configuration
@ 2017-04-07 19:22 Breno Lima
  2017-04-08  1:42 ` Fabio Estevam
  0 siblings, 1 reply; 2+ messages in thread
From: Breno Lima @ 2017-04-07 19:22 UTC (permalink / raw)
  To: u-boot

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

Signed-off-by: Breno Lima <breno.lima@nxp.com>
---
 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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] [PATCH] mx6sabresd: README: Add eMMC boot configuration
  2017-04-07 19:22 [U-Boot] [PATCH] mx6sabresd: README: Add eMMC boot configuration Breno Lima
@ 2017-04-08  1:42 ` Fabio Estevam
  0 siblings, 0 replies; 2+ messages in thread
From: Fabio Estevam @ 2017-04-08  1:42 UTC (permalink / raw)
  To: u-boot

Hi Breno,

On Fri, Apr 7, 2017 at 4:22 PM, Breno Lima <breno.lima@nxp.com> wrote:
> Explain how to flash the eMMC and how to boot from it.
>
> Signed-off-by: Breno Lima <breno.lima@nxp.com>
> ---
>  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:

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-04-08  1:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-07 19:22 [U-Boot] [PATCH] mx6sabresd: README: Add eMMC boot configuration Breno Lima
2017-04-08  1:42 ` Fabio Estevam

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.