imx8mp_evk.rst 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. .. SPDX-License-Identifier: GPL-2.0+
  2. imx8mp_evk
  3. ==========
  4. U-Boot for the NXP i.MX8MP EVK board
  5. Quick Start
  6. -----------
  7. - Build the ARM Trusted firmware binary
  8. - Get the firmware-imx package
  9. - Build U-Boot
  10. - Boot
  11. Get and Build the ARM Trusted firmware
  12. --------------------------------------
  13. Get ATF from: https://source.codeaurora.org/external/imx/imx-atf
  14. branch: imx_5.4.70_2.3.0
  15. .. code-block:: bash
  16. $ make PLAT=imx8mp bl31
  17. Get the ddr firmware
  18. --------------------
  19. .. code-block:: bash
  20. $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.10.bin
  21. $ chmod +x firmware-imx-8.10.bin
  22. $ ./firmware-imx-8.10.bin
  23. Build U-Boot
  24. ------------
  25. .. code-block:: bash
  26. $ export CROSS_COMPILE=aarch64-poky-linux-
  27. $ make O=build imx8mp_evk_defconfig
  28. $ cp ../imx-atf/build/imx8mp/release/bl31.bin ./build/bl31.bin
  29. $ cp ../firmware-imx-8.10/firmware/ddr/synopsys/lpddr4_pmu_train_1d_dmem_202006.bin ./build/
  30. $ cp ../firmware-imx-8.10/firmware/ddr/synopsys/lpddr4_pmu_train_1d_imem_202006.bin ./build/
  31. $ cp ../firmware-imx-8.10/firmware/ddr/synopsys/lpddr4_pmu_train_2d_dmem_202006.bin ./build/
  32. $ cp ../firmware-imx-8.10/firmware/ddr/synopsys/lpddr4_pmu_train_2d_imem_202006.bin ./build/
  33. $ export ATF_LOAD_ADDR=0x970000
  34. $ make O=build
  35. Burn the flash.bin to the MicroSD card at offset 32KB:
  36. .. code-block:: bash
  37. $sudo dd if=build/flash.bin of=/dev/sd[x] bs=1K seek=32 conv=notrunc; sync
  38. $sudo dd if=build/u-boot.itb of=/dev/sd[x] bs=1K seek=384 conv=notrunc; sync
  39. Boot
  40. ----
  41. Set Boot switch to SD boot
  42. Use /dev/ttyUSB2 for U-Boot console