This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Help -- Creating a FAT Filesystem on a NOR Flash Device


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]