blob: e676e88664e8eba7f17c8e8c5dc30cca9e8ba242 [file] [log] [blame]
Peng Fand0dd7392018-10-18 14:28:37 +02001U-Boot for the NXP i.MX8QXP EVK board
2
3Quick Start
4===========
5
Peng Fand0dd7392018-10-18 14:28:37 +02006- Build the ARM Trusted firmware binary
7- Get scfw_tcm.bin and ahab-container.img
Peng Fan6d9b4832018-10-16 04:50:39 +00008- Build U-Boot
Peng Fand0dd7392018-10-18 14:28:37 +02009- Flash the binary into the SD card
10- Boot
11
Peng Fand0dd7392018-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/
17$ git checkout origin/imx_4.9.88_imx8qxp_beta2 -b imx_4.9.88_imx8qxp_beta2
18$ make PLAT=imx8qxp bl31
19
20Get scfw_tcm.bin and ahab-container.img
21==============================
22
23$ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-sc-firmware-0.7.bin
24$ chmod +x imx-sc-firmware-0.7.bin
25$ ./imx-sc-firmware-0.7.bin
26$ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-7.6.bin
27$ chmod +x firmware-imx-7.6.bin
28$ ./firmware-imx-7.6.bin
29
Peng Fan6d9b4832018-10-16 04:50:39 +000030Copy the following binaries to U-Boot folder:
Peng Fand0dd7392018-10-18 14:28:37 +020031
Peng Fan6d9b4832018-10-16 04:50:39 +000032$ cp imx-atf/build/imx8qxp/release/bl31.bin .
33$ cp u-boot/u-boot.bin .
Peng Fand0dd7392018-10-18 14:28:37 +020034
Peng Fan6d9b4832018-10-16 04:50:39 +000035Copy the following firmwares U-Boot folder :
Peng Fand0dd7392018-10-18 14:28:37 +020036
Peng Fan6d9b4832018-10-16 04:50:39 +000037$ cp firmware-imx-7.6/firmware/seco/ahab-container.img .
38$ cp imx-sc-firmware-0.7/mx8qx-mek-scfw-tcm.bin .
Peng Fand0dd7392018-10-18 14:28:37 +020039
Peng Fan6d9b4832018-10-16 04:50:39 +000040Build U-Boot
41============
Peng Fan6d9b4832018-10-16 04:50:39 +000042$ make imx8qxp_mek_defconfig
Peng Fan59ceb152018-12-21 06:21:37 +000043$ make flash.bin
Peng Fand0dd7392018-10-18 14:28:37 +020044
45Flash the binary into the SD card
46=================================
47
48Burn the flash.bin binary to SD card offset 32KB:
49
Peng Fan59ceb152018-12-21 06:21:37 +000050$ sudo dd if=flash.bin of=/dev/sd[x] bs=1024 seek=32
Peng Fand0dd7392018-10-18 14:28:37 +020051
52Boot
53====
54Set Boot switch SW2: 1100.