verdin-imx8mp.rst 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. .. SPDX-License-Identifier: GPL-2.0-or-later
  2. .. sectionauthor:: Marcel Ziswiler <marcel.ziswiler@toradex.com>
  3. Verdin iMX8M Plus Module
  4. ========================
  5. - SoM: https://www.toradex.com/computer-on-modules/verdin-arm-family/nxp-imx-8m-plus
  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=imx8mp IMX_BOOT_UART_BASE=0x30880000 bl31
  24. $ cp build/imx8mp/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*_202006.bin ./
  33. Build U-Boot
  34. ------------
  35. .. code-block:: bash
  36. $ export CROSS_COMPILE=aarch64-linux-gnu-
  37. $ make verdin-imx8mp_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 2 1 && mmc write ${loadaddr} 0x0 ${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 2022.04-rc1-00164-g21a0312611-dirty (Feb 07 2022 - 11:34:04 +0100)
  57. Quad die, dual rank failed, attempting dual die, single rank configuration.
  58. Normal Boot
  59. WDT: Started watchdog@30280000 with servicing (60s timeout)
  60. Trying to boot from BOOTROM
  61. Find img info 0x&48025a00, size 872
  62. Need continue download 1024
  63. Download 779264, Total size 780424
  64. NOTICE: BL31: v2.2(release):rel_imx_5.4.70_2.3.2_rc1-5-g835a8f67b
  65. NOTICE: BL31: Built : 16:52:37, Aug 26 2021
  66. U-Boot 2022.04-rc1-00164-g21a0312611-dirty (Feb 07 2022 - 11:34:04 +0100)
  67. CPU: Freescale i.MX8MP[8] rev1.1 at 1200 MHz
  68. Reset cause: POR
  69. DRAM: 8 GiB
  70. Core: 78 devices, 18 uclasses, devicetree: separate
  71. WDT: Started watchdog@30280000 with servicing (60s timeout)
  72. MMC: FSL_SDHC: 1, FSL_SDHC: 2
  73. Loading Environment from MMC... OK
  74. In: serial
  75. Out: serial
  76. Err: serial
  77. Model: Toradex Verdin iMX8M Plus Quad 4GB Wi-Fi / BT IT V1.0B, Serial# 06817281
  78. Carrier: Toradex Verdin Development Board V1.1A, Serial# 10807609
  79. Setting variant to wifi
  80. Net: Hard-coding pdata->enetaddr
  81. eth1: ethernet@30be0000, eth0: ethernet@30bf0000 [PRIME]
  82. Hit any key to stop autoboot: 0
  83. Verdin iMX8MP #