I have implemented the change detailed in Application note AN5127 (https://www.nxp.com/docs/en/application-note/AN5127.pdf) successfully for a i.MX7D platform with kernel 4.9. I am trying to update to a Yocto Kirkstone based BSP with kernel 5.10 and am failing to successfully boot when making the same modifications. The system gets stuck after printing "Staring Kernel ..."
What changes should I be aware of that will require additional changes to the kernel to get the modifications working for Kernel 5.10?
I have narrowed the failure to boot to be in the __turn_mmu_on function in arch/arm/kernel/head.S. Unfortunately the comment for __turn_mmu_on specifies that you cannot trace through this function which I assume applies to jtag debuggers. I also have been unable to print to the UART though it (unsurprisingly).
What do I need to verify prior to that call to ensure the platform is correctly set up?