imx8mm_phg.rst 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. .. SPDX-License-Identifier: GPL-2.0+
  2. Cloos i.MX8MM PHG board
  3. =======================
  4. U-Boot for the Cloos i.MX8MM PHG board
  5. Quick Start
  6. -----------
  7. - Get and Build the ARM Trusted firmware
  8. - Get the DDR firmware
  9. - Build U-Boot
  10. - Flash U-Boot into the eMMC
  11. Get and Build the ARM Trusted firmware
  12. --------------------------------------
  13. Note: builddir is U-Boot build directory (source directory for in-tree builds)
  14. Get ATF from: https://github.com/nxp-imx/imx-atf
  15. branch: lf_v2.6
  16. .. code-block:: bash
  17. $ make PLAT=imx8mm bl31
  18. $ cp build/imx8mm/release/bl31.bin $(builddir)
  19. Get the DDR 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
  25. $ cp firmware-imx-8.9/firmware/ddr/synopsys/lpddr4*.bin $(builddir)
  26. Build U-Boot
  27. ------------
  28. .. code-block:: bash
  29. $ export CROSS_COMPILE=aarch64-poky-linux-
  30. $ make imx8mm_phg_defconfig
  31. $ make
  32. Flash U-Boot into the eMMC
  33. --------------------------
  34. Program flash.bin to the eMMC at offset 33KB:
  35. .. code-block:: bash
  36. $ ums 0 mmc 0
  37. $ sudo dd if=flash.bin of=/dev/sd[x] bs=1K seek=33; sync