All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fabio Estevam <festevam@denx.de>
To: sbabic@denx.de
Cc: marex@denx.de, u-boot@lists.denx.de, frieder.schrempf@kontron.de,
	tharvey@gateworks.com, uboot-imx@nxp.com,
	Fabio Estevam <festevam@denx.de>
Subject: [PATCH 8/8] doc: imx8mm_evk: Add instructions for eMMC boot
Date: Sat,  3 Jul 2021 16:58:37 -0300	[thread overview]
Message-ID: <20210703195837.28153-9-festevam@denx.de> (raw)
In-Reply-To: <20210703195837.28153-1-festevam@denx.de>

Improve the readme by adding instructions on how to load U-Boot via
USB and flash the eMMC.

Signed-off-by: Fabio Estevam <festevam@denx.de>
---
 doc/board/freescale/imx8mm_evk.rst | 42 +++++++++++++++++++++++++++---
 1 file changed, 38 insertions(+), 4 deletions(-)

diff --git a/doc/board/freescale/imx8mm_evk.rst b/doc/board/freescale/imx8mm_evk.rst
index 7fd3d7256490..7d77f6d354f6 100644
--- a/doc/board/freescale/imx8mm_evk.rst
+++ b/doc/board/freescale/imx8mm_evk.rst
@@ -45,13 +45,47 @@ Build U-Boot
    $ export ATF_LOAD_ADDR=0x920000
    $ make
 
-Burn the flash.bin to MicroSD card offset 33KB:
+Booting from the SD card
+------------------------
+
+Burn the flash.bin to MicroSD card offset 33KB and u-boot.itb to
+offset 384kB.
 
 .. code-block:: bash
 
    $sudo dd if=flash.bin of=/dev/sd[x] bs=1024 seek=33 conv=notrunc
    $sudo dd if=u-boot.itb of=/dev/sdc bs=1024 seek=384 conv=sync
 
-Boot
-----
-Set Boot switch to SD boot
+Booting from the eMMC
+---------------------
+
+Power off the board and put the boot mode switches
+to Download Mode.
+
+Connect a USB cable between the TypeC port 1 and the host PC.
+
+Load flash.bin via the 'uuu' tool:
+
+.. code-block:: bash
+
+   $ sudo uuu flash.bin
+
+Load u-boot.itb via the 'uuu' tool:
+
+.. code-block:: bash
+
+   $ sudo uuu SDPV: write -f u-boot.itb -addr 0x42000000
+   $ sudo uuu SDPV: jump -addr 0x42000000
+
+Then U-Boot will be launched.
+
+Run the ums tool to flash the eMMC:
+
+.. code-block:: bash
+
+   => ums 0 mmc 2
+   => sudo dd if=flash.bin of=/dev/sd[x] bs=1024 seek=33; sync
+   => sudo dd if=u-boot.itb of=/dev/sd[x] bs=1024 seek=384; sync
+
+Power off the board. Put the boot switches to eMMC boot mode
+and power it on.
-- 
2.25.1


      parent reply	other threads:[~2021-07-03 20:00 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-03 19:58 [PATCH 0/8] imx8mm: Add serial download support Fabio Estevam
2021-07-03 19:58 ` [PATCH 1/8] imx8mm: Fix USB reg addresses for i.MX8MM Fabio Estevam
2021-07-03 20:55   ` Marek Vasut
2021-07-03 21:38     ` Fabio Estevam
2021-07-04  1:04       ` Marek Vasut
2021-07-04 15:35         ` Fabio Estevam
2021-07-04 19:25           ` Marek Vasut
2021-07-06 16:11             ` Tim Harvey
2021-07-06 21:17               ` Marek Vasut
2021-07-07 17:37                 ` Simon Glass
2021-07-03 19:58 ` [PATCH 2/8] clock_imx8mm: Add enable_usboh3_clk() for i.MX8M Fabio Estevam
2021-08-06 12:12   ` Stefano Babic
2021-07-03 19:58 ` [PATCH 3/8] usb: ehci-mx6: move mode set/detect to probe Fabio Estevam
2021-07-03 19:58 ` [PATCH 4/8] usb: ehci-mx6: add IMX8MM and IMX8MN OTG support Fabio Estevam
2021-07-03 19:58 ` [PATCH 5/8] usb: ehci-mx6: Allow building SDP for imx8mm Fabio Estevam
2021-07-03 20:57   ` Marek Vasut
2021-07-03 21:39     ` Fabio Estevam
2022-03-27 21:02   ` Jaap Crezee
2022-03-27 21:43     ` Fabio Estevam
2022-03-28  7:17       ` Jaap Crezee
2022-03-28 10:26     ` Tommaso Merciai
2022-03-28 10:41       ` Jaap Crezee
2021-07-03 19:58 ` [PATCH 6/8] imx8mm_evk: Add an entry for USB boot Fabio Estevam
2021-07-03 19:58 ` [PATCH 7/8] imx8mm_evk: Add Serial Download Protocol support Fabio Estevam
2021-07-03 19:58 ` Fabio Estevam [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210703195837.28153-9-festevam@denx.de \
    --to=festevam@denx.de \
    --cc=frieder.schrempf@kontron.de \
    --cc=marex@denx.de \
    --cc=sbabic@denx.de \
    --cc=tharvey@gateworks.com \
    --cc=u-boot@lists.denx.de \
    --cc=uboot-imx@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.