Is there any samples or tutorials for tvm in arm tee(e.g. OP-TEE)? There is already a sample for intel sgx.
Nope, but the only difference between a SGX example and an ARM one is changing the compile flags to use the ARM trusted libraries and asking Rust to target
I’m sure you already know this, but–just to be clear–TrustZone itself is not a TEE since it doesn’t provide a root of trust (and hence remote attestation). You’d need to have a TPM on your chip to get the full TEE abstraction. This also assumes that you have physical (or otherwise) memory isolation.
Any particular use case you had in mind? I’d be glad to help out if I can!