Hello,
I am using jetson tx2 development board which has arm cortex a57 processor which uses arm trusted firmware(atf) to boot. Trusty is the secure world operating system provided by atf.
Following are my questions:
1) How to configure how much ram both secure and normal world should use?
2) How does the boot-loader figure out how much ram is available in the system?
3) How can secure world access memory from the normal world?
I tried looking for documentation but couldn't find any relevant documents. If you can answer my questions or point me to some manual, it will be very helpful.
thanks.
It is a special manual called ug1019, "Programming ARM TrustZone Architecture on the Xilinx Zynq-7000 All Programmable SoC"
Can you tell me or point me to some documentation/keywords so that i can map normal world memory into secure world?
There is no special action. You have to set the NS bit in the page table entry and make it shared. (At least that's how it works on CA9, but I guess on Armv8-A it is the same.)
42Bastian Schick said:You have to set the NS bit in the page table entry
does this has to be manually set ? or after doing mmap to NW memory, SW will set it right?
42Bastian Schick said:make it shared.
what do you mean by this? how to make memory region shared between both worlds?
I am talking about "low level". I have no idea if and how this can be achieved with mmap().Anyway, checkout Armv8-A MMU docu.