imx8qxp_mek.rst 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. .. SPDX-License-Identifier: GPL-2.0+
  2. imx8qxp_mek
  3. ===========
  4. U-Boot for the NXP i.MX8QXP EVK board
  5. Quick Start
  6. -----------
  7. - Build the ARM Trusted firmware binary
  8. - Get scfw_tcm.bin and ahab-container.img
  9. - Build U-Boot
  10. - Flash the binary into the SD card
  11. - Boot
  12. Get and Build the ARM Trusted firmware
  13. --------------------------------------
  14. .. code-block:: bash
  15. $ git clone https://source.codeaurora.org/external/imx/imx-atf
  16. $ cd imx-atf/
  17. $ git checkout origin/imx_4.19.35_1.1.0 -b imx_4.19.35_1.1.0
  18. $ make PLAT=imx8qx bl31
  19. Get scfw_tcm.bin and ahab-container.img
  20. ---------------------------------------
  21. .. code-block:: bash
  22. $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-sc-firmware-1.2.7.1.bin
  23. $ chmod +x imx-sc-firmware-1.2.7.1.bin
  24. $ ./imx-sc-firmware-1.2.7.1.bin
  25. $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-seco-2.3.1.bin
  26. $ chmod +x imx-seco-2.3.1.bin
  27. $ ./imx-seco-2.3.1.bin
  28. Copy the following binaries to U-Boot folder:
  29. .. code-block:: bash
  30. $ cp imx-atf/build/imx8qx/release/bl31.bin .
  31. $ cp imx-seco-2.3.1/firmware/seco/mx8qx-ahab-container.img ./ahab-container.img
  32. $ cp imx-sc-firmware-1.2.7.1/mx8qx-mek-scfw-tcm.bin .
  33. Build U-Boot
  34. ------------
  35. .. code-block:: bash
  36. $ make imx8qxp_mek_defconfig
  37. $ make flash.bin
  38. Flash the binary into the SD card
  39. ---------------------------------
  40. Burn the flash.bin binary to SD card offset 32KB:
  41. .. code-block:: bash
  42. $ sudo dd if=flash.bin of=/dev/sd[x] bs=1024 seek=32 conv=notrunc
  43. Boot
  44. ----
  45. Set Boot switch SW2: 1100.