This is a cache of https://discuss.96boards.org/t/can-i-use-prmb-with-tee-storage-private-rpmb/6892. It is a snapshot of the page at 2024-09-28T10:12:36.252+0000.
Can I use PRMB with <strong>tee</strong>_STORAGE_PRIVATE_RPMB? - HiKey 960 - 96Boards Forum

Can I use PRMB with tee_STORAGE_PRIVATE_RPMB?

Hi.

I would like to know if RP-BM can be used as Secure Storage with OP-tee on Hikey960.
Looking at the source code, tee_supplicant seems to support only eMMC’s RPMB and not UFS.
So, I think I can’t use RPMB on Hikey960. Is it right?

Thank you.

Yes currently tee-supplicant seems to support only eMMC’s RPMB. But UFS does provide support for RPMB partition as well. I think this could be added as an enhancement to tee-supplicant.

If you want to play with RPMB secure storage stack for testing purposes, you could enable RPMB_EMU in tee-supplicant (looks like it is enabled by default though).

Thank you for your reply.
Do you have any plan for tee-supplicant update?

I have updated OP-tee people regarding this enhancement required. BTW, if you have any working implementation, please feel free to create a PR here: https://github.com/OP-tee/optee_client/pulls