verdin-imx8mm.rst 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. .. SPDX-License-Identifier: GPL-2.0-or-later
  2. .. sectionauthor:: Marcel Ziswiler <marcel.ziswiler@toradex.com>
  3. Verdin iMX8M Mini Module
  4. ========================
  5. - SoM: https://www.toradex.com/computer-on-modules/verdin-arm-family/nxp-imx-8m-mini-nano
  6. - Carrier board: https://www.toradex.com/products/carrier-board/verdin-development-board-kit
  7. Quick Start
  8. -----------
  9. - Build the ARM trusted firmware binary
  10. - Get the DDR firmware
  11. - Build U-Boot
  12. - Flash to eMMC
  13. - Boot
  14. Get and Build the ARM Trusted Firmware (Trusted Firmware A)
  15. -----------------------------------------------------------
  16. .. code-block:: bash
  17. $ echo "Downloading and building TF-A..."
  18. $ git clone https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git
  19. $ cd trusted-firmware-a
  20. Then build ATF (TF-A):
  21. .. code-block:: bash
  22. $ export CROSS_COMPILE=aarch64-linux-gnu-
  23. $ make PLAT=imx8mm IMX_BOOT_UART_BASE=0x30860000 bl31
  24. $ cp build/imx8mm/release/bl31.bin ../
  25. Get the DDR Firmware
  26. --------------------
  27. .. code-block:: bash
  28. $ cd ..
  29. $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.10.1.bin
  30. $ chmod +x firmware-imx-8.10.1.bin
  31. $ ./firmware-imx-8.10.1.bin
  32. $ cp firmware-imx-8.10.1/firmware/ddr/synopsys/lpddr4*.bin ./
  33. Build U-Boot
  34. ------------
  35. .. code-block:: bash
  36. $ export CROSS_COMPILE=aarch64-linux-gnu-
  37. $ make verdin-imx8mm_defconfig
  38. $ make
  39. Flash to eMMC
  40. -------------
  41. .. code-block:: bash
  42. > tftpboot ${loadaddr} flash.bin
  43. > setexpr blkcnt ${filesize} + 0x1ff && setexpr blkcnt ${blkcnt} / 0x200
  44. > mmc dev 0 1 && mmc write ${loadaddr} 0x2 ${blkcnt}
  45. As a convenience, instead of the last two commands, one may also use the update
  46. U-Boot wrapper:
  47. .. code-block:: bash
  48. > run update_uboot
  49. Boot
  50. ----
  51. ATF, U-Boot proper and u-boot.dtb images are packed into a FIT image,
  52. which is loaded and parsed by SPL.
  53. Boot sequence is:
  54. * SPL ---> ATF (TF-A) ---> U-Boot proper
  55. Output::
  56. U-Boot SPL 2021.10-rc2-00028-gee010ba1129 (Aug 23 2021 - 16:56:02 +0200)
  57. Normal Boot
  58. WDT: Started with servicing (60s timeout)
  59. Trying to boot from MMC1
  60. NOTICE: BL31: v2.2(release):rel_imx_5.4.70_2.3.2_rc1-5-g835a8f67b
  61. NOTICE: BL31: Built : 18:02:12, Aug 16 2021
  62. U-Boot 2021.10-rc2-00028-gee010ba1129 (Aug 23 2021 - 16:56:02 +0200)
  63. CPU: Freescale i.MX8MMQ rev1.0 at 1200 MHz
  64. Reset cause: POR
  65. DRAM: 2 GiB
  66. WDT: Started with servicing (60s timeout)
  67. MMC: FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
  68. Loading Environment from MMC... OK
  69. In: serial
  70. Out: serial
  71. Err: serial
  72. Model: Toradex Verdin iMX8M Mini Quad 2GB Wi-Fi / BT IT V1.1A, Serial# 06760554
  73. Carrier: Toradex Verdin Development Board V1.1A, Serial# 10754333
  74. Setting variant to wifi
  75. Net: eth0: ethernet@30be0000
  76. Hit any key to stop autoboot: 0
  77. Verdin iMX8MM #