blob: ff3d15c02b7e4c42ce1c070cf94f7490b6072fa1 [file] [log] [blame]
Peng Fan208171c2020-01-06 15:38:17 +08001U-Boot for the NXP i.MX8MN EVK board
2
3Quick Start
4===========
5- Build the ARM Trusted firmware binary
6- Get firmware-imx package
7- Build U-Boot
8- Boot
9
10Get and Build the ARM Trusted firmware
11======================================
12Note: srctree is U-Boot source directory
13Get ATF from: https://source.codeaurora.org/external/imx/imx-atf
14branch: imx_4.19.35_1.1.0
15$ make PLAT=imx8mn bl31
16$ cp build/imx8mn/release/bl31.bin $(srctree)
17
18Get the ddr firmware
19=============================
20$ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.5.bin
21$ chmod +x firmware-imx-8.5.bin
22$ ./firmware-imx-8.5
23$ cp firmware-imx-8.5/firmware/ddr/synopsys/ddr4*.bin $(srctree)
24
25Build U-Boot
26============
27$ export CROSS_COMPILE=aarch64-poky-linux-
28$ make imx8mn_ddr4_evk_defconfig
29$ export ATF_LOAD_ADDR=0x960000
30$ make flash.bin
31
32Burn the flash.bin to MicroSD card offset 32KB
33$sudo dd if=flash.bin of=/dev/sd[x] bs=1024 seek=32
34
35Boot
36====
37Set Boot switch to SD boot