blob: c1d400bcf9294bfb8e7196f8674043566fb03966 [file] [log] [blame]
Peng Fanaeb9c062018-11-20 10:20:00 +00001U-Boot for the NXP i.MX8MQ EVK board
2
3Quick Start
Fabio Estevamc3557fa2019-03-13 15:02:58 -03004===========
Peng Fanaeb9c062018-11-20 10:20:00 +00005- Build the ARM Trusted firmware binary
6- Get ddr and hdmi fimware
7- Build U-Boot
8- Boot
9
10Get and Build the ARM Trusted firmware
Fabio Estevamc3557fa2019-03-13 15:02:58 -030011======================================
Fabio Estevam472908c2019-03-13 15:02:56 -030012Note: srctree is U-Boot source directory
Peng Fanaeb9c062018-11-20 10:20:00 +000013Get ATF from: https://source.codeaurora.org/external/imx/imx-atf
14branch: imx_4.14.62_1.0.0_beta
15$ make PLAT=imx8mq bl31
Fabio Estevam472908c2019-03-13 15:02:56 -030016$ cp build/imx8mq/release/bl31.bin $(srctree)
Peng Fanaeb9c062018-11-20 10:20:00 +000017
18Get the ddr and hdmi firmware
Fabio Estevamc3557fa2019-03-13 15:02:58 -030019=============================
Peng Fanaeb9c062018-11-20 10:20:00 +000020$ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-7.9.bin
21$ chmod +x firmware-imx-7.9.bin
Baruch Siach6c559732019-02-28 13:51:04 +020022$ ./firmware-imx-7.9.bin
Peng Fanaeb9c062018-11-20 10:20:00 +000023$ cp firmware-imx-7.9/firmware/hdmi/cadence/signed_hdmi_imx8m.bin $(srctree)
Fabio Estevam81612012019-03-13 15:02:57 -030024$ cp firmware-imx-7.9/firmware/ddr/synopsys/lpddr4*.bin $(srctree)
Peng Fanaeb9c062018-11-20 10:20:00 +000025
26Build U-Boot
Fabio Estevamc3557fa2019-03-13 15:02:58 -030027============
Peng Fanaeb9c062018-11-20 10:20:00 +000028$ export CROSS_COMPILE=aarch64-poky-linux-
29$ make imx8mq_evk_defconfig
30$ make flash.bin
31
32Burn the flash.bin to MicroSD card offset 33KB
33$sudo dd if=flash.bin of=/dev/sd[x] bs=1024 seek=33
34
35Boot
Fabio Estevamc3557fa2019-03-13 15:02:58 -030036====
Peng Fanaeb9c062018-11-20 10:20:00 +000037Set Boot switch SW801: 1100 and Bmode: 10 to boot from Micro SD.