Peng Fan | e82fac4 | 2020-10-14 17:12:01 +0800 | [diff] [blame] | 1 | .. SPDX-License-Identifier: GPL-2.0+ |
| 2 | |
| 3 | imx8mn_evk |
| 4 | ========== |
| 5 | |
| 6 | U-Boot for the NXP i.MX8MN EVK board |
| 7 | |
| 8 | Quick Start |
| 9 | ----------- |
| 10 | |
| 11 | - Build the ARM Trusted firmware binary |
| 12 | - Get firmware-imx package |
| 13 | - Build U-Boot |
| 14 | - Boot |
| 15 | |
| 16 | Get and Build the ARM Trusted firmware |
| 17 | -------------------------------------- |
| 18 | |
| 19 | Note: srctree is U-Boot source directory |
| 20 | Get ATF from: https://source.codeaurora.org/external/imx/imx-atf |
Andrey Zhizhikin | 2e2ad75 | 2020-12-13 20:36:06 +0000 | [diff] [blame] | 21 | branch: imx_5.4.47_2.2.0 |
Peng Fan | e82fac4 | 2020-10-14 17:12:01 +0800 | [diff] [blame] | 22 | |
| 23 | .. code-block:: bash |
| 24 | |
| 25 | $ make PLAT=imx8mn bl31 |
| 26 | $ cp build/imx8mn/release/bl31.bin $(srctree) |
| 27 | |
| 28 | Get the ddr firmware |
| 29 | -------------------- |
| 30 | |
| 31 | .. code-block:: bash |
| 32 | |
Andrey Zhizhikin | 2e2ad75 | 2020-12-13 20:36:06 +0000 | [diff] [blame] | 33 | $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.9.bin |
| 34 | $ chmod +x firmware-imx-8.9.bin |
| 35 | $ ./firmware-imx-8.9 |
| 36 | $ cp firmware-imx-8.9/firmware/ddr/synopsys/ddr4*.bin $(srctree) |
Peng Fan | e82fac4 | 2020-10-14 17:12:01 +0800 | [diff] [blame] | 37 | |
| 38 | Build U-Boot |
| 39 | ------------ |
| 40 | |
| 41 | .. code-block:: bash |
| 42 | |
| 43 | $ export CROSS_COMPILE=aarch64-poky-linux- |
| 44 | $ make imx8mn_ddr4_evk_defconfig |
| 45 | $ export ATF_LOAD_ADDR=0x960000 |
Peng Fan | 0dad74e | 2021-04-06 11:59:01 +0800 | [diff] [blame] | 46 | $ make |
Peng Fan | e82fac4 | 2020-10-14 17:12:01 +0800 | [diff] [blame] | 47 | |
| 48 | Burn the flash.bin to MicroSD card offset 32KB: |
| 49 | |
| 50 | .. code-block:: bash |
| 51 | |
| 52 | $sudo dd if=flash.bin of=/dev/sd[x] bs=1024 seek=32 conv=notrunc |
Peng Fan | 0dad74e | 2021-04-06 11:59:01 +0800 | [diff] [blame] | 53 | $sudo dd if=u-boot.itb of=/dev/sd[x] bs=1024 seek=384 conv=notrunc |
Peng Fan | e82fac4 | 2020-10-14 17:12:01 +0800 | [diff] [blame] | 54 | |
| 55 | Boot |
| 56 | ---- |
| 57 | |
| 58 | Set Boot switch to SD boot |