imx8mq_evk.rst 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. .. SPDX-License-Identifier: GPL-2.0+
  2. imx8mq_evk
  3. ==========
  4. U-Boot for the NXP i.MX8MQ EVK board
  5. Quick Start
  6. -----------
  7. - Build the ARM Trusted firmware binary
  8. - Get ddr and hdmi fimware
  9. - Build U-Boot
  10. - Boot
  11. Get and Build the ARM Trusted firmware
  12. --------------------------------------
  13. Note: srctree is U-Boot source directory
  14. Get ATF from: https://source.codeaurora.org/external/imx/imx-atf
  15. branch: imx_5.4.47_2.2.0
  16. .. code-block:: bash
  17. $ make PLAT=imx8mq bl31
  18. $ cp build/imx8mq/release/bl31.bin $(builddir)
  19. Get the ddr and hdmi firmware
  20. -----------------------------
  21. .. code-block:: bash
  22. $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.9.bin
  23. $ chmod +x firmware-imx-8.9.bin
  24. $ ./firmware-imx-8.9.bin
  25. $ cp firmware-imx-8.9/firmware/hdmi/cadence/signed_hdmi_imx8m.bin $(builddir)
  26. $ cp firmware-imx-8.9/firmware/ddr/synopsys/lpddr4*.bin $(builddir)
  27. Build U-Boot
  28. ------------
  29. .. code-block:: bash
  30. $ export CROSS_COMPILE=aarch64-poky-linux-
  31. $ make imx8mq_evk_defconfig
  32. $ make flash.bin
  33. Burn the flash.bin to MicroSD card offset 33KB:
  34. .. code-block:: bash
  35. $sudo dd if=flash.bin of=/dev/sd[x] bs=1024 seek=33 conv=notrunc
  36. Boot
  37. ----
  38. Set Boot switch SW801: 1100 and Bmode: 10 to boot from Micro SD.