On Tue, 25 Oct 2022 at 15:43, Michael Grunditz <michael.grunditz@gmail.com> wrote:



But it doesn't help for the insert of region for loading elf objects.

It all boils down to this:
*****
Kernel: map size: 65536

Kernel: map pyhys: 4267704320

Kernel: map virt: 18446743937075974144


Kernel: map size: 1048576

Kernel: map pyhys: 4268228608

Kernel: map virt: 18446743937076043776

Kernel: map size: 716800

Kernel: map pyhys: 67293184

Kernel: map virt: 67108864
 *****

The last map() gives something to insrert_translation that I think is wrong/bad the previous inserts adds to phys address each time and virt 
addresses looks consistent.
insert_translation doesn't return.
So elf loading fails.

OK so I got it all wrong

this is the modules offset:

000000000402d000 <.data.boot_modules_binaries>:
 402d000:       464c457f        .inst   0x464c457f ; undefined
 402d004:       00010102        .inst   0x00010102 ; undefined
        ...
 402d010:       00b70002        .inst   0x00b70002 ; undefined
 402d014:       00000001        .inst   0x00000001 ; undefined
 402d018:       04000860        add     z0.b, p2/m, z0.b, z3.b 

and it reflects the pys in the above output.
Boot image is inside my ram region.

Sorry! No more e-mails from me today!

MIchael