2018-11-20 10:20:00 +00:00
|
|
|
U-Boot for the NXP i.MX8MQ EVK board
|
|
|
|
|
|
|
|
Quick Start
|
2019-03-13 18:02:58 +00:00
|
|
|
===========
|
2018-11-20 10:20:00 +00:00
|
|
|
- Build the ARM Trusted firmware binary
|
|
|
|
- Get ddr and hdmi fimware
|
|
|
|
- Build U-Boot
|
|
|
|
- Boot
|
|
|
|
|
|
|
|
Get and Build the ARM Trusted firmware
|
2019-03-13 18:02:58 +00:00
|
|
|
======================================
|
2019-03-13 18:02:56 +00:00
|
|
|
Note: srctree is U-Boot source directory
|
2018-11-20 10:20:00 +00:00
|
|
|
Get ATF from: https://source.codeaurora.org/external/imx/imx-atf
|
2019-12-11 13:49:30 +00:00
|
|
|
branch: imx_4.19.35_1.0.0
|
2018-11-20 10:20:00 +00:00
|
|
|
$ make PLAT=imx8mq bl31
|
2019-03-13 18:02:56 +00:00
|
|
|
$ cp build/imx8mq/release/bl31.bin $(srctree)
|
2018-11-20 10:20:00 +00:00
|
|
|
|
|
|
|
Get the ddr and hdmi firmware
|
2019-03-13 18:02:58 +00:00
|
|
|
=============================
|
2018-11-20 10:20:00 +00:00
|
|
|
$ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-7.9.bin
|
|
|
|
$ chmod +x firmware-imx-7.9.bin
|
2019-02-28 11:51:04 +00:00
|
|
|
$ ./firmware-imx-7.9.bin
|
2018-11-20 10:20:00 +00:00
|
|
|
$ cp firmware-imx-7.9/firmware/hdmi/cadence/signed_hdmi_imx8m.bin $(srctree)
|
2019-03-13 18:02:57 +00:00
|
|
|
$ cp firmware-imx-7.9/firmware/ddr/synopsys/lpddr4*.bin $(srctree)
|
2018-11-20 10:20:00 +00:00
|
|
|
|
|
|
|
Build U-Boot
|
2019-03-13 18:02:58 +00:00
|
|
|
============
|
2018-11-20 10:20:00 +00:00
|
|
|
$ export CROSS_COMPILE=aarch64-poky-linux-
|
|
|
|
$ make imx8mq_evk_defconfig
|
|
|
|
$ make flash.bin
|
|
|
|
|
|
|
|
Burn the flash.bin to MicroSD card offset 33KB
|
|
|
|
$sudo dd if=flash.bin of=/dev/sd[x] bs=1024 seek=33
|
|
|
|
|
|
|
|
Boot
|
2019-03-13 18:02:58 +00:00
|
|
|
====
|
2018-11-20 10:20:00 +00:00
|
|
|
Set Boot switch SW801: 1100 and Bmode: 10 to boot from Micro SD.
|