Now, I’m aware that this is a complex question and might not be resolved here. I am new to embedded/processor programming and I would like to know if there are any major differences between those two boards(cpu wise). I thought that since it is the same CPU (which I think has the same mmu, at least I couldn’t find any information about different versions), my code for the page table config would be universal.
A bit more context, both versions run on exactly the same code, and I am configuring one gigabyte as a section for the boot loaders (which is the current code, the one writing to the page tables) memory.
When I turn on the MMU(after writing the page table to memory and configuring tcr), the next read of the pc causes a “memory, not accessible” exception, but only on the virt board, on the raspi3b board it works just fine.
Best regards Niklas
ok, found my issue. And actually it was the first thing you said!
The virt board, opposing to the raspberry, has rom (until 1gig) and so I couldn't write to the page tables... Kind of obvious but thank you very much for your thorough help, it really helped me understand the mmu config process better!