Proper FAT32 library

XCore Project reviews, ideas, videos and proposals.
ale500
Respected Member
Posts: 259
Joined: Thu Sep 16, 2010 9:15 am

Post by ale500 »

exFAT support would also be nice but I think ms license and restrictions scare evryone around :(, just not me :)


User avatar
Berni
Respected Member
Posts: 363
Joined: Thu Dec 10, 2009 10:17 pm

Post by Berni »

Well i had the Fat fs from elm to run on a G4 nicely, it uses about 30KB of memory to run with all the bells and whistles like long file names and such.
User avatar
segher
XCore Expert
Posts: 844
Joined: Sun Jul 11, 2010 1:31 am

Post by segher »

Berni wrote:Well i had the Fat fs from elm to run on a G4 nicely, it uses about 30KB of memory to run with all the bells and whistles like long file names and such.
At the other end of the spectrum, you can take my FAT code from
http://git.infradead.org/users/segher/s ... ader/fat.c
No bells, no whistles; it has support for all FAT types and partitioned disks as
well as raw disks; no long file names since microsoft prefers us not to use those
(patent licenses, blah); and read only, no write (which is awful to do on FAT).
Tested on over a million users' SD cards.

2kB.
User avatar
octal
XCore Addict
Posts: 228
Joined: Thu Jan 27, 2011 3:30 pm
Location: Argenteuil - France

Post by octal »

segher wrote: and read only, no write (which is awful to do on FAT).
Tested on over a million users' SD cards.

2kB.
What does it mean? only ready only operations are permitted?
User avatar
lilltroll
XCore Expert
Posts: 956
Joined: Fri Dec 11, 2009 3:53 am
Location: Sweden, Eskilstuna

Post by lilltroll »

segher: What is the read speed of large data-chunks ?
Probably not the most confused programmer anymore on the XCORE forum.
User avatar
segher
XCore Expert
Posts: 844
Joined: Sun Jul 11, 2010 1:31 am

Post by segher »

octal: Yes, only read, it cannot write to files / create new files.

lilltroll: Read speed is pretty much as fast as you can get the data in from your device.
When multiple sectors on disk are read in-order, it can do them with one read; look
at the "extent" stuff in the source code. It keeps the current FAT/dir sector cached
as well.
User avatar
dan
Experienced Member
Posts: 102
Joined: Mon Feb 22, 2010 2:30 pm

Post by dan »

Hi all,

any update on progress re FAT32?

We're tentatively planning an application development (the SD Card filesystem browser described here: https://github.com/xcore/hw_slicekit_system).

The purpose of the app is to develop SD Card interface components including the physical link(SPI and/or SDIO), FAT32 filesystem, JPEG decoder and an LCD driver with touchscreen and a simple 2d graphics library. This then all plugs together to create a system in which you use the touchscreen to browse the SD card, display JPEG pictures and so on.

Obviously we could do a FAT32 from scratch but I am wondering if we'd be better incorporating existing work for this item, if there were a suitable offer!

Dan