I am writing a bootloader (I cannot use U-Boot in my project) that starts the Core 1 of the P2020 as follows:
1. Copy the Core 1 boot core to 0x00800000 (with branch at 0x00800FFC).
2. Set the BPTR at 0x00800000 (and enable page translation)
3. Release the Core1
However, I see while debuging that the Core1 boots correctly to 0x00800FFC, but the TLB is not correct. Indeed it still translates to 0xFFFFF000 -> 0xFFFFF000 for the entry 0.
So Core 1 crashes.
When I update the TLB by hand thanks to the debuger and set the entry 0 to translate: 0x00800000 -> 0x00800000 it works and the Core 1 is able to boot and works perfectly!
I am sure I am missing something during the initialization but cannot find it. Do you have any idea on how to debug this?