apalis-imx8x.rst 2.1 KB

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