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