blob: ac0e86b3001b9e6c03fb806c7f910458f0e6fe63 [file] [log] [blame]
Marcel Ziswiler7d1a1062023-08-04 12:08:08 +02001.. SPDX-License-Identifier: GPL-2.0-or-later
2.. sectionauthor:: Marcel Ziswiler <marcel.ziswiler@toradex.com>
3
4Verdin AM62 Module
5==================
6
7Quick Start
8-----------
9
10- Get the binary-only SYSFW
11- Get binary-only TI Linux firmware
12- Build the ARM trusted firmware binary
13- Build the OPTEE binary
14- Build U-Boot for the R5
15- Build U-Boot for the A53
16- Flash to eMMC
17- Boot
18
19For an overview of the TI AM62 SoC boot flow please head over to:
20:doc:`../ti/am62x_sk`
21
22Sources:
23--------
24.. include:: ../ti/k3.rst
25 :start-after: .. k3_rst_include_start_boot_sources
26 :end-before: .. k3_rst_include_end_boot_sources
27
28Build procedure:
29----------------
300. Setup the environment variables:
31
32.. include:: ../ti/k3.rst
33 :start-after: .. k3_rst_include_start_common_env_vars_desc
34 :end-before: .. k3_rst_include_end_common_env_vars_desc
35
36.. include:: ../ti/k3.rst
37 :start-after: .. k3_rst_include_start_board_env_vars_desc
38 :end-before: .. k3_rst_include_end_board_env_vars_desc
39
40Set the variables corresponding to this platform:
41
42.. include:: ../ti/k3.rst
43 :start-after: .. k3_rst_include_start_common_env_vars_defn
44 :end-before: .. k3_rst_include_end_common_env_vars_defn
45.. code-block:: bash
46
47 $ export UBOOT_CFG_CORTEXR=verdin-am62_r5_defconfig
48 $ export UBOOT_CFG_CORTEXA=verdin-am62_a53_defconfig
49 $ export TFA_BOARD=lite
50 $ # we dont use any extra TFA parameters
51 $ unset TFA_EXTRA_ARGS
52 $ export OPTEE_PLATFORM=k3-am62x
53 $ export OPTEE_EXTRA_ARGS="CFG_WITH_SOFTWARE_PRNG=y"
54
55.. include:: ../ti/am62x_sk.rst
56 :start-after: .. am62x_evm_rst_include_start_build_steps
57 :end-before: .. am62x_evm_rst_include_end_build_steps
58
59Flash to eMMC
60-------------
61
62.. code-block:: bash
63
64 => mmc dev 0 1
65 => fatload mmc 1 ${loadaddr} tiboot3.bin
66 => mmc write ${loadaddr} 0x0 0x400
67 => fatload mmc 1 ${loadaddr} tispl.bin
68 => mmc write ${loadaddr} 0x400 0x1000
69 => fatload mmc 1 ${loadaddr} u-boot.img
70 => mmc write ${loadaddr} 0x1400 0x2000
71
72Boot
73----
74
75Output:
76
77.. code-block:: bash
78
79U-Boot SPL 2023.10-rc1-00210-gb678170a34c (Aug 03 2023 - 00:09:14 +0200)
80SYSFW ABI: 3.1 (firmware rev 0x0009 '9.0.1--v09.00.01 (Kool Koala)')
81SPL initial stack usage: 13368 bytes
82Trying to boot from MMC1
83Authentication passed
84Authentication passed
85Authentication passed
86Authentication passed
87Authentication passed
88Starting ATF on ARM64 core...
89
90NOTICE: BL31: v2.9(release):v2.9.0-73-g463655cc8
91NOTICE: BL31: Built : 14:51:42, Jun 5 2023
92I/TC:
93I/TC: OP-TEE version: 3.21.0-168-g322cf9e33 (gcc version 12.2.1 20221205 (Arm GNU Toolchain 12.2.Rel1 (Build arm-12.24))) #2 Mon Jun 5 13:04:15 UTC 2023 aarch64
94I/TC: WARNING: This OP-TEE configuration might be insecure!
95I/TC: WARNING: Please check https://optee.readthedocs.io/en/latest/architecture/porting_guidelines.html
96I/TC: Primary CPU initializing
97I/TC: SYSFW ABI: 3.1 (firmware rev 0x0009 '9.0.1--v09.00.01 (Kool Koala)')
98I/TC: HUK Initialized
99I/TC: Primary CPU switching to normal world boot
100
101U-Boot SPL 2023.10-rc1-00210-gb678170a34c (Aug 03 2023 - 00:09:41 +0200)
102SYSFW ABI: 3.1 (firmware rev 0x0009 '9.0.1--v09.00.01 (Kool Koala)')
103SPL initial stack usage: 1840 bytes
104Trying to boot from MMC1
105Authentication passed
106Authentication passed
107
108
109U-Boot 2023.10-rc1-00210-gb678170a34c (Aug 03 2023 - 00:09:41 +0200)
110
111SoC: AM62X SR1.0 HS-FS
112DRAM: 2 GiB
113Core: 136 devices, 28 uclasses, devicetree: separate
114MMC: mmc@fa10000: 0, mmc@fa00000: 1
115Loading Environment from MMC... OK
116In: serial@2800000
117Out: serial@2800000
118Err: serial@2800000
119Model: Toradex 0076 Verdin AM62 Quad 2GB WB IT V1.0A
120Serial#: 15037380
121Carrier: Toradex Verdin Development Board V1.1A, Serial# 10754333
122am65_cpsw_nuss ethernet@8000000: K3 CPSW: nuss_ver: 0x6BA01103 cpsw_ver: 0x6BA81103 ale_ver: 0x00290105 Ports:2 mdio_freq:1000000
123Setting variant to wifi
124Net:
125Warning: ethernet@8000000port@1 MAC addresses don't match:
126Address in ROM is 1c:63:49:22:5f:f9
127Address in environment is 00:14:2d:e5:73:c4
128eth0: ethernet@8000000port@1 [PRIME], eth1: ethernet@8000000port@2
129Hit any key to stop autoboot: 0
130Verdin AM62 #