I checked the startup instructions of S32G. It was written above that in EMMC startup mode, the IVT was written to 0x1000h. So I Use the hexadecimal tool to view the image file of uboot.s32.
The offset of the application boot image is 0x20-0x23h. It is found that the address of the Application boot code image is 0x3200h.
So,we can get the informatition:
RAM Start pointer:0x3408FE40h
RAM entry pointer:0x340A0000h
Code Length:0xBEC00h = 781,312 (Bytes) = 763KB
If I want to start the uboot of core A, the uboot must be placed after the Application boot code image offset of 0x40, right? The meaning of Code_length in Application boot code image is that the actual binary such as uboot.bin location?
Solved! Go to Solution.
You only need to put the header of your bin at 0x200 aligned address. The bin file is after header.
Please refer to uboot/tools/s32gen1image.c.
Can I understand that after the app code, it must be the actual running image of the app, such as uboot. bin or m7. bin, but because 0x200h is aligned (512 bytes), it must be placed at 0x3400 in my example hexdump image?
You only need to put the header of your bin at 0x200 aligned address. The bin file is after header.
Thanks,I get it!