README 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. U-Boot for the NXP i.MX8QM EVK board
  2. Quick Start
  3. ===========
  4. - Build the ARM Trusted firmware binary
  5. - Get scfw_tcm.bin and ahab-container.img
  6. - Build U-Boot
  7. - Flash the binary into the SD card
  8. - Boot
  9. Get and Build the ARM Trusted firmware
  10. ======================================
  11. $ git clone https://source.codeaurora.org/external/imx/imx-atf
  12. $ cd imx-atf/
  13. $ git checkout origin/imx_4.14.78_1.0.0_ga -b imx_4.14.78_1.0.0_ga
  14. $ make PLAT=imx8qm bl31
  15. Get scfw_tcm.bin and ahab-container.img
  16. ==============================
  17. $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-sc-firmware-1.1.bin
  18. $ chmod +x imx-sc-firmware-1.1.bin
  19. $ ./imx-sc-firmware-1.1.bin
  20. $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.0.bin
  21. $ chmod +x firmware-imx-8.0.bin
  22. $ ./firmware-imx-8.0.bin
  23. Copy the following binaries to U-Boot folder:
  24. $ cp imx-atf/build/imx8qm/release/bl31.bin .
  25. $ cp u-boot/u-boot.bin .
  26. Copy the following firmwares U-Boot folder :
  27. $ cp firmware-imx-7.6/firmware/seco/ahab-container.img .
  28. $ cp imx-sc-firmware-0.7/mx8qm-mek-scfw-tcm.bin .
  29. Build U-Boot
  30. ============
  31. $ make imx8qm_mek_defconfig
  32. $ make flash.bin
  33. Flash the binary into the SD card
  34. =================================
  35. Burn the flash.bin binary to SD card offset 32KB:
  36. $ sudo dd if=flash.bin of=/dev/sd[x] bs=1024 seek=32
  37. Boot
  38. ====
  39. Set Boot switch SW2: 1100.