imx8mn_bsh_smm_s2.rst 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. .. SPDX-License-Identifier: GPL-2.0+
  2. imx8mn_bsh_smm_s2
  3. =================
  4. U-Boot for the BSH SystemMaster (SMM) S2 board family.
  5. Quick Start
  6. -----------
  7. - Build the ARM Trusted firmware binary
  8. - Get firmware-imx package
  9. - Build U-Boot
  10. - Boot
  11. Get and Build the ARM Trusted firmware
  12. --------------------------------------
  13. Note: srctree is U-Boot source directory
  14. Get ATF from: https://github.com/ARM-software/arm-trusted-firmware
  15. tag: v2.5
  16. .. code-block:: bash
  17. $ make PLAT=imx8mn IMX_BOOT_UART_BASE=0x30a60000 bl31
  18. $ cp build/imx8mn/release/bl31.bin $(srctree)
  19. Get the ddr firmware
  20. --------------------
  21. .. code-block:: bash
  22. $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.9.bin
  23. $ chmod +x firmware-imx-8.9.bin
  24. $ ./firmware-imx-8.9
  25. $ cp firmware-imx-8.9/firmware/ddr/synopsys/ddr3*.bin $(srctree)
  26. Build U-Boot
  27. ------------
  28. .. code-block:: bash
  29. $ export CROSS_COMPILE=aarch64-linux-gnu-
  30. $ make imx8mn_bsh_smm_s2_defconfig
  31. $ make
  32. Burn the flash.bin to MicroSD card offset 32KB:
  33. .. code-block:: bash
  34. $ dd if=flash.bin of=/dev/sd[x] bs=1024 seek=32 conv=notrunc
  35. Boot
  36. ----
  37. Start the board in USB serial downloader mode, plug-in the USB-OTG port and
  38. load flash.bin using Freescale/NXP UUU tool:
  39. .. code-block:: bash
  40. $ uuu -v flash.bin