blob: 4b0624e7e8617a5de5623c43fbccbf5ebc255d75 [file] [log] [blame]
Peng Fanba51e0d2020-10-14 17:12:03 +08001.. SPDX-License-Identifier: GPL-2.0+
2
3imx8mq_evk
4==========
5
6U-Boot for the NXP i.MX8MQ EVK board
7
8Quick Start
9-----------
10
11- Build the ARM Trusted firmware binary
12- Get ddr and hdmi fimware
13- Build U-Boot
14- Boot
15
16Get and Build the ARM Trusted firmware
17--------------------------------------
18
19Note: srctree is U-Boot source directory
Fabio Estevamb874c732023-01-12 21:52:23 -030020Get ATF from: https://github.com/nxp-imx/imx-atf
Andrey Zhizhikin2e2ad752020-12-13 20:36:06 +000021branch: imx_5.4.47_2.2.0
Peng Fanba51e0d2020-10-14 17:12:03 +080022
23.. code-block:: bash
24
25 $ make PLAT=imx8mq bl31
26 $ cp build/imx8mq/release/bl31.bin $(builddir)
27
28Get the ddr and hdmi firmware
29-----------------------------
30
31.. code-block:: bash
32
Andrey Zhizhikin2e2ad752020-12-13 20:36:06 +000033 $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.9.bin
34 $ chmod +x firmware-imx-8.9.bin
35 $ ./firmware-imx-8.9.bin
36 $ cp firmware-imx-8.9/firmware/hdmi/cadence/signed_hdmi_imx8m.bin $(builddir)
37 $ cp firmware-imx-8.9/firmware/ddr/synopsys/lpddr4*.bin $(builddir)
Peng Fanba51e0d2020-10-14 17:12:03 +080038
39Build U-Boot
40------------
41
42.. code-block:: bash
43
44 $ export CROSS_COMPILE=aarch64-poky-linux-
45 $ make imx8mq_evk_defconfig
Peng Fan0dafbdb2021-10-22 10:42:20 +080046 $ make
Peng Fanba51e0d2020-10-14 17:12:03 +080047
48Burn the flash.bin to MicroSD card offset 33KB:
49
50.. code-block:: bash
51
52 $sudo dd if=flash.bin of=/dev/sd[x] bs=1024 seek=33 conv=notrunc
Peng Fanba51e0d2020-10-14 17:12:03 +080053
54Boot
55----
56Set Boot switch SW801: 1100 and Bmode: 10 to boot from Micro SD.