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
Solved! Go to Solution.
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
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
Thank you for your reply,
I solved isuues