blob: 859f852255eb8c20e0f3a0d29a972b7d6cfafdbd [file] [log] [blame]
Peng Fan86ac7a92018-11-20 10:20:00 +00001U-Boot for the NXP i.MX8MQ EVK board
2
3Quick Start
Fabio Estevam65749312019-03-13 15:02:58 -03004===========
Peng Fan86ac7a92018-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 Estevam65749312019-03-13 15:02:58 -030011======================================
Fabio Estevam0adc3f82019-03-13 15:02:56 -030012Note: srctree is U-Boot source directory
Peng Fan86ac7a92018-11-20 10:20:00 +000013Get ATF from: https://source.codeaurora.org/external/imx/imx-atf
Fabio Estevam3b5aefa2019-12-11 10:49:30 -030014branch: imx_4.19.35_1.0.0
Peng Fan86ac7a92018-11-20 10:20:00 +000015$ make PLAT=imx8mq bl31
Frieder Schrempf162c72c2019-12-11 10:06:06 +000016$ cp build/imx8mq/release/bl31.bin $(builddir)
Peng Fan86ac7a92018-11-20 10:20:00 +000017
18Get the ddr and hdmi firmware
Fabio Estevam65749312019-03-13 15:02:58 -030019=============================
Peng Fan86ac7a92018-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 Siach57390c32019-02-28 13:51:04 +020022$ ./firmware-imx-7.9.bin
Frieder Schrempf162c72c2019-12-11 10:06:06 +000023$ cp firmware-imx-7.9/firmware/hdmi/cadence/signed_hdmi_imx8m.bin $(builddir)
24$ cp firmware-imx-7.9/firmware/ddr/synopsys/lpddr4*.bin $(builddir)
Peng Fan86ac7a92018-11-20 10:20:00 +000025
26Build U-Boot
Fabio Estevam65749312019-03-13 15:02:58 -030027============
Peng Fan86ac7a92018-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 Estevam65749312019-03-13 15:02:58 -030036====
Peng Fan86ac7a92018-11-20 10:20:00 +000037Set Boot switch SW801: 1100 and Bmode: 10 to boot from Micro SD.