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