Paul Beesley | f3653a6 | 2019-05-22 11:22:44 +0100 | [diff] [blame] | 1 | Texas Instruments K3 |
| 2 | ==================== |
Nishanth Menon | 0192f89 | 2016-10-14 01:13:34 +0000 | [diff] [blame] | 3 | |
| 4 | Trusted Firmware-A (TF-A) implements the EL3 firmware layer for Texas Instruments K3 SoCs. |
| 5 | |
| 6 | Boot Flow |
| 7 | --------- |
| 8 | |
Paul Beesley | f3653a6 | 2019-05-22 11:22:44 +0100 | [diff] [blame] | 9 | :: |
| 10 | |
| 11 | R5(U-Boot) --> TF-A BL31 --> BL32(OP-TEE) --> TF-A BL31 --> BL33(U-Boot) --> Linux |
Nishanth Menon | 0192f89 | 2016-10-14 01:13:34 +0000 | [diff] [blame] | 12 | \ |
Paul Beesley | f3653a6 | 2019-05-22 11:22:44 +0100 | [diff] [blame] | 13 | Optional direct to Linux boot |
| 14 | \ |
Nishanth Menon | 0192f89 | 2016-10-14 01:13:34 +0000 | [diff] [blame] | 15 | --> BL33(Linux) |
| 16 | |
| 17 | Texas Instruments K3 SoCs contain an R5 processor used as the boot master, it |
| 18 | loads the needed images for A53 startup, because of this we do not need BL1 or |
| 19 | BL2 TF-A stages. |
| 20 | |
| 21 | Build Instructions |
| 22 | ------------------ |
| 23 | |
| 24 | https://github.com/ARM-software/arm-trusted-firmware.git |
| 25 | |
| 26 | TF-A: |
| 27 | |
| 28 | .. code:: shell |
| 29 | |
Mark Dykes | ef3a456 | 2020-01-08 20:37:18 +0000 | [diff] [blame] | 30 | make CROSS_COMPILE=aarch64-linux-gnu- PLAT=k3 SPD=opteed all |
Nishanth Menon | 0192f89 | 2016-10-14 01:13:34 +0000 | [diff] [blame] | 31 | |
| 32 | OP-TEE: |
| 33 | |
| 34 | .. code:: shell |
| 35 | |
| 36 | make ARCH=arm CROSS_COMPILE64=aarch64-linux-gnu- PLATFORM=k3 CFG_ARM64_core=y all |
| 37 | |
| 38 | R5 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 | |
| 45 | A53 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 | |
| 52 | Deploy Images |
| 53 | ------------- |
| 54 | |
| 55 | .. code:: shell |
| 56 | |
| 57 | cp tiboot3.bin tispl.bin u-boot.img /sdcard/boot/ |