#76369 - Fling - Tue Mar 21, 2006 2:39 am
Just looking for some confirmation/help/suggestions on writing a NDS loader. I know there are a few out there, but a lot work with CF cards which isn't what I need (primarily because I have a F2A 64M heh... but that's not the point of this post).
Basically, I'm trying to write a loader + server program that will receive a NDS rom image from my computer over my network, load that into memory, and then have the DS execute it. The loader program will be stored on my flashcard, but the rom images received via network will just be executed as soon as they're received (not written to the card or anything). I have the network stuff done... successfully receives any rom image I send over the network, loads it into memory, etc... the problem I'm having is getting the DS to execute the rom image once it's been received.
I've done some searching on this forum and found quite a bit of info. In particular, I've been looking at the bootloader code from here. I'm 99% certain I've figured out exactly what each part of the code is doing and how it relates to the basic process of loading a NDS posted by natrium42 here.
Anyway, that particular bootloader code I linked to that I've been looking at (boot.c in the BootLoader source directory)... first, it seems that it's just the ARM7 code? The code seems to direct the ARM9 from the ARM7 if I'm not mistaken, which I guess makes it a bit easier to synchronize the two processors? Also, at the end of the beginning comments, there's this little bit:
So, everything in boot.c executes in that address space? How do I load the code in there to begin with? (Or am I missing something really obvious? heh).
Any and all help would be greatly appreciated!
Basically, I'm trying to write a loader + server program that will receive a NDS rom image from my computer over my network, load that into memory, and then have the DS execute it. The loader program will be stored on my flashcard, but the rom images received via network will just be executed as soon as they're received (not written to the card or anything). I have the network stuff done... successfully receives any rom image I send over the network, loads it into memory, etc... the problem I'm having is getting the DS to execute the rom image once it's been received.
I've done some searching on this forum and found quite a bit of info. In particular, I've been looking at the bootloader code from here. I'm 99% certain I've figured out exactly what each part of the code is doing and how it relates to the basic process of loading a NDS posted by natrium42 here.
Anyway, that particular bootloader code I linked to that I've been looking at (boot.c in the BootLoader source directory)... first, it seems that it's just the ARM7 code? The code seems to direct the ARM9 from the ARM7 if I'm not mistaken, which I guess makes it a bit easier to synchronize the two processors? Also, at the end of the beginning comments, there's this little bit:
Quote: |
Helpful information:
This code runs from the first Shared IWRAM bank: 0x037F8000 to 0x037FC000 |
So, everything in boot.c executes in that address space? How do I load the code in there to begin with? (Or am I missing something really obvious? heh).
Any and all help would be greatly appreciated!