1d0dd7397SPeng FanU-Boot for the NXP i.MX8QXP EVK board 2d0dd7397SPeng Fan 3d0dd7397SPeng FanQuick Start 4d0dd7397SPeng Fan=========== 5d0dd7397SPeng Fan 6d0dd7397SPeng Fan- Build the ARM Trusted firmware binary 7d0dd7397SPeng Fan- Get scfw_tcm.bin and ahab-container.img 86d9b483fSPeng Fan- Build U-Boot 9d0dd7397SPeng Fan- Flash the binary into the SD card 10d0dd7397SPeng Fan- Boot 11d0dd7397SPeng Fan 12d0dd7397SPeng FanGet and Build the ARM Trusted firmware 13d0dd7397SPeng Fan====================================== 14d0dd7397SPeng Fan 15d0dd7397SPeng Fan$ git clone https://source.codeaurora.org/external/imx/imx-atf 16d0dd7397SPeng Fan$ cd imx-atf/ 17d0dd7397SPeng Fan$ git checkout origin/imx_4.9.88_imx8qxp_beta2 -b imx_4.9.88_imx8qxp_beta2 18d0dd7397SPeng Fan$ make PLAT=imx8qxp bl31 19d0dd7397SPeng Fan 20d0dd7397SPeng FanGet scfw_tcm.bin and ahab-container.img 21d0dd7397SPeng Fan============================== 22d0dd7397SPeng Fan 23d0dd7397SPeng Fan$ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-sc-firmware-0.7.bin 24d0dd7397SPeng Fan$ chmod +x imx-sc-firmware-0.7.bin 25d0dd7397SPeng Fan$ ./imx-sc-firmware-0.7.bin 26d0dd7397SPeng Fan$ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-7.6.bin 27d0dd7397SPeng Fan$ chmod +x firmware-imx-7.6.bin 28d0dd7397SPeng Fan$ ./firmware-imx-7.6.bin 29d0dd7397SPeng Fan 306d9b483fSPeng FanCopy the following binaries to U-Boot folder: 31d0dd7397SPeng Fan 326d9b483fSPeng Fan$ cp imx-atf/build/imx8qxp/release/bl31.bin . 336d9b483fSPeng Fan$ cp u-boot/u-boot.bin . 34d0dd7397SPeng Fan 356d9b483fSPeng FanCopy the following firmwares U-Boot folder : 36d0dd7397SPeng Fan 376d9b483fSPeng Fan$ cp firmware-imx-7.6/firmware/seco/ahab-container.img . 386d9b483fSPeng Fan$ cp imx-sc-firmware-0.7/mx8qx-mek-scfw-tcm.bin . 39d0dd7397SPeng Fan 406d9b483fSPeng FanBuild U-Boot 416d9b483fSPeng Fan============ 42*59ceb152SPeng Fan$ export ATF_LOAD_ADDR=0x80000000 43*59ceb152SPeng Fan$ export BL33_LOAD_ADDR=0x80020000 446d9b483fSPeng Fan$ make imx8qxp_mek_defconfig 45*59ceb152SPeng Fan$ make flash.bin 46*59ceb152SPeng Fan$ dd if=u-boot.itb of=flash.bin bs=512 seek=528 47d0dd7397SPeng Fan 48d0dd7397SPeng FanFlash the binary into the SD card 49d0dd7397SPeng Fan================================= 50d0dd7397SPeng Fan 51d0dd7397SPeng FanBurn the flash.bin binary to SD card offset 32KB: 52d0dd7397SPeng Fan 53*59ceb152SPeng Fan$ sudo dd if=flash.bin of=/dev/sd[x] bs=1024 seek=32 54d0dd7397SPeng Fan 55d0dd7397SPeng FanBoot 56d0dd7397SPeng Fan==== 57d0dd7397SPeng FanSet Boot switch SW2: 1100. 58