blob: e0cafe1035d0dc3d53e5b9760cef126bd170fb52 [file] [log] [blame]
Peng Fand0dfcc92020-10-14 17:12:06 +08001.. SPDX-License-Identifier: GPL-2.0+
2
3imxrt1050-evk
4=============
5
6How to use U-Boot on NXP i.MXRT1050 EVK
7---------------------------------------
8
9- Build U-Boot for i.MXRT1050 EVK:
10
11.. code-block:: bash
12
13 $ make mrproper
14 $ make imxrt1050-evk_defconfig
15 $ make
16
17This will generate the SPL image called SPL and the u-boot.img.
18
19- Flash the SPL image into the micro SD card:
20
21.. code-block:: bash
22
23 $sudo dd if=SPL of=/dev/sdX bs=1k seek=1 conv=notrunc; sync
24
25- Flash the u-boot.img image into the micro SD card:
26
27.. code-block:: bash
28
29 $sudo dd if=u-boot.img of=/dev/sdX bs=1k seek=128 conv=notrunc; sync
30
31- Jumper settings::
32
33 SW7: 1 0 1 0
34
35where 0 means bottom position and 1 means top position (from the
36switch label numbers reference).
37
38- Connect the USB cable between the EVK and the PC for the console.
39 The USB console connector is the one close the ethernet connector
40
41- Insert the micro SD card in the board, power it up and U-Boot messages should come up.
Jesse Taubeb57c41d2024-02-19 18:01:00 -050042
43
44How to use U-Boot with SPI flash on NXP i.MXRT1050 EVK
45------------------------------------------------------
46
47- Build U-Boot for i.MXRT1050 EVK:
48
49.. code-block:: bash
50
51 $ make mrproper
52 $ make imxrt1050-evk_fspi_defconfig
53 $ make
54
55This will generate SPL, uboot.img, fspi_header.bin, and the final image (flash.bin).
56
57To boot from SPI flash on other boards, you may need to change the flash header config,
58which is specific to your flash chip, in Kconfig.
59The flash config is 4K in size and is documented on page 217 of the imxrt1050 RM.
60The default flash chip on the i.MXRT1050 EVK is the S26KS512SDPBHI02 HYPERFLASH.
61
62- Jumper settings::
63
64 SW7: 0 1 1 0
65
66where 0 means bottom position and 1 means top position (from the
67switch label numbers reference).
68
69- Connect the USB cable between the EVK and the PC for the console.
70
71- Use either JTAG or SWD to write `flash.bin` to the NOR. I used Mcuexpresso IDE's GUI flash tool.