[PATCH v1 2/2] imx: imxrt1050-evk: Add documentation for SPI boot

Jesse Taube mr.bossman075 at gmail.com
Sat Mar 12 03:43:19 CET 2022


Adds documentation for SPI boot.

Signed-off-by: Jesse Taube <Mr.Bossman075 at gmail.com>
---
 doc/board/nxp/imxrt1050-evk.rst | 41 +++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/doc/board/nxp/imxrt1050-evk.rst b/doc/board/nxp/imxrt1050-evk.rst
index c1fb48f0cd..0838a04871 100644
--- a/doc/board/nxp/imxrt1050-evk.rst
+++ b/doc/board/nxp/imxrt1050-evk.rst
@@ -39,3 +39,44 @@ switch label numbers reference).
   The USB console connector is the one close the ethernet connector
 
 - Insert the micro SD card in the board, power it up and U-Boot messages should come up.
+
+
+How to use U-Boot with SPI flash on NXP i.MXRT1050 EVK
+------------------------------------------------------
+
+- Build U-Boot for i.MXRT1050 EVK:
+
+First you will need to enable the following option:
+CONFIG_IMX_CONFIG="board/freescale/imxrt1050-evk/imximage-nor.cfg"
+
+.. code-block:: bash
+
+   $ make mrproper
+   $ make imxrt1050-evk_defconfig
+   $ make
+
+This will generate the SPL image called SPL and the u-boot.img.
+
+To boot from SPI flash you will need to provide a flash configuration block that is specific to your flash chip.
+The flash config is 4K in size and is documented on page 217 of the imxrt1050RM.
+
+I took my FLASH config from a binary made from MCUexpresso IDE.
+The truncate command should pad the spl with zeros till the value from CONFIG_SYS_UBOOT_BASE.
+
+.. code-block:: bash
+
+   $ cp FLASH nor.bin
+   $ cat SPL >> nor.bin
+   $ truncate -s $((0x10000)) nor.bin
+   $ cat u-boot.img >> nor.bin
+
+- Jumper settings::
+
+   SW7: 0 1 1 0
+
+where 0 means bottom position and 1 means top position (from the
+switch label numbers reference).
+
+- Connect the USB cable between the EVK and the PC for the console.
+
+- Use either JTAG or SWD to flash the flash I used Mcuexpresso IDEs GUI flash tool
-- 
2.34.1



More information about the U-Boot mailing list