How to build custom tee program

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to build custom tee program

跳至解决方案
2,195 次查看
dongyeonkim01
Contributor I

hi

we are testing 'OP-TEE' using LSDK 20.04

 

I would like to make custom OP-TEE and add  them to the image or test them, but I don't have solution

and

we are currently testing with (https://github.com/linaro-swg/optee_examples) and we would like to test *.ta or host binary file on the NXP board

thank you

Best regards NXP Team

0 项奖励
回复
1 解答
2,170 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Please refer to the procedure in https://optee.readthedocs.io/en/latest/building/gits/optee_examples/optee_examples.html.

1.  Please build optee-os and  optee_client.

$ flex-builder -c optee_os -a arm64

$ flex-builder -c optee_client -a arm64

$ cd ~/flexbuild_lsdk2004/packages/apps/security/optee_client/

$ make CROSS_COMPILE=aarch64-linux-gnu

2. Build host application

$ cd ~/optee_examples/hello_world/host/

$ make CROSS_COMPILE=aarch64-linux-gnu- TEEC_EXPORT=/home/yiping/flexbuild_lsdk2004/packages/apps/security/optee_client/out/export/ --no-builtin-variables

3. Build trusted application

$ ~/optee_examples/hello_world/ta

$ make CROSS_COMPILE=aarch64-linux-gnu- TA_DEV_KIT_DIR=/home/yiping/flexbuild_lsdk2004/packages/apps/security/optee_os/out/arm-plat-ls/export-ta_arm64

4. Please put TA image uuid.ta in /lib/optee_armtz/ folder on the target board, please copy CA image optee_example_hello_world to the target board and run the following command.

$ tee-supplicant &

$ ./optee_example_hello_world

 

在原帖中查看解决方案

0 项奖励
回复
2 回复数
2,171 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Please refer to the procedure in https://optee.readthedocs.io/en/latest/building/gits/optee_examples/optee_examples.html.

1.  Please build optee-os and  optee_client.

$ flex-builder -c optee_os -a arm64

$ flex-builder -c optee_client -a arm64

$ cd ~/flexbuild_lsdk2004/packages/apps/security/optee_client/

$ make CROSS_COMPILE=aarch64-linux-gnu

2. Build host application

$ cd ~/optee_examples/hello_world/host/

$ make CROSS_COMPILE=aarch64-linux-gnu- TEEC_EXPORT=/home/yiping/flexbuild_lsdk2004/packages/apps/security/optee_client/out/export/ --no-builtin-variables

3. Build trusted application

$ ~/optee_examples/hello_world/ta

$ make CROSS_COMPILE=aarch64-linux-gnu- TA_DEV_KIT_DIR=/home/yiping/flexbuild_lsdk2004/packages/apps/security/optee_os/out/arm-plat-ls/export-ta_arm64

4. Please put TA image uuid.ta in /lib/optee_armtz/ folder on the target board, please copy CA image optee_example_hello_world to the target board and run the following command.

$ tee-supplicant &

$ ./optee_example_hello_world

 

0 项奖励
回复
2,162 次查看
dongyeonkim01
Contributor I

Thank you for your reply,

 

I solved isuues

0 项奖励
回复