Peng Fan | 86ac7a9 | 2018-11-20 10:20:00 +0000 | [diff] [blame] | 1 | U-Boot for the NXP i.MX8MQ EVK board |
| 2 | |
| 3 | Quick Start |
Fabio Estevam | 6574931 | 2019-03-13 15:02:58 -0300 | [diff] [blame] | 4 | =========== |
Peng Fan | 86ac7a9 | 2018-11-20 10:20:00 +0000 | [diff] [blame] | 5 | - Build the ARM Trusted firmware binary |
| 6 | - Get ddr and hdmi fimware |
| 7 | - Build U-Boot |
| 8 | - Boot |
| 9 | |
| 10 | Get and Build the ARM Trusted firmware |
Fabio Estevam | 6574931 | 2019-03-13 15:02:58 -0300 | [diff] [blame] | 11 | ====================================== |
Fabio Estevam | 0adc3f8 | 2019-03-13 15:02:56 -0300 | [diff] [blame] | 12 | Note: srctree is U-Boot source directory |
Peng Fan | 86ac7a9 | 2018-11-20 10:20:00 +0000 | [diff] [blame] | 13 | Get ATF from: https://source.codeaurora.org/external/imx/imx-atf |
Fabio Estevam | 3b5aefa | 2019-12-11 10:49:30 -0300 | [diff] [blame] | 14 | branch: imx_4.19.35_1.0.0 |
Peng Fan | 86ac7a9 | 2018-11-20 10:20:00 +0000 | [diff] [blame] | 15 | $ make PLAT=imx8mq bl31 |
Frieder Schrempf | 162c72c | 2019-12-11 10:06:06 +0000 | [diff] [blame] | 16 | $ cp build/imx8mq/release/bl31.bin $(builddir) |
Peng Fan | 86ac7a9 | 2018-11-20 10:20:00 +0000 | [diff] [blame] | 17 | |
| 18 | Get the ddr and hdmi firmware |
Fabio Estevam | 6574931 | 2019-03-13 15:02:58 -0300 | [diff] [blame] | 19 | ============================= |
Peng Fan | 86ac7a9 | 2018-11-20 10:20:00 +0000 | [diff] [blame] | 20 | $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-7.9.bin |
| 21 | $ chmod +x firmware-imx-7.9.bin |
Baruch Siach | 57390c3 | 2019-02-28 13:51:04 +0200 | [diff] [blame] | 22 | $ ./firmware-imx-7.9.bin |
Frieder Schrempf | 162c72c | 2019-12-11 10:06:06 +0000 | [diff] [blame] | 23 | $ cp firmware-imx-7.9/firmware/hdmi/cadence/signed_hdmi_imx8m.bin $(builddir) |
| 24 | $ cp firmware-imx-7.9/firmware/ddr/synopsys/lpddr4*.bin $(builddir) |
Peng Fan | 86ac7a9 | 2018-11-20 10:20:00 +0000 | [diff] [blame] | 25 | |
| 26 | Build U-Boot |
Fabio Estevam | 6574931 | 2019-03-13 15:02:58 -0300 | [diff] [blame] | 27 | ============ |
Peng Fan | 86ac7a9 | 2018-11-20 10:20:00 +0000 | [diff] [blame] | 28 | $ export CROSS_COMPILE=aarch64-poky-linux- |
| 29 | $ make imx8mq_evk_defconfig |
| 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 |
Fabio Estevam | 6574931 | 2019-03-13 15:02:58 -0300 | [diff] [blame] | 36 | ==== |
Peng Fan | 86ac7a9 | 2018-11-20 10:20:00 +0000 | [diff] [blame] | 37 | Set Boot switch SW801: 1100 and Bmode: 10 to boot from Micro SD. |