diff mbox series

[8/8] doc: imx8mm_evk: Add instructions for eMMC boot

Message ID 20210703195837.28153-9-festevam@denx.de
State Awaiting Upstream
Delegated to: Stefano Babic
Headers show
Series imx8mm: Add serial download support | expand

Commit Message

Fabio Estevam July 3, 2021, 7:58 p.m. UTC
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 mbox series

Patch

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.