由于HIKEY板对于TZPC寄存器控制位的相关资料不全,所以正在使用飞思卡尔的FSL i.MX6 UltraLite EVK Board平台,用以继续开发并应用Trustzone技术的TZASC。
一. 前期准备:
使用SD卡作为系统启动盘,将SD进行分区,并在第二个分区刷写FSL i.MX6 UltraLite EVK平台指定的linux文件系统。
U-BOOT代码:
下载U-BOOT,并使用checkout切换版本
git clone https://github.com/MrVan/uboot.git
git checkout 4f016adae573aaadd7bf6a37f8c58a882b391ae6
Linux内核:
git clone https://github.com/linaro-swg/linux.git
OP-TEE代码:
git clone https://github.com/OP-TEE/optee_os.git
OPTEE CLIENT:
git clone https://github.com/OP-TEE/optee_client.git
OPTEE XTEST
git clone https://github.com/OP-TEE/optee_test.git
二. 编译
官方教程上使用arm-poky-linux-gnueabi作为OP-TEE的交叉编译器,经测试,