blob: 4843227df3f28e4ff7b95ea0c4d10825e704b764 [file] [log] [blame]
Paul Beesleyf3653a62019-05-22 11:22:44 +01001Texas Instruments K3
2====================
Nishanth Menon0192f892016-10-14 01:13:34 +00003
4Trusted Firmware-A (TF-A) implements the EL3 firmware layer for Texas Instruments K3 SoCs.
5
6Boot Flow
7---------
8
Paul Beesleyf3653a62019-05-22 11:22:44 +01009::
10
11 R5(U-Boot) --> TF-A BL31 --> BL32(OP-TEE) --> TF-A BL31 --> BL33(U-Boot) --> Linux
Nishanth Menon0192f892016-10-14 01:13:34 +000012 \
Paul Beesleyf3653a62019-05-22 11:22:44 +010013 Optional direct to Linux boot
14 \
Nishanth Menon0192f892016-10-14 01:13:34 +000015 --> BL33(Linux)
16
17Texas Instruments K3 SoCs contain an R5 processor used as the boot master, it
18loads the needed images for A53 startup, because of this we do not need BL1 or
19BL2 TF-A stages.
20
21Build Instructions
22------------------
23
24https://github.com/ARM-software/arm-trusted-firmware.git
25
26TF-A:
27
28.. code:: shell
29
Mark Dykesef3a4562020-01-08 20:37:18 +000030 make CROSS_COMPILE=aarch64-linux-gnu- PLAT=k3 SPD=opteed all
Nishanth Menon0192f892016-10-14 01:13:34 +000031
32OP-TEE:
33
34.. code:: shell
35
36 make ARCH=arm CROSS_COMPILE64=aarch64-linux-gnu- PLATFORM=k3 CFG_ARM64_core=y all
37
38R5 U-Boot:
39
40.. code:: shell
41
42 make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- am65x_evm_r5_defconfig
43 make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- SYSFW=<path to SYSFW>
44
45A53 U-Boot:
46
47.. code:: shell
48
49 make ARCH=arm CROSS_COMPILE=aarch64-linux-gnu- am65x_evm_a53_defconfig
50 make ARCH=arm CROSS_COMPILE=aarch64-linux-gnu- ATF=<path> TEE=<path>
51
52Deploy Images
53-------------
54
55.. code:: shell
56
57 cp tiboot3.bin tispl.bin u-boot.img /sdcard/boot/