This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: FAT on NOR/ NAND flash
- From: "viren.dobariya" <viren dot dobariya at aftek dot com>
- To: Ross Younger <wry at ecoscentric dot com>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Wed, 26 May 2010 15:47:08 +0530
- Subject: Re: [ECOS] FAT on NOR/ NAND flash
- References: <1274865066.10135.12.camel@suhas> <4BFCF0B8.60004@ecoscentric.com>
hi, Ross
Thanks for your quick response.
But now at primary stage, I want to check that it will work or not.
So plz tell me basic requirement to port FAT on nor flash.
Regards,
Viren
On Wed, 2010-05-26 at 10:58 +0100, Ross Younger wrote:
> viren.dobariya wrote:
> > I am trying to port FAT on NOR flash of EA2468 board.
>
> Running FAT on a raw flash device is not a good idea. I would suggest
> that you use a different filesystem more suited to flash memory parts -
> jffs2 and yaffs come to mind - or, if you really insist on using FAT,
> implement a flash translation layer including wear levelling.
>
>
> FAT was designed for media with small (often 512 bytes) sectors which
> are individually rewritable (floppy drives, hard drives); NOR flash
> devices can only be erased at the block level (64k or more). You'll have
> an awful lot of trouble making it work properly. Because of this it is
> also quite dangerous: the length of time taken to erase and reprogram a
> whole block is much longer than it takes to write a sector to magnetic
> media, leaving you very vulnerable to power supply issues.
>
> Furthermore, the filesystem stores its file allocation table at fixed
> sector locations. This leads to those regions of your flash device
> experiencing a disproportionate amount of use; they will likely wear out
> quickly, rendering your filesystem useless.
>
>
> Ross
>
> --
> eCosCentric Ltd, Barnwell House, Barnwell Drive, Cambridge CB5 8UU, UK
> Registered in England no. 4422071. www.ecoscentric.com
>
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss