Skip to contentSkip to conversation

Persistent filesystem between reboots

Tee-dev Jens Wiklander 1 participant 1 message Jan 15, 2021 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hi Kris,

Quoted 7 lines · Kris Kwiatkowski

Hi,

I'm using HiKey 960 for my research project. I've noticed that filesystem is not persistent between reboot. Is there a way to change it, so that any change to file in the /etc will be persistent?

There's no easy way of doing that with our repo based builds I'm aware of. The purpose of our (OP-TEE team) builds is in principle to be able to execute xtest and other test programs. For this use case it's actually an advantage to start from a clean state each time. In your case I think you need to pick a suitable distribution and update it as needed to support OP-TEE. It could be worth looking at Yocto as there is some OP-TEE support already.

Here's a short list of what's needed:
1. TF-A compiled with OP-TEE support (dispatcher in BL31 and load support in bl2)
2. OP-TEE included in the FIP loaded by TF-A
3. OP-TEE nodes in device tree
4. OP-TEE driver enabled in the kernel (recent upstream kernel should work in most cases)
5. tee-supplicant and libteec.so installed in the file system
6. tee-supplicant started

With that in place you should be good to go.

Cheers,
Jens