blob: fda751aeffb8e5d39a93f3295f4d3523e4827f18 [file] [log] [blame]
Yannic Moog517a8f92023-06-14 09:12:20 +02001.. SPDX-License-Identifier: GPL-2.0+
2
3phyCORE-i.MX 8M Plus
4====================
5
6The phyCORE-i.MX 8M Plus with 2GB of main memory is supported.
7
8Quick Start
9-----------
10
11- Build the ARM Trusted firmware binary
12- Get ddr firmware
13- Build U-Boot
14- Boot
15
16Build the ARM Trusted firmware binary
17-------------------------------------
18
19.. code-block:: bash
20
21 $ git clone https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git
22 $ cd trusted-firmware-a
23 $ export CROSS_COMPILE=aarch64-linux-gnu
24 $ export IMX_BOOT_UART_BASE=0x30860000
25 $ make PLAT=imx8mp bl31
26
27Get the ddr firmware
28--------------------
29
30.. code-block:: bash
31
32 $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.19.bin
33 $ chmod +x firmware-imx-8.19.bin
34 $ ./firmware-imx-8.19.bin
35
36Build U-Boot for SD card
37------------------------
38
39Copy binaries
40^^^^^^^^^^^^^
41
42.. code-block:: bash
43
44 $ cp <TF-A dir>/build/imx8mp/release/bl31.bin .
45 $ cp firmware-imx-8.19/firmware/ddr/synopsys/lpddr4*.bin .
46
47Build U-Boot
48^^^^^^^^^^^^
49
50.. code-block:: bash
51
52 $ make phycore-imx8mp_defconfig
53 $ make flash.bin
54
55Flash SD card
56^^^^^^^^^^^^^
57
58.. code-block:: bash
59
60 $ sudo dd if=flash.bin of=/dev/sd[x] bs=1024 seek=32 conv=sync