We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi Expert,
I have ARMv8 A65.
I'm enabling MMU from uboot. Uboot hang on setting sctlr_el3.M bit to 1.
So my question is Can i enable MMU with EL3?
if not when exactly i need to move to EL1 to enable MMU?
Thanks in advance
Regards,
Vishal
From where i can get the information what are the register and the MMU table i need to set to enable MMU?
Reference manual would be my first guess.
Yes, you can enable MMU for EL1/EL2/EL3 independently.
Please refer to this source code example about how we enable the MMU for different ELs.
- https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/tree/lib/xlat_tables_v2/aarch64/enable_mmu.S
Hi Zhifei,
Thanks for the reply. This is very helpful.
I'm able to enable MMU in EL3.
Next Question:-
Is there any way to check MMU is enabled and working properly or not? (SCTLR_EL.M bit is 1 i verified any other way)
Provoke an exception (writing to un-mapped memory) .