[ECOS] Re: Help -- Creating a FAT Filesystem on a NOR Flash Device
Wed Sep 9 17:56:00 GMT 2009
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.
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
More information about the Ecos-discuss