-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
How to use 64MB secure memory at ls1012a #2833
Comments
Can you share the board name, you are using? Also share the crash logs. |
@pangupta Thanks for the reply. I cannot see the crash logs, but only the |
I can see that you are trying to change parameters Yes, you can increase the OPTEE_OS DRAM size "CFG_TEE_OS_DRAM0_SIZE" by increasing its value. |
I changed I still think that the error in Grapeboard is because of the Do I miss some parameters to use larger secure memory? 5 MB is still far from 60 MB. |
@mofanv Do you solve the problem? I have met the same issue on Raspberry Pi 3b. |
This issue has been marked as a stale issue because it has been open (more than) 30 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 5 days. Note, that you can always re-open a closed issue at any time. |
Please help!
I want to use as much as secure memory on a ls1012a board. I tried the followed methods.
1. Increased
PGT_CACHE_SIZE
in /optee_os/core/arch/arm/include/mm/pgt_cache.h#define PGT_CACHE_SIZE ROUNDUP(CFG_NUM_THREADS 2, PGT_NUM_PGT_PER_PAGE)
changed to:
#define PGT_CACHE_SIZE ROUNDUP(CFG_NUM_THREADS 130, PGT_NUM_PGT_PER_PAGE)
2. Decreased
TTBCR_N_VALUE
in /optee_os/core/arch/arm/mm/core_mmu_v7.c to the smallest possible#define TTBCR_N_VALUE 7
changed to:
#define TTBCR_N_VALUE 5
3. Increased
CFG_SHMEM_SIZE
in /optee_os/core/arch/arm/plat-ls/conf.mkCFG_SHMEM_SIZE ?= 0X00200000
changed to:
CFG_SHMEM_SIZE ?= 0X00400000
4. Tried to change memory size in user_ta_header_defines.h to:
#define TA_STACK_SIZE (1 * 1024 * 1024)
#define TA_DATA_SIZE (10 * 1024 * 1024)
I find the definition of
CFG_TEE_OS_DRAM0_SIZE
is 0x4000000 forplat-ls
, which is 64MB. So theCFG_TZDRAM_SIZE
isCFG_TEE_OS_DRAM0_SIZE - CFG_SHMEM_SIZE
, around 60MB.However, my TA gets errors at the segmentation fault. Could you please tell me, do I understand the memory map size in the correct way? How to correctly increase the secure memory?
Thank you in advance.
Vincent
The text was updated successfully, but these errors were encountered: