gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Which libfat to use?

#103791 - bjoerngiesler - Sun Sep 24, 2006 5:30 pm

I'm very confused by all the different libfat versions around, so I thought I'd ask here: Can someone give me the definitive lowdown on which libfat is the most current one that supports the most devices? I know chishm's original one isn't the most up-to-date one.

Thanks a lot!
_________________
DSFTP homepage

#103792 - Sausage Boy - Sun Sep 24, 2006 5:38 pm

There are a couple of versions:

gba_nds_fat
chishm's original fat library, works alright with many devices.

Varios gba_nds_fat modifications
There are a couple of modifications, like Rein. They generally support more devices than gba_nds_fat, but are probably more hacky and less tested.

libfat
This is the latest version by chishm. It's the only thing he maintains, so even though it may not support all devices, it probably will in the future. It's using a better code structure than gba_nds_fat with modifications, and is generally superior. But, it has one drawback! You can not list the contents of a directory with it. In future versions, this will be included.


I use libfat, and I suggest you do the same.
_________________
"no offense, but this is the gayest game ever"

#103812 - tepples - Sun Sep 24, 2006 7:39 pm

Sausage Boy wrote:
libfat
This is the latest version by chishm. It's the only thing he maintains, so even though it may not support all devices, it probably will in the future. It's using a better code structure than gba_nds_fat with modifications, and is generally superior. But, it has one drawback! You can not list the contents of a directory with it. In future versions, this will be included.

This drawback, along with the lack of any information as to when "future versions" may appear, is probably the biggest reason why developers stick with gba_nds_fat.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#103817 - Lick - Sun Sep 24, 2006 7:59 pm

AFAIK, libfat is the only fatlib that compiles with DevKitPro r19. For the gba_nds_fat or variations of it, you need an older version of DevKitPro. (Has to do with arm-elf becoming arm-eabi, dunno what that means but it's definitely more than a different name.)

- Lick
_________________
http://licklick.wordpress.com

#103818 - tepples - Sun Sep 24, 2006 8:03 pm

Is there a way to get Microsoft Windows to run a program on a card every time the user ejects the card?
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#103819 - OOPMan - Sun Sep 24, 2006 8:12 pm

Probably, although you'd need to link into some Windows coding stuff to do it...
_________________
"My boot, your face..." - Attributed to OOPMan, Emperor of Eroticon VI

You can find my NDS homebrew projects here...

#103842 - Sunray - Sun Sep 24, 2006 10:53 pm

Lick wrote:
AFAIK, libfat is the only fatlib that compiles with DevKitPro r19. For the gba_nds_fat or variations of it, you need an older version of DevKitPro. (Has to do with arm-elf becoming arm-eabi, dunno what that means but it's definitely more than a different name.)

- Lick

Well... I use gba_nds_fat with the latest devkitpro, no problem what so ever.

#103845 - TJ - Sun Sep 24, 2006 11:07 pm

I have had a few projects that wanted arm-elf rather than arm-eabi, and I just edited the names in the Makefile to get it compile.

#103908 - chishm - Mon Sep 25, 2006 9:59 am

Lick wrote:
AFAIK, libfat is the only fatlib that compiles with DevKitPro r19. For the gba_nds_fat or variations of it, you need an older version of DevKitPro. (Has to do with arm-elf becoming arm-eabi, dunno what that means but it's definitely more than a different name.)

Not quite. gba_nds_fat works too, but libfat requires DKP r19b (or higher) to function correctly (r19a had a bug in it).

tepples wrote:
This drawback, along with the lack of any information as to when "future versions" may appear, is probably the biggest reason why developers stick with gba_nds_fat.

The next version (which will support directory listing) is scheduled to be released with DKP r20. You'll have to bug WinterMute about the specific time frame.
_________________
http://chishm.drunkencoders.com
http://dldi.drunkencoders.com

#104229 - sasq - Wed Sep 27, 2006 8:21 am

bjoerngiesler wrote:
I'm very confused by all the different libfat versions around, so I thought I'd ask here: Can someone give me the definitive lowdown on which libfat is the most current one that supports the most devices? I know chishm's original one isn't the most up-to-date one.

Thanks a lot!


I recently had the same wondering and it seems that the Rein hacked version is the most compatible one at the moment:

http://dl.qj.net/Rein-r17-Nintendo-DS/pg/12/fid/9853/catid/220

Specifically, it seems to support the more recent SD-card adapters.

#104266 - josath - Wed Sep 27, 2006 3:58 pm

sasq wrote:
bjoerngiesler wrote:
I'm very confused by all the different libfat versions around, so I thought I'd ask here: Can someone give me the definitive lowdown on which libfat is the most current one that supports the most devices? I know chishm's original one isn't the most up-to-date one.

Thanks a lot!


I recently had the same wondering and it seems that the Rein hacked version is the most compatible one at the moment:

http://dl.qj.net/Rein-r17-Nintendo-DS/pg/12/fid/9853/catid/220

Specifically, it seems to support the more recent SD-card adapters.


Actually, last I checked the rein one had a bug where you cannot enable both SC:SD and SC:CF at the same time. I believe there is a slightly newer version which was created by WinterMute(?) floating around, which has the bugs fixed,

#104288 - Sektor - Wed Sep 27, 2006 7:50 pm

Does libfat support SC:SD?
_________________
GTAMP.com/DS

#104319 - josath - Thu Sep 28, 2006 1:47 am

Sektor wrote:
Does libfat support SC:SD?

libfat includes drivers for:
gbamp
m3 cf,sd
sc cf,sd
neoflash mk2/3
FCSR
EFA2
maxmedia dock cf
ninjads sd

I know for sure sc sd/cf, and gbamp are working, but I haven't personally tested the others (though i'm pretty sure m3 cf/sd, and neoflash mk2/3 are also working)

#104337 - Dracker - Thu Sep 28, 2006 3:11 am

Question - I've read posts about - and even seen a petition about new versions of M3 - miniSD and microSD - not working with the FAT libraries. Will libfat address this or is it up to M3 to release information on how homebrew can access its filesystem?