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

Message ID 20220520082623.1788887-9-tommaso.merciai@amarulasolutions.com
State New
Headers show
Series
  • imx8mm: Add serial download support
Related show

Commit Message

Tommaso Merciai May 20, 2022, 8:26 a.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>
Signed-off-by: Tommaso Merciai <tommaso.merciai@amarulasolutions.com>
---
 doc/board/nxp/imx8mm_evk.rst | 42 ++++++++++++++++++++++++++++++++----
 1 file changed, 38 insertions(+), 4 deletions(-)

Patch

diff --git a/doc/board/nxp/imx8mm_evk.rst b/doc/board/nxp/imx8mm_evk.rst
index b9e67b954f..7c233be8a4 100644
--- a/doc/board/nxp/imx8mm_evk.rst
+++ b/doc/board/nxp/imx8mm_evk.rst
@@ -44,12 +44,46 @@  Build U-Boot
    $ make imx8mm_evk_defconfig
    $ 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
 
-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.