xref: /OK3568_Linux_fs/external/security/rk_tee_user/v1/README_FOR_RK.md (revision 4882a59341e53eb6f0b4789bf948001014eff981)
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 CA/TA
9* mm Android.mk in optee_test to build CA(Client Application,
10  running in normal world) and TA(Trust Application, running
11  in secure world).
12
13* OR if you only have NDK environment, you can use build.sh
14  to build TA and use ndk_build.sh to build CA.
15
16##### HOWTO run the testsuite #####
17
181 adb push the files mentioned above to machine.
19* put libteec.so in /system/lib/ and tee_supplicant in /system/bin/.
20* put CA in /system/bin/.
21* mkdir optee_armtz in /system/lib, then put TA in system/lib/optee_armtz.
22
232 run tee_supplicant
24* run tee_supplicant as root in background.
25  $ su
26  # tee_supplicant &
27
283 run CA
29* run CA.
30  # testapp
31  # testapp_storage
32  ...
33
34##### NOTICE #####
35
361 After each boot, you need run tee_supplicant first, otherwise CA/TA
37  can not complete interaction.
38