This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Help -- Creating a FAT Filesystem on a NOR Flash Device
- From: John Dallaway <john at dallaway dot org dot uk>
- To: Ramgopal Kota <rkota at broadcom dot com>
- Cc: eCos Discussion <ecos-discuss at ecos dot sourceware dot org>
- Date: Wed, 09 Sep 2009 18:55:56 +0100
- Subject: [ECOS] Re: Help -- Creating a FAT Filesystem on a NOR Flash Device
- References: <1252509791.12728.ezmlm@ecos.sourceware.org> <6C370B347C3FE8438C9692873287D2E11079CA0987@SJEXCHCCR01.corp.ad.broadcom.com>
Hi Ramgopal
Ramgopal Kota wrote:
> I am working on a MIPS Malta board with 16MB NOR Flash device.
> I want to create a FAT Filesystem of 2MB size from an offset.
>
> I pulled in the required packages for FAT FS and IO.
> I created a device /dev/flash2 in the cdl file.
>
> When I am doing a mount from my ecos application using ..
> err = mount( "/dev/flash2/", "/", "fatfs" );
> I am getting err as -1 ...
There's a fundamental problem here. The FAT filesystem is intended to
work on a _disk_ device using the eCos disk I/O layer, not on a raw
Flash device. The JFFS2 and ROM filesystems will work on a raw Flash device.
John Dallaway
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss