pitx-imx8m.rst 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. .. SPDX-License-Identifier: GPL-2.0+
  2. Kontron pitx-imx8m
  3. ==================
  4. The Kontron pitx-imx8m is an embedded board with an i.MX8MQ in the pITX
  5. form factor.
  6. The board has two Ethernet ports, USB, HDMI/LVDS, m.2 slot, SD card, CAN,
  7. RS232 and much more.
  8. Quick Start
  9. -----------
  10. - Get and build the ARM Trusted firmware binary
  11. - Get DDR and HDMI firmware
  12. - Build U-Boot
  13. - Install on SD card
  14. - Boot
  15. Get and build the ARM Trusted firmware binary
  16. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  17. Note: builddir is U-Boot build directory (source directory for in-tree builds)
  18. .. code-block:: bash
  19. $ git clone https://github.com/ARM-software/arm-trusted-firmware.git
  20. $ git checkout v2.5
  21. $ make PLAT=imx8mq ARCH=aarch64 CROSS_COMPILE=aarch64-linux-gnu- bl31
  22. $ cp build/imx8mq/release/bl31.bin $(builddir)
  23. Get DDR and HDMI firmware
  24. ^^^^^^^^^^^^^^^^^^^^^^^^^
  25. Note: builddir is U-Boot build directory (source directory for in-tree builds)
  26. .. code-block:: bash
  27. $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.11.bin
  28. $ chmod +x firmware-imx-8.11.bin
  29. $ ./firmware-imx-8.11
  30. $ cp firmware-imx-8.11/firmware/ddr/synopsys/lpddr4*.bin $(builddir)
  31. $ cp firmware-imx-8.11/firmware/hdmi/cadence/signed_hdmi_imx8m.bin $(builddir)
  32. Build U-Boot
  33. ^^^^^^^^^^^^
  34. .. code-block:: bash
  35. $ make kontron_pitx_imx8m_defconfig
  36. $ make CROSS_COMPILE=aarch64-linux-gnu-
  37. Install on SD card
  38. ^^^^^^^^^^^^^^^^^^
  39. Burn the flash.bin to SD card at an offset of 33 KiB:
  40. .. code-block:: bash
  41. $ sudo dd if=flash.bin of=/dev/sd[x] bs=1024 seek=33
  42. Boot
  43. ^^^^
  44. Set the boot source selection to SD card boot and power on the board.