public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: michael <trimarchi@gandalf.sssup.it>
To: u-boot@lists.denx.de
Subject: [U-Boot] Fat32 and VFAT support
Date: Sun, 05 Oct 2008 18:52:24 +0200	[thread overview]
Message-ID: <48E8F0C8.40904@gandalf.sssup.it> (raw)
In-Reply-To: <48E7DE97.2030903@boundarydevices.com>

Hi eric,

Eric Nelson wrote:
> Hello all,
>
> I've recently been looking into a problem loading files from a FAT32 filesystem
> and (re)discovered that there are issues with this code.
>
> Some of the symptoms are related to problems discussed in a thread back in
> April titled "USB SUPPORT & get_vfatname".
>
> 	http://lists.denx.de/pipermail/u-boot/2008-April/033117.html
>
> I ran into the issue(s) on an SD(MMC) card when I noticed a failure to load
> a certain file from the card.
>
> I've been able to narrow down a set of problems in fs/fat.c. I'm not sure
> when I'll have the time to generate a proper patch, but wanted to at least
> write some notes on the nature of the problem to save others some grief.
>
> The first problem I encountered was that the main loop in fs/fat.c/do_fat_read
> was built for fixed-size root directories. The Microsoft document
> 	"FAT: General Overview of On-Disk Format"
> says this on page 22:
> 	"For FAT32, the root directory can be of variable size and is a
> 	cluster chain, just like any other ..."
>
> When running the command:
>
> 	fatls mmc 0
>
>   
I try to investigate but I don't have spare time to fix. I send to the list
an linux-user space program that use the u-boot routine to read on the 
image.
You can use that to track down the problem.
Regards Michael

      reply	other threads:[~2008-10-05 16:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-04 21:22 [U-Boot] Fat32 and VFAT support Eric Nelson
2008-10-05 16:52 ` michael [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48E8F0C8.40904@gandalf.sssup.it \
    --to=trimarchi@gandalf.sssup.it \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox