blob: 6a0ab1ef10ac611ecdb3ae996dd444f48269f7a8 [file] [log] [blame]
Tim Harvey256dba02021-03-02 14:00:21 -08001U-Boot for the Gateworks i.MX8M Mini Venice Development Kit boards
2
3Quick Start
4===========
5- Build the ARM Trusted firmware binary
6- Get ddr firmware
7- Build U-Boot
8- Flash to eMMC
9- Boot
10
11Get and Build the ARM Trusted firmware
12======================================
13$ git clone https://source.codeaurora.org/external/imx/imx-atf
14$ git checkout imx_5.4.47_2.2.0
15$ make PLAT=imx8mm CROSS_COMPILE=aarch64-linux-gnu- bl31
16$ cp build/imx8mm/release/bl31.bin .
17
18Get the DDR Firmware
19====================
20$ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.9.bin
21$ chmod +x firmware-imx-8.9.bin
22$ ./firmware-imx-8.9.bin
23$ cp firmware-imx-8.9/firmware/ddr/synopsys/lpddr4*.bin .
24
25Build U-Boot
26============
27$ make imx8mm_venice_defconfig
28$ make flash.bin CROSS_COMPILE=aarch64-linux-gnu- ATF_LOAD_ADDR=0x920000
29
30Update eMMC
31===========
32=> tftpboot $loadaddr flash.bin
33=> setexpr blkcnt $filesize + 0x1ff && setexpr blkcnt $blkcnt / 0x200
34=> mmc dev 2 && mmc write $loadaddr 0x42 $blkcnt