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 8*6d9b483fSPeng 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 30*6d9b483fSPeng FanCopy the following binaries to U-Boot folder: 31d0dd7397SPeng Fan 32*6d9b483fSPeng Fan$ cp imx-atf/build/imx8qxp/release/bl31.bin . 33*6d9b483fSPeng Fan$ cp u-boot/u-boot.bin . 34d0dd7397SPeng Fan 35*6d9b483fSPeng FanCopy the following firmwares U-Boot folder : 36d0dd7397SPeng Fan 37*6d9b483fSPeng Fan$ cp firmware-imx-7.6/firmware/seco/ahab-container.img . 38*6d9b483fSPeng Fan$ cp imx-sc-firmware-0.7/mx8qx-mek-scfw-tcm.bin . 39d0dd7397SPeng Fan 40*6d9b483fSPeng FanBuild U-Boot 41*6d9b483fSPeng Fan============ 42d0dd7397SPeng Fan 43*6d9b483fSPeng Fan$ make imx8qxp_mek_defconfig 44*6d9b483fSPeng Fan$ make 45d0dd7397SPeng Fan 46d0dd7397SPeng FanFlash the binary into the SD card 47d0dd7397SPeng Fan================================= 48d0dd7397SPeng Fan 49d0dd7397SPeng FanBurn the flash.bin binary to SD card offset 32KB: 50d0dd7397SPeng Fan 51*6d9b483fSPeng Fan$ sudo dd if=u-boot-dtb.imx of=/dev/sd[x] bs=1024 seek=32 52d0dd7397SPeng Fan 53d0dd7397SPeng FanBoot 54d0dd7397SPeng Fan==== 55d0dd7397SPeng FanSet Boot switch SW2: 1100. 56