[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] FAT FS troubles



On Thu, 2005-06-02 at 21:54 +1000, David McCullough wrote:
> 
> The fat driver in uClinux is unchanged AFAICT from linux.

I compared it to the 2.6 kernel in my Fedora Core 3 release,
and it is different, very different ...

> I run the current uClinux kernel on my desktop and my MP3 player hooks
> up fine so I am fairly sure it works ok ;-).
> 
> If the fat code is not working for you then I would suspect the
> platform differences first.  Big-endian/little endian ?  Interface
> problems ?  It's hard to say really.
> 
> Are you using the VFAT driver or just the FAT driver ?

Trust me I have dug very deep in to it. It is not an endianes
problem. It reeds the MBR, and then goes to sector 233. There
is NO reference to sector 233 in the MBR (or at least I have
not found it).
VFAT and FAT are identical up to all of this. VFAT includes
long file names ... unwillingly I have been learning a lot
about the structure of MBR, and FAT file system ...

> Are you mounting the correct device ?  If thereare partitions
> you need to mount the partition (ie., /dev/sad1 for partition 1),

Yes I am. I have a ton of debug messages, first from the low
level SD/MMC interface routines, than from the block driver,
and now I am adding stuff to the FAT FS driver as well.

Everything propagates correctly, and I can create "fake" cards
that will work (single partition, single FAT).

Trust me there is something funny about the FAT Drier in uCLinux ...

> Cheers,
> Davidm

Thanks, 
rudi
=============================================================
Rudolf Usselmann,  ASICS World Services,  http://www.asics.ws
Your Partner for IP Cores, Design, Verification and Synthesis

___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/