This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VM: TEE security storage is lost

Part Number: TDA4VM

Tool/software:

When using the secure storage function of TEE, after storing an object, it prompts that the operation is successful and the system is powered off. Then when the power was turned on again to read this object, it was found that it was gone. What could be the reason?

  • The following is my sample operation:

                 Create object1 and write data, then read it, and finally delete object1.
                 Read object2. If it does not exist, create object2 and write data. If it exists, determine whether the read value is the stored value.

  • Linux system is powered off,then start the sample,the following log :
Hello, test secure storage with the TA begin!
I/TC: WARNING (insecure configuration): Failed to get monotonic counter for REE FS, using 0

Prepare session with the TA
I/TC: WARNING (insecure configuration): Failed to commit dirh counter 2
Prepare session with the TA successfully!

Test on object "object#1"
- Create and load object:"object#1"E/TA:  read_raw_object:174 Failed to open persistent object, res=0xffff0008
  in the TA secure storage
- Create and write object:"object#1" data len 7000 in the TA secure storage successfully!
- Read back the object:"object#1"
- Read back the object:"object#1" successfully!
- Delete the object:"object#1"
- Delete the object:"object#1" successfully!

Test on object "object#2"
- Object:"object#2" not found in TA secure storage, create it.
- Create object:"object#2" write data len 44 in TA secure storage successfully!

We're done, close and release TEE resources

Here,test secure storage with the TA end!