Hi Akshay,
Currently I am seeing 2 issues (previous panic was resolved by using CFG_SECURE_TIME_SOURCE_REE as the time source instead of CFG_SECURE_TIME_SOURCE_CNTPCT. Issue 1: Serial console not working after MMU is enabled If I put a while(1) at the end of init_primary_helper then the code is stuck in the while(1) loop without any aborts. However I do not see any serial messages that should be printed after MMU gets enabled. If I try to pint the UART registers using the virtual address after halting the processor over JLink then it returns "00000002" which is incorrect data.
Hmm, can you share your UART driver somewhere? I just want to take a look. Also, can JLink perform a table walk for a specified VA? If I remember well, it allows you to access to CP15...
Issue2: Hang after jumping to Linux kernel? If I remove the above while(1) and let the board boot, it appears to be stuck in the address range (physical) of the Linux kernel. I am not sure if it needs to be using virtual addresses here... (gdb) mon halt target state: halted target halted in ARM state due to debug-request, current mode: Supervisor cpsr: 0x40000093 pc: 0x22003314
Have you checked what it code is at given pc?
Thanks for your continued support :)
You are welcome. I was in the same situation multiple times. It is good to have a fresh idea from someone else :)