README 1.7 KB

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