1.. SPDX-License-Identifier: GPL-2.0+
2
3imx8qxp_mek
4===========
5
6U-Boot for the NXP i.MX8QXP EVK board
7
8Quick Start
9-----------
10
11- Build the ARM Trusted firmware binary
12- Get scfw_tcm.bin and ahab-container.img
13- Build U-Boot
14- Flash the binary into the SD card
15- Boot
16
17Get and Build the ARM Trusted firmware
18--------------------------------------
19
20.. code-block:: bash
21
22   $ git clone https://source.codeaurora.org/external/imx/imx-atf
23   $ cd imx-atf/
24   $ git checkout origin/imx_4.19.35_1.1.0 -b imx_4.19.35_1.1.0
25   $ make PLAT=imx8qx bl31
26
27Get scfw_tcm.bin and ahab-container.img
28---------------------------------------
29
30.. code-block:: bash
31
32   $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-sc-firmware-1.2.7.1.bin
33   $ chmod +x imx-sc-firmware-1.2.7.1.bin
34   $ ./imx-sc-firmware-1.2.7.1.bin
35   $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-seco-2.3.1.bin
36   $ chmod +x imx-seco-2.3.1.bin
37   $ ./imx-seco-2.3.1.bin
38
39Copy the following binaries to U-Boot folder:
40
41.. code-block:: bash
42
43  $ cp imx-atf/build/imx8qx/release/bl31.bin .
44  $ cp imx-seco-2.3.1/firmware/seco/mx8qx-ahab-container.img ./ahab-container.img
45  $ cp imx-sc-firmware-1.2.7.1/mx8qx-mek-scfw-tcm.bin	.
46
47Build U-Boot
48------------
49
50.. code-block:: bash
51
52  $ make imx8qxp_mek_defconfig
53  $ make flash.bin
54
55Flash the binary into the SD card
56---------------------------------
57
58Burn the flash.bin binary to SD card offset 32KB:
59
60.. code-block:: bash
61
62   $ sudo dd if=flash.bin of=/dev/sd[x] bs=1024 seek=32 conv=notrunc
63
64Boot
65----
66Set Boot switch SW2: 1100.
67