README 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. Build U-Boot
  26. ============
  27. $ export ATF_LOAD_ADDR=0x80000000
  28. $ export BL33_LOAD_ADDR=0x80020000
  29. $ make imx8qm_rom7720_a1_4G_defconfig
  30. $ make u-boot.bin
  31. $ make flash.bin
  32. Flash the binary into the SD card
  33. =================================
  34. Burn the flash.bin binary to SD card offset 32KB:
  35. $ sudo dd if=flash.bin of=/dev/sd[x] bs=1k seek=32 conv=fsync
  36. Boot
  37. ====
  38. Set Boot switch SW2: 1100.