New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reduce optee_os RAM footprint #6788
Comments
What is the footprint you target? On a 64bit platform, using 3MByte or 4MByte of secure RAM should be quite straight forward (aside platform specific dependencies), set |
Thanks a lot for the reply Ethienne. On core/arch/arm/plat-sam/conf.mk I've found
How I could safely resolve? |
I don't know the constraints related to plat-sam. Please ask @nodeax for assistance. |
@SimoneBongini in addition to changing The MATRIX peripheral is responsible for enforcing the access control between secure and non-secure world. Overview and the resolutions available for split is here |
Hello @nodeax , really thanks for your reply, I'm gonna digging on it.
Why optee_shm starts at 21000000 instead at 2080000? |
The optee_shm in the device tree should match the https://github.com/OP-TEE/optee_os/blob/master/core/arch/arm/plat-sam/conf.mk#L60
As long as the core/shmem/scmi_shmem addresses matches between the dts / op-tee, does not overlap and the matrix split / permission is set correctly, you should be able to play around and change the values to shrink/expand/align the regions as per your needs (within the resolution that the matrix split allows). I believe the existing values were chosen so that it can expand in the future if needed without having to re-align everything but that work was done by @clementleger |
Hello Team,
I'd like to reduce OP-TEE core RAM foot print as low as possible in order to run:
By default should be 32MB, may I reduce it? If yes how?
Thanks a lot in advance
The text was updated successfully, but these errors were encountered: