README 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. U-Boot for the Technexion Pico i.MX8MQ
  2. Quick Start
  3. ===========
  4. - Build the TFA binary
  5. - Get DDR and HDMI firmware
  6. - Build U-Boot
  7. - Boot
  8. Get and Build the TFA blob
  9. ==========================
  10. Note: srctree is U-Boot source directory
  11. Get ATF from: https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git
  12. branch: master
  13. $ CROSS_COMPILE=aarch64-linux-gnu- make PLAT=imx8mq bl31
  14. $ cp build/imx8mq/release/bl31.bin $(builddir)
  15. Get the DDR and HDMI firmware
  16. =============================
  17. $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-7.9.bin
  18. $ chmod +x firmware-imx-7.9.bin
  19. $ ./firmware-imx-7.9.bin
  20. # Or use this to avoid running random scripts from the internet,
  21. # but note that you must agree to the license the script displays:
  22. # $ dd if=firmware-imx-7.9.bin of=firmware-imx-7.9.tar.bz2 bs=38868 skip=1
  23. # $ tar -xf firmware-imx-7.9.tar.bz2
  24. $ cp firmware-imx-7.9/firmware/hdmi/cadence/signed_hdmi_imx8m.bin $(builddir)
  25. $ cp firmware-imx-7.9/firmware/ddr/synopsys/lpddr4*.bin $(builddir)
  26. Build U-Boot
  27. ============
  28. $ export CROSS_COMPILE=aarch64-poky-linux-
  29. $ make pico-imx8mq_defconfig
  30. $ make flash.bin
  31. Burn the flash.bin to MicroSD card offset 33KB
  32. $ dd if=flash.bin of=/dev/mmcblkX bs=1024 seek=33
  33. Or into eMMC from a running system
  34. $ dhcp flash.bin && mmc write $loadaddr 0x42 0x800
  35. Boot
  36. ====
  37. "o" denotes a pin
  38. "[]" denotes two pins bridged by a jumper
  39. eMMC boot:
  40. J1 o[] []o J2
  41. []o o[]
  42. USB upload via USB-C connector:
  43. J1 ooo ooo J2
  44. o[] []o