blob: 50be99126537a2dc5323bd49c1513b196182c5f3 [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
Yannic Moog399b9e82025-01-10 13:35:37 +010012- Build the OP-TEE binary (optional)
Yannic Moog517a8f92023-06-14 09:12:20 +020013- Get ddr firmware
14- Build U-Boot
15- Boot
16
17Build the ARM Trusted firmware binary
18-------------------------------------
19
20.. code-block:: bash
21
22 $ git clone https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git
23 $ cd trusted-firmware-a
Yannic Moog399b9e82025-01-10 13:35:37 +010024 $ export CROSS_COMPILE=aarch64-linux-gnu-
Yannic Moog517a8f92023-06-14 09:12:20 +020025 $ export IMX_BOOT_UART_BASE=0x30860000
Yannic Moog399b9e82025-01-10 13:35:37 +010026 $ # with optee
27 $ make PLAT=imx8mp SPD=opteed bl31
28 $ # without optee
Yannic Moog517a8f92023-06-14 09:12:20 +020029 $ make PLAT=imx8mp bl31
30
Yannic Moog399b9e82025-01-10 13:35:37 +010031Build the OP-TEE binary (optional)
32----------------------------------
33
34.. code-block:: bash
35
36 $ git clone https://github.com/OP-TEE/optee_os.git
37 $ cd optee_os
38 $ make CFG_TEE_BENCHMARK=n \
39 CROSS_COMPILE=aarch64-linux-gnu- \
40 O=out/arm \
41 PLATFORM=imx-mx8mp_phyboard_pollux \
42 CFG_TZDRAM_START=0x56000000
43
Yannic Moog517a8f92023-06-14 09:12:20 +020044Get the ddr firmware
45--------------------
46
47.. code-block:: bash
48
49 $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.19.bin
50 $ chmod +x firmware-imx-8.19.bin
51 $ ./firmware-imx-8.19.bin
52
53Build U-Boot for SD card
54------------------------
55
56Copy binaries
57^^^^^^^^^^^^^
58
59.. code-block:: bash
60
61 $ cp <TF-A dir>/build/imx8mp/release/bl31.bin .
Yannic Moog399b9e82025-01-10 13:35:37 +010062 $ cp <OP-TEE dir>/out/arm/core/tee-raw.bin tee.bin
Yannic Moog517a8f92023-06-14 09:12:20 +020063 $ cp firmware-imx-8.19/firmware/ddr/synopsys/lpddr4*.bin .
64
65Build U-Boot
66^^^^^^^^^^^^
67
68.. code-block:: bash
69
70 $ make phycore-imx8mp_defconfig
71 $ make flash.bin
72
73Flash SD card
74^^^^^^^^^^^^^
75
76.. code-block:: bash
77
78 $ sudo dd if=flash.bin of=/dev/sd[x] bs=1024 seek=32 conv=sync