#129413 - snowsquirrel - Tue May 22, 2007 5:42 pm
Ok, so I finally go an M3 simply. My first flash cart. I have been working on my ds homebrew title using an emulator so far.
My game uses libfat, to read a few files. No writing, or directory traversing.
I create a fat12 fs as part of the rom with fcsrimage.
To run it in the emulator, I patch it using dlditool FlashCartSRam driver.
I assumed, that to run it on the M3, I would have to patch the .nds with the r4 driver. But when I copy my .nds to the m3, and try to launch it, the DS just freezes, at the loading game screen.
What am I doing wrong here?
#129414 - Diddl - Tue May 22, 2007 5:56 pm
you should be able to run your fcsrimage directly on your M3 simply. but you also could copy your files directly to the TF card of your M3 and patch your NDS file with M3/R4 DLDI driver
#129415 - snowsquirrel - Tue May 22, 2007 6:01 pm
oh, that is what I was doing wrong. I will try the fcsr image tonight.
So the r4 driver is only if I want my files loose on cf card.
If I don't want my files loose, do I even need libfat?
Thanks.
~S
#129421 - GPFerror - Tue May 22, 2007 7:07 pm
i'm pretty sure appended fcsr images won't work on slot1 cards, but I haven't tested it. Since fcsr stands for FlashCart Sram.
Troy(GPF)
#129422 - Diddl - Tue May 22, 2007 7:11 pm
snowsquirrel wrote: |
If I don't want my files loose, do I even need libfat?
|
loose? need libfat?
with libfat you cann full access whole micro SD card on your M3. usually a game (like doom or quake) uses his own directory for it's data files.
libfat ist the easiest way to access data on a filesystem. if you don't want to use it, you also can use gba_nds_fat or you can use normal savegame memory area like any commercial rom does it.
#129425 - snowsquirrel - Tue May 22, 2007 7:25 pm
I am just loading binary game data. Not writing anything. I don't need access to the whole micro SD card.
If fcsr won't work on a slot-1 cart, is libfat the only thing that will?
~S
#129436 - Tantrum - Tue May 22, 2007 9:01 pm
snowsquirrel wrote: |
I am just loading binary game data. Not writing anything. I don't need access to the whole micro SD card.
If fcsr won't work on a slot-1 cart, is libfat the only thing that will?
|
If all your data fits in to RAM then just compile it in, otherwise libfat is the only thing that will work for loading data on slot-1. If you still want an appended filesystem then take a look at EFS lib,
http://forum.gbadev.org/viewtopic.php?t=13195
It requires libfat and DLDI patching, but at least your data is part of the nds file.
#129439 - snowsquirrel - Tue May 22, 2007 9:28 pm
Thanks, that is what I wanted to know.
~S
#129477 - Lino - Wed May 23, 2007 5:03 am
The new version of iDeaS support DLDI for R4. I hope...
#129492 - Diddl - Wed May 23, 2007 7:39 am
Lino wrote: |
The new version of iDeaS support DLDI for R4. I hope... |
this would be cool!
#129542 - GPFerror - Wed May 23, 2007 5:37 pm
Lino wrote: |
The new version of iDeaS support DLDI for R4. I hope... |
cool, in released version, or next version?
I tried patching my homebrew stuff with the r4tf.dldi but still failed when trying to init libfat.
also any chance of getting dslinux working again in ideas, i miss being able to use it to code away from my ds :)
desmume has limited support if you use an appended fcsr image to the converted nds->ds.gba and patch it with the fcsr.dldi driver but it is cool cause it emulates the 32mb that a slot2 card might have :)
Thanks,
Troy(GPF)