How to build custom tee program

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to build custom tee program

Jump to solution
1,323 Views
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 Kudos
Reply
1 Solution
1,298 Views
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

 

View solution in original post

0 Kudos
Reply
2 Replies
1,299 Views
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 Kudos
Reply
1,290 Views
dongyeonkim01
Contributor I

Thank you for your reply,

 

I solved isuues

0 Kudos
Reply