1*d0dd7397SPeng FanU-Boot for the NXP i.MX8QXP EVK board
2*d0dd7397SPeng Fan
3*d0dd7397SPeng FanQuick Start
4*d0dd7397SPeng Fan===========
5*d0dd7397SPeng Fan
6*d0dd7397SPeng Fan- Build U-Boot
7*d0dd7397SPeng Fan- Build the ARM Trusted firmware binary
8*d0dd7397SPeng Fan- Get scfw_tcm.bin and ahab-container.img
9*d0dd7397SPeng Fan- Get mkimage tool
10*d0dd7397SPeng Fan- Generate flash.bin using imx-mkimage
11*d0dd7397SPeng Fan- Flash the binary into the SD card
12*d0dd7397SPeng Fan- Boot
13*d0dd7397SPeng Fan
14*d0dd7397SPeng FanBuild U-Boot
15*d0dd7397SPeng Fan============
16*d0dd7397SPeng Fan
17*d0dd7397SPeng Fan$ make imx8qxp_mek_defconfig
18*d0dd7397SPeng Fan$ make
19*d0dd7397SPeng Fan
20*d0dd7397SPeng FanGet and Build the ARM Trusted firmware
21*d0dd7397SPeng Fan======================================
22*d0dd7397SPeng Fan
23*d0dd7397SPeng Fan$ git clone https://source.codeaurora.org/external/imx/imx-atf
24*d0dd7397SPeng Fan$ cd imx-atf/
25*d0dd7397SPeng Fan$ git checkout origin/imx_4.9.88_imx8qxp_beta2 -b imx_4.9.88_imx8qxp_beta2
26*d0dd7397SPeng Fan$ make PLAT=imx8qxp bl31
27*d0dd7397SPeng Fan
28*d0dd7397SPeng FanGet scfw_tcm.bin and ahab-container.img
29*d0dd7397SPeng Fan==============================
30*d0dd7397SPeng Fan
31*d0dd7397SPeng Fan$ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-sc-firmware-0.7.bin
32*d0dd7397SPeng Fan$ chmod +x imx-sc-firmware-0.7.bin
33*d0dd7397SPeng Fan$ ./imx-sc-firmware-0.7.bin
34*d0dd7397SPeng Fan$ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-7.6.bin
35*d0dd7397SPeng Fan$ chmod +x firmware-imx-7.6.bin
36*d0dd7397SPeng Fan$ ./firmware-imx-7.6.bin
37*d0dd7397SPeng Fan
38*d0dd7397SPeng FanGet imx-mkimage tool
39*d0dd7397SPeng Fan==============================
40*d0dd7397SPeng FanDownload the imx-mkimage tool:
41*d0dd7397SPeng Fan
42*d0dd7397SPeng Fan$ git clone https://source.codeaurora.org/external/imx/imx-mkimage/
43*d0dd7397SPeng Fan$ cd imx-mkimage/
44*d0dd7397SPeng Fan$ git checkout origin/imx_4.9.88_imx8qxp_beta2 -b imx_4.9.88_imx8qxp_beta2
45*d0dd7397SPeng Fan
46*d0dd7397SPeng Fan
47*d0dd7397SPeng FanGenerate flash.bin using imx-mkimage
48*d0dd7397SPeng Fan====================================
49*d0dd7397SPeng Fan
50*d0dd7397SPeng FanCopy the following binaries to imx-mkimage/iMX8M folder:
51*d0dd7397SPeng Fan
52*d0dd7397SPeng Fan$ cp imx-atf/build/imx8qxp/release/bl31.bin imx-mkimage/iMX8QX/
53*d0dd7397SPeng Fan$ cp u-boot/u-boot.bin imx-mkimage/iMX8QX/
54*d0dd7397SPeng Fan
55*d0dd7397SPeng FanCopy the following firmwares to imx-mkimage/iMX8 folder :
56*d0dd7397SPeng Fan
57*d0dd7397SPeng Fan$ cp firmware-imx-7.6/firmware/seco/ahab-container.img imx-mkimage/iMX8QX/
58*d0dd7397SPeng Fan$ cp imx-sc-firmware-0.7/mx8qx-mek-scfw-tcm.bin imx-mkimage/iMX8QX/scfw_tcm.bin
59*d0dd7397SPeng Fan
60*d0dd7397SPeng Fan$ cd imx-mkimage/
61*d0dd7397SPeng Fan$ make SOC=iMX8QX flash
62*d0dd7397SPeng Fan
63*d0dd7397SPeng FanFlash the binary into the SD card
64*d0dd7397SPeng Fan=================================
65*d0dd7397SPeng Fan
66*d0dd7397SPeng FanBurn the flash.bin binary to SD card offset 32KB:
67*d0dd7397SPeng Fan
68*d0dd7397SPeng Fan$ sudo dd if=iMX8QX/flash.bin of=/dev/sd[x] bs=1024 seek=32
69*d0dd7397SPeng Fan
70*d0dd7397SPeng FanBoot
71*d0dd7397SPeng Fan====
72*d0dd7397SPeng FanSet Boot switch SW2: 1100.
73