apalix-imx8x.rst 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. .. SPDX-License-Identifier: GPL-2.0+
  2. Apalis iMX8X V1.1A Module
  3. ==========================
  4. Quick Start
  5. -----------
  6. - Build the ARM trusted firmware binary
  7. - Get scfw_tcm.bin and ahab-container.img
  8. - Build U-Boot
  9. - Load U-Boot binary using uuu
  10. - Flash U-Boot binary into the eMMC
  11. - Boot
  12. Get and Build the ARM Trusted Firmware
  13. --------------------------------------
  14. .. code-block:: bash
  15. $ git clone -b toradex_imx_5.4.24_2.1.0 http://git.toradex.com/cgit/imx-atf.git
  16. $ cd imx-atf/
  17. $ make PLAT=imx8qx bl31
  18. Get scfw_tcm.bin and ahab-container.img
  19. ---------------------------------------
  20. .. code-block:: bash
  21. $ wget https://github.com/toradex/i.MX-System-Controller-Firmware/blob/master/src/scfw_export_mx8qx_b0/build_mx8qx_b0/mx8qx-apalis-scfw-tcm.bin
  22. $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-seco-3.6.3.bin
  23. $ chmod +x imx-seco-3.6.3.bin
  24. $ ./imx-seco-3.6.3.bin
  25. Copy the following binaries to the U-Boot folder:
  26. .. code-block:: bash
  27. $ cp imx-atf/build/imx8qx/release/bl31.bin .
  28. $ cp imx-seco-3.6.3/firmware/seco/mx8qxb0-ahab-container.img mx8qx-ahab-container.imx8_defconfig
  29. Build U-Boot
  30. ------------
  31. .. code-block:: bash
  32. $ make apalis-imx8x_defconfig
  33. $ make u-boot-dtb.imx
  34. Load the U-Boot Binary Using UUU
  35. --------------------------------
  36. Get the latest version of the universal update utility (uuu) aka ``mfgtools 3.0``:
  37. https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fgithub.com%2FNXPmicro%2Fmfgtools%2Freleases
  38. Put the module into USB recovery aka serial downloader mode, connect USB device
  39. to your host and execute uuu:
  40. .. code-block:: bash
  41. sudo ./uuu u-boot/u-boot-dtb.imx
  42. Flash the U-Boot Binary into the eMMC
  43. -------------------------------------
  44. Burn the ``u-boot-dtb.imx`` binary to the primary eMMC hardware boot area
  45. partition and boot:
  46. .. code-block:: bash
  47. load mmc 1:1 $loadaddr u-boot-dtb.imx
  48. setexpr blkcnt ${filesize} + 0x1ff && setexpr blkcnt ${blkcnt} / 0x200
  49. mmc dev 0 1
  50. mmc write ${loadaddr} 0x0 ${blkcnt}