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====================
12*0adc3f85SFabio EstevamNote: srctree is U-Boot source directory
1386ac7a9aSPeng FanGet ATF from: https://source.codeaurora.org/external/imx/imx-atf
1486ac7a9aSPeng Fanbranch: imx_4.14.62_1.0.0_beta
1586ac7a9aSPeng Fan$ make PLAT=imx8mq bl31
16*0adc3f85SFabio Estevam$ cp build/imx8mq/release/bl31.bin $(srctree)
1786ac7a9aSPeng Fan
1886ac7a9aSPeng FanGet the ddr and hdmi firmware
1986ac7a9aSPeng Fan====================
2086ac7a9aSPeng Fan$ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-7.9.bin
2186ac7a9aSPeng Fan$ chmod +x firmware-imx-7.9.bin
2257390c3aSBaruch Siach$ ./firmware-imx-7.9.bin
2386ac7a9aSPeng Fan$ cp firmware-imx-7.9/firmware/hdmi/cadence/signed_hdmi_imx8m.bin $(srctree)
2434808cafSBaruch Siach$ cp firmware-imx-7.9/firmware/ddr/synopsys/lpddr4*.bin $(srctee)
2586ac7a9aSPeng Fan
2686ac7a9aSPeng FanBuild U-Boot
2786ac7a9aSPeng Fan====================
2886ac7a9aSPeng Fan$ export CROSS_COMPILE=aarch64-poky-linux-
2986ac7a9aSPeng Fan$ make imx8mq_evk_defconfig
3086ac7a9aSPeng Fan$ make flash.bin
3186ac7a9aSPeng Fan
3286ac7a9aSPeng FanBurn the flash.bin to MicroSD card offset 33KB
3386ac7a9aSPeng Fan$sudo dd if=flash.bin of=/dev/sd[x] bs=1024 seek=33
3486ac7a9aSPeng Fan
3586ac7a9aSPeng FanBoot
3686ac7a9aSPeng Fan====================
3786ac7a9aSPeng FanSet Boot switch SW801: 1100 and Bmode: 10 to boot from Micro SD.
38