reyalp, thank you for helping with this!
Let me answer in reverse order:
1) Boot loop is not a problem - place where diskboot.bin called - located and commented. (For debug I've tried to place blinkcode and uncomment diskboot - it was blinking in cycle, with commented code - it's blinking only once - so I think it's resolved)
2) I've fixed and checked all functions in boot.c - all of them except last one was blinking with test code, so I think they are OK. Last function, which executes Fat32 code - was not executed, because of SD Disable routine at previous function - so I commented our that code for SD disable, and last one function of boot.c was also executed (at least blinked).
I also was able to blink leds from each _CreateTask function of boot.c - not sure that it's created, but at least it's blinking from that section. Also I have task_blinker enabled, but it's not blinking - so it's definitely something with _CreateTask - but I don't know what
3) Framebuffers. If I understand correctly, they are defined in lib.c.
This part was from stubs_entry.S:
void *vid_get_bitmap_fb() { return (void*)0x403f1000; } // Found @0xffc2c5cc
void *vid_get_viewport_fb() { return (void*)0x4076fcc0; } // Found @0xffe441f8
And I think I've found correct addresses for these functions:
vid_get_viewport_fb_d();
vid_get_viewport_live_fb();
The only problem with lib.c is that I can't figure where to get first address of:
char *hook_raw_image_addr(){
if (*((int*)0x2860) != 0)
return (char*)0x40E166C0; // I don't know where to get this one
else
return (char*)0x4139E56C; // This one is 100% correct
}
Here is table from G10, where 0x413245A0 and 0x43164D80 were used:
ROM:FFB1017C dword_FFB1017C DCD 1, 0x42794E92, 0x413245A0, 0x41516720, 0, 0, 0
ROM:FFB10198 DCD 2, 0x42794E92, 0x413245A0, 0x41516720, 0x4463ABF2, 0x43164D80, 0x42902100
ROM:FFB10198 DCD 1, 0x42794E92, 0x413245A0, 0x41516720, 0, 0, 0
ROM:FFB101D0 DCD 1, 0x42794E92, 0x413245A0, 0x41516720, 0, 0, 0
ROM:FFB101EC DCD 1, 0x42794E92, 0x413245A0, 0x41516720, 0, 0, 0
And here is the same table from A2100 FW:
ROM:FFE79074 dword_FFE79074 DCD 1, 0x424A951E, 0x4139E56C, 0x40CED8C0,
1, 0x424A951E, 0x4139E56C, 0x40CED8C0
ROM:FFE79074 DCD 1, 0x424A951E, 0x4139E56C, 0x40CED8C0
ROM:FFE79074 DCD
What should I use here ?
4) exmem is disabled in Compiler Options - is that correct and enough?
Thanks in advance.