imx8qm-rom7720-a1.rst 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. .. SPDX-License-Identifier: GPL-2.0+
  2. U-Boot for the NXP i.MX8QM ROM 7720a1 board
  3. ===========================================
  4. Quick Start
  5. -----------
  6. - Build the ARM Trusted firmware binary
  7. - Get scfw_tcm.bin and ahab-container.img
  8. - Get imx-mkimage
  9. - Build U-Boot
  10. - Build imx-mkimage
  11. - Flash the binary into the SD card
  12. - Boot
  13. Get and Build the ARM Trusted firmware
  14. --------------------------------------
  15. .. code-block:: bash
  16. $ git clone https://source.codeaurora.org/external/imx/imx-atf
  17. $ cd imx-atf/
  18. $ git checkout origin/imx_4.14.78_1.0.0_ga -b imx_4.14.78_1.0.0_ga
  19. $ make PLAT=imx8qm bl31
  20. Get scfw_tcm.bin and ahab-container.img
  21. ---------------------------------------
  22. .. code-block:: bash
  23. $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-sc-firmware-1.1.bin
  24. $ chmod +x imx-sc-firmware-1.1.bin
  25. $ ./imx-sc-firmware-1.1.bin
  26. $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.0.bin
  27. $ chmod +x firmware-imx-8.0.bin
  28. $ ./firmware-imx-8.0.bin
  29. Or use this to avoid running random scripts from the internet,
  30. but note that you must agree to the license the script displays:
  31. .. code-block:: bash
  32. $ dd if=imx-sc-firmware-1.1.bin of=imx-sc-firmware-1.1.tar.bz2 bs=37185 skip=1
  33. $ tar -xf imx-sc-firmware-1.1.tar.bz2
  34. $ cp imx-sc-firmware-1.1/mx8qm-val-scfw-tcm.bin $(builddir)
  35. $ dd if=firmware-imx-8.0.bin of=firmware-imx-8.0.tar.bz2 bs=37180 skip=1
  36. $ tar -xf firmware-imx-8.0.tar.bz2
  37. $ cp firmware-imx-8.0/firmware/seco/mx8qm-ahab-container.img $(builddir)
  38. Build U-Boot
  39. ------------
  40. .. code-block:: bash
  41. $ export ATF_LOAD_ADDR=0x80000000
  42. $ export BL33_LOAD_ADDR=0x80020000
  43. $ make imx8qm_rom7720_a1_4G_defconfig
  44. $ make u-boot.bin
  45. $ make flash.bin
  46. Flash the binary into the SD card
  47. ---------------------------------
  48. Burn the flash.bin binary to SD card offset 32KB:
  49. .. code-block:: bash
  50. $ sudo dd if=flash.bin of=/dev/sd[x] bs=1k seek=32 conv=fsync
  51. Boot
  52. ----
  53. Set Boot switch SW2: 1100.