blob: 7dd3a9352a571d4279427b41ff853ca29c1fd248 [file] [log] [blame]
Fabio Estevamc17a3172020-05-11 09:45:51 -03001U-Boot for the NXP i.MX8MP EVK board
2
3Quick Start
4===========
5- Build the ARM Trusted firmware binary
6- Get the firmware-imx package
7- Build U-Boot
8- Boot
9
10Get and Build the ARM Trusted firmware
11======================================
12Note: $(srctree) is the U-Boot source directory
13Get ATF from: https://source.codeaurora.org/external/imx/imx-atf
14branch: imx_5.4.3_2.0.0
15$ make PLAT=imx8mp bl31
16$ sudo cp build/imx8mp/release/bl31.bin $(srctree)
17
18Get the ddr firmware
19====================
20$ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.7.bin
21$ chmod +x firmware-imx-8.7.bin
22$ ./firmware-imx-8.7
23$ sudo cp firmware-imx-8.7/firmware/ddr/synopsys/lpddr4_pmu_train_1d_dmem_201904.bin $(srctree)/lpddr4_pmu_train_1d_dmem.bin
24$ sudo cp firmware-imx-8.7/firmware/ddr/synopsys/lpddr4_pmu_train_1d_imem_201904.bin $(srctree)/lpddr4_pmu_train_1d_imem.bin
25$ sudo cp firmware-imx-8.7/firmware/ddr/synopsys/lpddr4_pmu_train_2d_dmem_201904.bin $(srctree)/lpddr4_pmu_train_2d_dmem.bin
26$ sudo cp firmware-imx-8.7/firmware/ddr/synopsys/lpddr4_pmu_train_2d_imem_201904.bin $(srctree)/lpddr4_pmu_train_2d_imem.bin
27
28Build U-Boot
29============
30$ export CROSS_COMPILE=aarch64-poky-linux-
31$ make imx8mp_evk_defconfig
32$ export ATF_LOAD_ADDR=0x960000
33$ make flash.bin
34
35Burn the flash.bin to the MicroSD card at offset 32KB
36$sudo dd if=flash.bin of=/dev/sd[x] bs=1K seek=32; sync
37
38Boot
39====
40Set Boot switch to SD boot
41Use /dev/ttyUSB2 for U-Boot console