README 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. U-Boot for the NXP i.MX8MP EVK board
  2. Quick Start
  3. ===========
  4. - Build the ARM Trusted firmware binary
  5. - Get the firmware-imx package
  6. - Build U-Boot
  7. - Boot
  8. Get and Build the ARM Trusted firmware
  9. ======================================
  10. Note: $(srctree) is the U-Boot source directory
  11. Get ATF from: https://source.codeaurora.org/external/imx/imx-atf
  12. branch: imx_5.4.3_2.0.0
  13. $ make PLAT=imx8mp bl31
  14. $ sudo cp build/imx8mp/release/bl31.bin $(srctree)
  15. Get the ddr firmware
  16. ====================
  17. $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.7.bin
  18. $ chmod +x firmware-imx-8.7.bin
  19. $ ./firmware-imx-8.7
  20. $ sudo cp firmware-imx-8.7/firmware/ddr/synopsys/lpddr4_pmu_train_1d_dmem_201904.bin $(srctree)/lpddr4_pmu_train_1d_dmem.bin
  21. $ sudo cp firmware-imx-8.7/firmware/ddr/synopsys/lpddr4_pmu_train_1d_imem_201904.bin $(srctree)/lpddr4_pmu_train_1d_imem.bin
  22. $ sudo cp firmware-imx-8.7/firmware/ddr/synopsys/lpddr4_pmu_train_2d_dmem_201904.bin $(srctree)/lpddr4_pmu_train_2d_dmem.bin
  23. $ sudo cp firmware-imx-8.7/firmware/ddr/synopsys/lpddr4_pmu_train_2d_imem_201904.bin $(srctree)/lpddr4_pmu_train_2d_imem.bin
  24. Build U-Boot
  25. ============
  26. $ export CROSS_COMPILE=aarch64-poky-linux-
  27. $ make imx8mp_evk_defconfig
  28. $ export ATF_LOAD_ADDR=0x960000
  29. $ make flash.bin
  30. Burn the flash.bin to the MicroSD card at offset 32KB
  31. $sudo dd if=flash.bin of=/dev/sd[x] bs=1K seek=32; sync
  32. Boot
  33. ====
  34. Set Boot switch to SD boot
  35. Use /dev/ttyUSB2 for U-Boot console