blob: 0d9e1024f8c5300e91a3a4c18b2babd5853a0824 [file] [log] [blame]
Yannic Moog41054c42024-01-10 14:35:45 +01001.. SPDX-License-Identifier: GPL-2.0+
2
3phyGATE-Tauri-L-i.MX 8M Mini
4============================
5
6The phyGATE-Tauri-L-i.MX 8M Mini with 2GB of main memory is supported.
7
8Quick Start
9-----------
10
11- Build the ARM Trusted firmware binary
Yannic Moog81ffaed2025-01-10 13:35:38 +010012- Build the OP-TEE binary (optional)
Yannic Moog41054c42024-01-10 14:35:45 +010013- 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 Moog81ffaed2025-01-10 13:35:38 +010024 $ export CROSS_COMPILE=aarch64-linux-gnu-
Yannic Moog41054c42024-01-10 14:35:45 +010025 $ export IMX_BOOT_UART_BASE=0x30880000
Yannic Moog81ffaed2025-01-10 13:35:38 +010026 $ # with optee
27 $ make PLAT=imx8mm BL32_BASE=0x56000000 SPD=opteed bl31
28 $ # without optee
Yannic Moog41054c42024-01-10 14:35:45 +010029 $ make PLAT=imx8mm bl31
30
Yannic Moog81ffaed2025-01-10 13:35:38 +010031.. include:: imx8mm-optee-build.rsti
32
Yannic Moog41054c42024-01-10 14:35:45 +010033Get the ddr firmware
34--------------------
35
36.. code-block:: bash
37
38 $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.23.bin
39 $ chmod +x firmware-imx-8.23.bin
40 $ ./firmware-imx-8.23.bin
41
42Build U-Boot for SD card
43------------------------
44
45Copy binaries
46^^^^^^^^^^^^^
47
48.. code-block:: bash
49
50 $ cp <TF-A dir>/build/imx8mm/release/bl31.bin .
Yannic Moog81ffaed2025-01-10 13:35:38 +010051 $ cp <OP-TEE dir>/out/arm/core/tee-raw.bin tee.bin
Yannic Moog41054c42024-01-10 14:35:45 +010052 $ cp firmware-imx-8.23/firmware/ddr/synopsys/lpddr4*.bin .
53
54Build U-Boot
55^^^^^^^^^^^^
56
57.. code-block:: bash
58
59 $ make imx8mm-phygate-tauri-l_defconfig
60 $ make flash.bin
61
62Flash SD card
63^^^^^^^^^^^^^
64
65.. code-block:: bash
66
67 $ sudo dd if=flash.bin of=/dev/sd[x] bs=1024 seek=33 conv=sync