Peng Fan | d0dfcc9 | 2020-10-14 17:12:06 +0800 | [diff] [blame] | 1 | .. SPDX-License-Identifier: GPL-2.0+ |
| 2 | |
| 3 | imxrt1050-evk |
| 4 | ============= |
| 5 | |
| 6 | How 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 | |
| 17 | This 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 | |
| 35 | where 0 means bottom position and 1 means top position (from the |
| 36 | switch 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 Taube | b57c41d | 2024-02-19 18:01:00 -0500 | [diff] [blame] | 42 | |
| 43 | |
| 44 | How 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 | |
| 55 | This will generate SPL, uboot.img, fspi_header.bin, and the final image (flash.bin). |
| 56 | |
| 57 | To boot from SPI flash on other boards, you may need to change the flash header config, |
| 58 | which is specific to your flash chip, in Kconfig. |
| 59 | The flash config is 4K in size and is documented on page 217 of the imxrt1050 RM. |
| 60 | The default flash chip on the i.MXRT1050 EVK is the S26KS512SDPBHI02 HYPERFLASH. |
| 61 | |
| 62 | - Jumper settings:: |
| 63 | |
| 64 | SW7: 0 1 1 0 |
| 65 | |
| 66 | where 0 means bottom position and 1 means top position (from the |
| 67 | switch 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. |