blob: a219caadff26752bac20e3e3e3c8790f3fa45b64 [file] [log] [blame]
Tim Harveyfb602f62023-02-13 09:44:27 -08001.. SPDX-License-Identifier: GPL-2.0+
2
3imx8mp_venice
4=============
5
6U-Boot for the Gateworks i.MX8M Plus Venice Development Kit boards
7
8Quick Start
9-----------
10- Build the ARM Trusted firmware binary
11- Get DDR firmware
12- Build U-Boot
13- Flash to eMMC
14- Boot
15
16Get and Build the ARM Trusted firmware
17--------------------------------------
18
19.. code-block:: bash
20
21 $ git clone https://github.com/nxp-imx/imx-atf.git -b lf_v2.4
22 $ make PLAT=imx8mp bl31 CROSS_COMPILE=aarch64-linux-gnu-
23 $ cp build/imx8mp/release/bl31.bin .
24
25Get the DDR Firmware
26--------------------
27
28.. code-block:: bash
29
30 $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.9.bin
31 $ chmod +x firmware-imx-8.9.bin
32 $ ./firmware-imx-8.9.bin
33 $ cp firmware-imx-8.9/firmware/ddr/synopsys/lpddr4*.bin .
34
35Build U-Boot
36------------
37
38.. code-block:: bash
39
40 $ make imx8mp_venice_defconfig
41 $ make CROSS_COMPILE=aarch64-linux-gnu-
42
43Update eMMC
44-----------
45
46.. code-block:: bash
47
48 => tftpboot $loadaddr flash.bin
49 => setexpr blkcnt $filesize + 0x1ff && setexpr blkcnt $blkcnt / 0x200
Tim Harvey77321a42023-05-02 17:05:57 -070050 => mmc dev 2 0 && mmc write $loadaddr 0x40 $blkcnt # emmc user hw part
51 => mmc dev 2 1 && mmc write $loadaddr 0 $blkcnt # or emmc boot0 hw part
52 => mmc dev 2 2 && mmc write $loadaddr 0 $blkcnt # or emmc boot1 hw part