Skip to contentSkip to conversation

code for writing FAT in uboot

U-Boot-Users Maurice de Bellefontaine 3 participants 5 messages Nov 30, 2005

lore
Share & tools
lore
#1 lore raw
Quoted 3 lines · In message <000c01c5f589$e0d97700$3500a8c0@MAURICE> you wrote:

fat.c is only R/O filesystem. Do you have a version with W filesytem (addition of function like mkdir,rm ... )?

No, but feel free to submit suchan extension.

Quoted 6 lines

------=_NextPart_000_0009_01C5F592.3E533D00

Content-Type: text/html;
	charset="iso-8859-1"

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

DO NOT POST HTML on this list!!!

Wolfgang Denk

Signature · 5 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
There's no honorable way to kill, no gentle way to destroy.  There is
nothing good in war.  Except its ending.
	-- Abraham Lincoln, "The Savage Curtain", stardate 5906.5
#2 lore raw
In reply to Maurice de Bellefontaine
Quoted 2 lines · Maurice de Bellefontaine

fat.c is only R/O filesystem. Do you have a version with W filesytem (addition of function like mkdir,rm ... )?

If you're on to this, you might consider checking out the Rockbox project at rockbox.org, as we have a full (read + write) FAT32 implementation there that is very small, efficient and has proven to work for many years.

Could serve as inspiration if nothing else.

Signature · 2 lines
          -=- Daniel Stenberg -=- http://daniel.haxx.se -=-
   ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol
#3 lore raw

Dear Daniel,

Quoted 4 lines · in message <[email protected]> you wrote:

If you're on to this, you might consider checking out the Rockbox project at rockbox.org, as we have a full (read + write) FAT32 implementation there that is very small, efficient and has proven to work for many years.

[Slightly off topic, but here I go ;-) ]

Are you aware of any stability problems of this code? I can corrupt the file system on my Archos jukebox more or less reliably by writing several files in one command; if I copy file by file followed by a "sync" after each file everything is fine.

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"I think trash is the most important manifestation of culture we have
in my lifetime."                                      - Johnny Legend
#4 lore raw
Quoted 4 lines · Wolfgang Denk

Are you aware of any stability problems of this code? I can corrupt the file system on my Archos jukebox more or less reliably by writing several files in one command; if I copy file by file followed by a "sync" after each file everything is fine.

No, I can't recall any known flaws in the most recent version of our FAT code. We've used this very same FAT code on a range of targets successfully.

If you can repeat such a problem with the latest software I would be happy to get to know the details get the team diving in...

Signature · 2 lines
          -=- Daniel Stenberg -=- http://daniel.haxx.se -=-
   ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol