README 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. U-Boot for the Ronetix i.MX8MQ-CM board
  2. Quick Start
  3. ===========
  4. - Build the ARM Trusted firmware binary
  5. - Get ddr firmware
  6. - Build U-Boot
  7. - Boot
  8. Get and Build the ARM Trusted firmware
  9. ======================================
  10. $ git clone https://source.codeaurora.org/external/imx/imx-atf
  11. $ cd imx-atf
  12. $ git checkout imx_4.19.35_1.0.0
  13. $ make PLAT=imx8mq bl31
  14. $ cd ..
  15. $ cp imx-atf/build/imx8mq/release/bl31.bin .
  16. Get the ddr firmware
  17. ====================
  18. $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.9.bin
  19. $ chmod +x firmware-imx-8.9.bin
  20. $ ./firmware-imx-8.9.bin
  21. $ cp firmware-imx-8.9/firmware/ddr/synopsys/lpddr4*.bin .
  22. Build U-Boot
  23. ============
  24. $ /opt/cross/aarch64-ronetix-linux-9.2/bin/aarch64-ronetix-linux-gnu-
  25. $ make imx8mq_cm_defconfig
  26. $ make
  27. Burn the flash.bin to MicroSD card offset 33KB
  28. ==============================================
  29. $sudo dd if=flash.bin of=/dev/sd[x] bs=1024 seek=33 conv=sync
  30. $sudo dd if=u-boot.itb of=/dev/sd[x] bs=1024 seek=384 conv=sync
  31. Boot
  32. ====
  33. Set Boot switch on base board iMX8M-MB to SD boot:
  34. SW1[8:1]: OFF OFF OFF ON - OFF ON OFF OFF
  35. SW4[2:1]: OFF OFF
  36. J4: 1,2 - open; 3,4 - close; 5,6 - open