Merge tag 'u-boot-imx-20200121' of https://gitlab.denx.de/u-boot/custodians/u-boot-imx
[oweals/u-boot.git] / board / freescale / imx8mn_evk / README
1 U-Boot for the NXP i.MX8MN EVK board
2
3 Quick Start
4 ===========
5 - Build the ARM Trusted firmware binary
6 - Get firmware-imx package
7 - Build U-Boot
8 - Boot
9
10 Get and Build the ARM Trusted firmware
11 ======================================
12 Note: srctree is U-Boot source directory
13 Get ATF from: https://source.codeaurora.org/external/imx/imx-atf
14 branch: imx_4.19.35_1.1.0
15 $ make PLAT=imx8mn bl31
16 $ cp build/imx8mn/release/bl31.bin $(srctree)
17
18 Get 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
25 Build 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
32 Burn the flash.bin to MicroSD card offset 32KB
33 $sudo dd if=flash.bin of=/dev/sd[x] bs=1024 seek=32
34
35 Boot
36 ====
37 Set Boot switch to SD boot