将linux运行的模式之外又划分出了,一个权限更高的模式,secure mode。
secure mode模式下,运行tee-os可以访问的硬件资源最多。
linux运行后,在kernel运行的client application与tee os中运行的trust application通信,实现Linux访问TEE的目的。
ATF: Arm Trustzone Firmware
Trustzone:支持ATF的硬件。ATF是软件。
TrustZone是一种架构,它对ARM的扩展,其实只是增加了一条指令,一个配置状态位,以及一个新的有别于核心态和用户态的安全态。
ATF is an ARMv8 open source framework to use Trustzone to boots a Secure payload and a Non trusted firmware (e.g., U-Boot, etc.) in the Secure world and the Normal world respectively.
如何进入secure mode
设置SOC中 NS(Normal State)位,进入或推出secure mode
以ARM V8为例:
Power ON -> bootrom->SPL->ATF->uboot->OS
参考
https://www.cnblogs.com/dakewei/p/10267774.html