blob: 173f02d4aedc77f5da759e6472e7bdb29159284f [file] [log] [blame]
Fabio Estevamd12618b2023-01-10 17:18:08 -03001.. SPDX-License-Identifier: GPL-2.0+
2
3Cloos i.MX8MM PHG board
4=======================
5
6U-Boot for the Cloos i.MX8MM PHG board
7
8Quick Start
9-----------
10
11- Get and Build the ARM Trusted firmware
12- Get the DDR firmware
13- Build U-Boot
14- Flash U-Boot into the eMMC
15
16Get and Build the ARM Trusted firmware
17--------------------------------------
18
19Note: builddir is U-Boot build directory (source directory for in-tree builds)
20Get ATF from: https://github.com/nxp-imx/imx-atf
21branch: lf_v2.6
22
23.. code-block:: bash
24
25 $ make PLAT=imx8mm bl31
26 $ cp build/imx8mm/release/bl31.bin $(builddir)
27
28Get the DDR firmware
29--------------------
30
31.. code-block:: bash
32
33 $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.9.bin
34 $ chmod +x firmware-imx-8.9.bin
35 $ ./firmware-imx-8.9
36 $ cp firmware-imx-8.9/firmware/ddr/synopsys/lpddr4*.bin $(builddir)
37
38Build U-Boot
39------------
40
41.. code-block:: bash
42
43 $ export CROSS_COMPILE=aarch64-poky-linux-
44 $ make imx8mm_phg_defconfig
45 $ make
46
47Flash U-Boot into the eMMC
48--------------------------
49
50Program flash.bin to the eMMC at offset 33KB:
51
52.. code-block:: bash
53
54 $ ums 0 mmc 0
55 $ sudo dd if=flash.bin of=/dev/sd[x] bs=1K seek=33; sync