1.Project Info Tzdriver (Trustzone driver) is a Linux kernel dirver module for ARM Trustzone.
2.Environment Prepare
- you need an ARM Linux server (like kunpeng920)
- download kernel source code to /usr/src/kernels
- you should download libboundscheck from https://atomgit.com/openeuler/libboundscheck
3.Compile
-
unzip libboundscheck and move libboundscheck to tzdriver/ like this: tzdriver |--Makefile |--core |--...... |--libboundscheck |--src |--include |--Makefile
-
cd tzdriver
-
make -C libboundscheck
-
make For 920 new models use this command instead:
make CPU_BINDING=ythen you will see tzdriver.ko under the folder "tzdriver" If you want to use tee as a non-root user inside a container, use this command instead:make CONFIG_CONTAINER_TEE_CAPABLE=true4.Run -
make sure that TEEOS is running
-
insmod tzdriver.ko
-
/usr/bin/teecd &
-
run any CA
5.License please see License/Tzdriver_License for more details