Assign Secure memory via TZASC and access it via Trusted Application in OP-TEE

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Assign Secure memory via TZASC and access it via Trusted Application in OP-TEE

230 Views
TwinkleGoyal
Contributor I

I am using 'core-image-base' for MACHINE = imx8mn-lpddr4-evk. I was able to successfully build and deploy optee-examples along with the image. I tested the optee using xtest and then ran the optee_hello_world example which seems to work fine.

I now want to assign some memory to the secure region and access it using Trusted Application. I checked the SRM but I need a clearer idea of where in the linux drivers do I make these changes and how to access it via TA.

Any lead would be helpful.

Thanks.

Labels (1)
0 Kudos
1 Reply

206 Views
Harvey021
NXP TechSupport
NXP TechSupport

Hi @TwinkleGoyal 

I haven't done a similar experiment either.

Some advice as following. You can check the configuration of tzc380 in optee. Where to configure memory permissions or change the configuration file of optee to increase the size of secure world memory. If want to access it, at least need to establish an MMC mapping relationship in it, and then Linux That side should also reserve this memory.

 

Best regards

Harvey

0 Kudos