1########### OP-TEE testsuite and demo by Rockchip ########## 2 3The optee_test git contains the source code for the TEE 4test suite in Linux using the ARM(R) TrustZone(R) technology. 5 6##### HOWTO build the testsuite ##### 7 81 build optee_client first 9* mm Android.mk in optee_client to build Dynamic Library: 10 libteec.so and Executable Binary: tee_supplicant. 11 122 build CA/TA 13* mm Android.mk in optee_test to build CA(Client Application, 14 running in normal world) and TA(Trust Application, running 15 in secure world). 16 17* OR if you only have NDK environment, you can use build.sh 18 to build TA and use ndk_build.sh to build CA. 19 20##### HOWTO run the testsuite ##### 21 221 adb push the files mentioned above to machine. 23* put libteec.so in /system/lib/ and tee_supplicant in /system/bin/. 24* put CA in /system/bin/. 25* mkdir optee_armtz in /system/lib, then put TA in system/lib/optee_armtz. 26 272 run tee_supplicant 28* run tee_supplicant as root in background. 29 $ su 30 # tee_supplicant & 31 323 run CA 33* run CA. 34 # testapp 35 # testapp_storage 36 ... 37 38##### NOTICE ##### 39 401 After each boot, you need run tee_supplicant first, otherwise CA/TA 41 can not complete interaction. 42