blob: 6e4eb5996b066033878f7c1c4282db3c8a4a3590 [file] [log] [blame]
Peng Fan702c6dc2018-10-18 14:28:37 +02001U-Boot for the NXP i.MX8QXP EVK board
2
3Quick Start
4===========
5
Peng Fan702c6dc2018-10-18 14:28:37 +02006- Build the ARM Trusted firmware binary
7- Get scfw_tcm.bin and ahab-container.img
Peng Fan79b393d2018-10-16 04:50:39 +00008- Build U-Boot
Peng Fan702c6dc2018-10-18 14:28:37 +02009- Flash the binary into the SD card
10- Boot
11
Peng Fan702c6dc2018-10-18 14:28:37 +020012Get and Build the ARM Trusted firmware
13======================================
14
15$ git clone https://source.codeaurora.org/external/imx/imx-atf
16$ cd imx-atf/
Peng Fan43b4ce12020-01-08 01:33:31 +000017$ git checkout origin/imx_4.19.35_1.1.0 -b imx_4.19.35_1.1.0
18$ make PLAT=imx8qx bl31
Peng Fan702c6dc2018-10-18 14:28:37 +020019
20Get scfw_tcm.bin and ahab-container.img
21==============================
22
Peng Fan43b4ce12020-01-08 01:33:31 +000023$ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-sc-firmware-1.2.7.1.bin
24$ chmod +x imx-sc-firmware-1.2.7.1.bin
25$ ./imx-sc-firmware-1.2.7.1.bin
26$ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-seco-2.3.1.bin
27$ chmod +x imx-seco-2.3.1.bin
28$ ./imx-seco-2.3.1.bin
Peng Fan702c6dc2018-10-18 14:28:37 +020029
Peng Fan79b393d2018-10-16 04:50:39 +000030Copy the following binaries to U-Boot folder:
Peng Fan702c6dc2018-10-18 14:28:37 +020031
Peng Fan43b4ce12020-01-08 01:33:31 +000032$ cp imx-atf/build/imx8qx/release/bl31.bin .
33$ cp imx-seco-2.3.1/firmware/seco/mx8qx-ahab-container.img ./ahab-container.img
34$ cp imx-sc-firmware-1.2.7.1/mx8qx-mek-scfw-tcm.bin .
Peng Fan702c6dc2018-10-18 14:28:37 +020035
Peng Fan79b393d2018-10-16 04:50:39 +000036Build U-Boot
37============
Peng Fan79b393d2018-10-16 04:50:39 +000038$ make imx8qxp_mek_defconfig
Peng Fanf1a02a92018-12-21 06:21:37 +000039$ make flash.bin
Peng Fan702c6dc2018-10-18 14:28:37 +020040
41Flash the binary into the SD card
42=================================
43
44Burn the flash.bin binary to SD card offset 32KB:
45
Peng Fanf1a02a92018-12-21 06:21:37 +000046$ sudo dd if=flash.bin of=/dev/sd[x] bs=1024 seek=32
Peng Fan702c6dc2018-10-18 14:28:37 +020047
48Boot
49====
50Set Boot switch SW2: 1100.