Peng Fan | f922017 | 2019-08-27 06:26:08 +0000 | [diff] [blame] | 1 | U-Boot for the NXP i.MX8MM EVK board |
| 2 | |
| 3 | Quick Start |
| 4 | =========== |
| 5 | - Build the ARM Trusted firmware binary |
| 6 | - Get ddr fimware |
| 7 | - Build U-Boot |
| 8 | - Boot |
| 9 | |
| 10 | Get and Build the ARM Trusted firmware |
| 11 | ====================================== |
Frieder Schrempf | 5f774dd | 2019-12-11 10:06:06 +0000 | [diff] [blame] | 12 | Note: builddir is U-Boot build directory (source directory for in-tree builds) |
Peng Fan | f922017 | 2019-08-27 06:26:08 +0000 | [diff] [blame] | 13 | Get ATF from: https://source.codeaurora.org/external/imx/imx-atf |
| 14 | branch: imx_4.19.35_1.0.0 |
| 15 | $ make PLAT=imx8mm bl31 |
Frieder Schrempf | 5f774dd | 2019-12-11 10:06:06 +0000 | [diff] [blame] | 16 | $ cp build/imx8mm/release/bl31.bin $(builddir) |
Peng Fan | f922017 | 2019-08-27 06:26:08 +0000 | [diff] [blame] | 17 | |
| 18 | Get the ddr and hdmi firmware |
| 19 | ============================= |
| 20 | $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.0.bin |
| 21 | $ chmod +x firmware-imx-8.0.bin |
| 22 | $ ./firmware-imx-8.0 |
Frieder Schrempf | 5f774dd | 2019-12-11 10:06:06 +0000 | [diff] [blame] | 23 | $ cp firmware-imx-7.9/firmware/ddr/synopsys/lpddr4*.bin $(builddir) |
Peng Fan | f922017 | 2019-08-27 06:26:08 +0000 | [diff] [blame] | 24 | |
| 25 | Build U-Boot |
| 26 | ============ |
| 27 | $ export CROSS_COMPILE=aarch64-poky-linux- |
| 28 | $ make imx8mm_evk_defconfig |
| 29 | $ export ATF_LOAD_ADDR=0x920000 |
| 30 | $ make flash.bin |
| 31 | |
| 32 | Burn the flash.bin to MicroSD card offset 33KB |
| 33 | $sudo dd if=flash.bin of=/dev/sd[x] bs=1024 seek=33 |
| 34 | |
| 35 | Boot |
| 36 | ==== |
| 37 | Set Boot switch to SD boot |