186ac7a9aSPeng FanU-Boot for the NXP i.MX8MQ EVK board 286ac7a9aSPeng Fan 386ac7a9aSPeng FanQuick Start 486ac7a9aSPeng Fan==================== 586ac7a9aSPeng Fan- Build the ARM Trusted firmware binary 686ac7a9aSPeng Fan- Get ddr and hdmi fimware 786ac7a9aSPeng Fan- Build U-Boot 886ac7a9aSPeng Fan- Boot 986ac7a9aSPeng Fan 1086ac7a9aSPeng FanGet and Build the ARM Trusted firmware 1186ac7a9aSPeng Fan==================== 1286ac7a9aSPeng FanGet ATF from: https://source.codeaurora.org/external/imx/imx-atf 1386ac7a9aSPeng Fanbranch: imx_4.14.62_1.0.0_beta 1486ac7a9aSPeng Fan$ make PLAT=imx8mq bl31 1586ac7a9aSPeng Fan 1686ac7a9aSPeng FanGet the ddr and hdmi firmware 1786ac7a9aSPeng Fan==================== 1886ac7a9aSPeng FanNote: srctree is U-Boot source directory 1986ac7a9aSPeng Fan$ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-7.9.bin 2086ac7a9aSPeng Fan$ chmod +x firmware-imx-7.9.bin 21*57390c3aSBaruch Siach$ ./firmware-imx-7.9.bin 2286ac7a9aSPeng Fan$ cp firmware-imx-7.9/firmware/hdmi/cadence/signed_hdmi_imx8m.bin $(srctree) 2386ac7a9aSPeng Fan$ cp firmware-imx-7.9/firmware-imx-7.9/firmware/ddr/synopsys/lpddr4*.bin $(srctee) 2486ac7a9aSPeng Fan 2586ac7a9aSPeng FanBuild U-Boot 2686ac7a9aSPeng Fan==================== 2786ac7a9aSPeng Fan$ export CROSS_COMPILE=aarch64-poky-linux- 2886ac7a9aSPeng Fan$ make imx8mq_evk_defconfig 2986ac7a9aSPeng Fan$ make flash.bin 3086ac7a9aSPeng Fan 3186ac7a9aSPeng FanBurn the flash.bin to MicroSD card offset 33KB 3286ac7a9aSPeng Fan$sudo dd if=flash.bin of=/dev/sd[x] bs=1024 seek=33 3386ac7a9aSPeng Fan 3486ac7a9aSPeng FanBoot 3586ac7a9aSPeng Fan==================== 3686ac7a9aSPeng FanSet Boot switch SW801: 1100 and Bmode: 10 to boot from Micro SD. 37