blob: f75190227cd6ff0775b6c147346869614f245044 [file] [log] [blame]
Peng Fan6998f8b2020-10-14 17:12:02 +08001.. SPDX-License-Identifier: GPL-2.0+
2
3imx8mm_evk
4==========
5
6U-Boot for the NXP i.MX8MM EVK board
7
8Quick Start
9-----------
10
11- Build the ARM Trusted firmware binary
12- Get ddr firmware
13- Build U-Boot
14- Boot
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://source.codeaurora.org/external/imx/imx-atf
21branch: imx_4.19.35_1.0.0
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.0.bin
34 $ chmod +x firmware-imx-8.0.bin
35 $ ./firmware-imx-8.0
36 $ cp firmware-imx-8.0/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_evk_defconfig
45 $ export ATF_LOAD_ADDR=0x920000
46 $ make flash.bin
47
48Burn the flash.bin to MicroSD card offset 33KB:
49
50.. code-block:: bash
51
52 $sudo dd if=flash.bin of=/dev/sd[x] bs=1024 seek=33 conv=notrunc
53
54Boot
55----
56Set Boot switch to SD boot