#122973 - Lick - Sat Mar 24, 2007 1:35 am
http://lickr.org/files/launcher.zip
I'm kind of stuck with this NDS file bootstub. It's supposed to be copied by the ARM9 to VRAM, then ran from ARM7. The bootstub itself will search for the DLDI section in Main RAM, and copy it over its own DLDI section that is in VRAM. Then it initializes FAT using the copied DLDI section, and it loads the requested file (currently static filename "launchee.nds").
The problem is that if FAT was initialized in the launcher, then the bootstub will magically stay at white screens.
If FAT was never initialized in the launcher, but there is a DLDI section (and you patch it correctly), the the bootstub WORKS. It successfully copies the Main RAM-DLDI to its own VRAM-DLDI and boots the "launchee.nds".
I'm not really expecting someone to know how this bug can be fixed, but I'm just posting all the code, so someone could at least try.
And yes, I know that I could make the ARM9 run the bootstub and let the ARM7 idle, which is what MightyMax' exec_stub does. BUT I really want this to work as it fits perfectly into rebootlib in this form.
Thanks for reading.
_________________
http://licklick.wordpress.com
I'm kind of stuck with this NDS file bootstub. It's supposed to be copied by the ARM9 to VRAM, then ran from ARM7. The bootstub itself will search for the DLDI section in Main RAM, and copy it over its own DLDI section that is in VRAM. Then it initializes FAT using the copied DLDI section, and it loads the requested file (currently static filename "launchee.nds").
The problem is that if FAT was initialized in the launcher, then the bootstub will magically stay at white screens.
If FAT was never initialized in the launcher, but there is a DLDI section (and you patch it correctly), the the bootstub WORKS. It successfully copies the Main RAM-DLDI to its own VRAM-DLDI and boots the "launchee.nds".
I'm not really expecting someone to know how this bug can be fixed, but I'm just posting all the code, so someone could at least try.
And yes, I know that I could make the ARM9 run the bootstub and let the ARM7 idle, which is what MightyMax' exec_stub does. BUT I really want this to work as it fits perfectly into rebootlib in this form.
Thanks for reading.
_________________
http://licklick.wordpress.com