blob: e9dc2259907c969523d498d3c4ef044cff7092b5 [file] [log] [blame]
Yannic Moog3bc59522023-06-14 09:12:19 +02001.. SPDX-License-Identifier: GPL-2.0+
2
3phyCORE-i.MX 8M Mini
4====================
5
6The phyCORE-i.MX 8M Mini 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=0x30880000
25 $ make PLAT=imx8mm 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/imx8mm/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-imx8mm_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=33 conv=sync