blob: 439128adceba9f462f5cddea9759532b0a809ef7 [file] [log] [blame]
Igor Opaniuk6fa6efe2020-02-12 17:14:29 +02001.. SPDX-License-Identifier: GPL-2.0+
2
3Verdin iMX8M Mini Module
4========================
5
6Quick Start
7-----------
8
9- Build the ARM trusted firmware binary
10- Get the DDR firmware
11- Build U-Boot
12- Flash to eMMC
13- Boot
14
15Get and Build the ARM Trusted Firmware (Trusted Firmware A)
16-----------------------------------------------------------
17
18.. code-block:: bash
19
20 $ echo "Downloading and building TF-A..."
Igor Opaniuka00b51d2020-03-05 22:56:26 +020021 $ git clone https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git
22 $ cd trusted-firmware-a
Igor Opaniuk6fa6efe2020-02-12 17:14:29 +020023
24Then build ATF (TF-A):
25
26.. code-block:: bash
27
Igor Opaniuka00b51d2020-03-05 22:56:26 +020028 $ make PLAT=imx8mm IMX_BOOT_UART_BASE=0x30860000 bl31
29 $ cp build/imx8mm/release/bl31.bin ../
Igor Opaniuk6fa6efe2020-02-12 17:14:29 +020030
31Get the DDR Firmware
32--------------------
33
34.. code-block:: bash
35
Igor Opaniuka00b51d2020-03-05 22:56:26 +020036 $ cd ..
Marcel Ziswiler0723f392021-10-09 22:41:07 +020037 $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.10.1.bin
38 $ chmod +x firmware-imx-8.10.1.bin
39 $ ./firmware-imx-8.10.1.bin
40 $ cp firmware-imx-8.10.1/firmware/ddr/synopsys/lpddr4*.bin ./
Igor Opaniuk6fa6efe2020-02-12 17:14:29 +020041
42Build U-Boot
43------------
44.. code-block:: bash
45
46 $ export CROSS_COMPILE=aarch64-linux-gnu-
47 $ make verdin-imx8mm_defconfig
Marcel Ziswiler0723f392021-10-09 22:41:07 +020048 $ make
Igor Opaniuk6fa6efe2020-02-12 17:14:29 +020049
50Flash to eMMC
51-------------
52
53.. code-block:: bash
54
55 > tftpboot ${loadaddr} flash.bin
56 > setexpr blkcnt ${filesize} + 0x1ff && setexpr blkcnt ${blkcnt} / 0x200
57 > mmc dev 0 1 && mmc write ${loadaddr} 0x2 ${blkcnt}
58
59As a convenience, instead of the last two commands one may also use the update
60U-Boot wrapper:
61
62.. code-block:: bash
63
64 > run update_uboot
65
66Boot
67----
68
69ATF, U-Boot proper and u-boot.dtb images are packed into FIT image,
70which is loaded and parsed by SPL.
71
72Boot sequence is:
73
74* SPL ---> ATF (TF-A) ---> U-Boot proper
75
76Output:
77
78.. code-block:: bash
79
Marcel Ziswiler0723f392021-10-09 22:41:07 +020080U-Boot SPL 2021.10-rc2-00028-gee010ba1129 (Aug 23 2021 - 16:56:02 +0200)
81Normal Boot
82WDT: Started with servicing (60s timeout)
83Trying to boot from MMC1
84NOTICE: BL31: v2.2(release):rel_imx_5.4.70_2.3.2_rc1-5-g835a8f67b
85NOTICE: BL31: Built : 18:02:12, Aug 16 2021
Igor Opaniuk6fa6efe2020-02-12 17:14:29 +020086
Marcel Ziswiler0723f392021-10-09 22:41:07 +020087
88U-Boot 2021.10-rc2-00028-gee010ba1129 (Aug 23 2021 - 16:56:02 +0200)
Igor Opaniuk6fa6efe2020-02-12 17:14:29 +020089
Marcel Ziswiler0723f392021-10-09 22:41:07 +020090CPU: Freescale i.MX8MMQ rev1.0 at 1200 MHz
91Reset cause: POR
92DRAM: 2 GiB
93WDT: Started with servicing (60s timeout)
94MMC: FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
95Loading Environment from MMC... OK
96In: serial
97Out: serial
98Err: serial
99Model: Toradex Verdin iMX8M Mini Quad 2GB Wi-Fi / BT IT V1.1A, Serial# 06760554
100Carrier: Toradex Verdin Development Board V1.1A, Serial# 10754333
101Setting variant to wifi
102Net: eth0: ethernet@30be0000
103Hit any key to stop autoboot: 0
104Verdin iMX8MM #