Hi, I moved over to JFFS2. I created a jffs2.img file using mkfs.jffs2, loaded that file from boot loader into flash and all worked fine. I want to know is any way to create a empty JFFS2 file system from ecos application itself rather than uploading the file from bootloader.
If(mount of JFFS fails) go and create empty File system else continue further. Thanks & Regards, Ramgopal Kota -----Original Message----- From: John Dallaway [mailto:j...@dallaway.org.uk] Sent: Wednesday, September 09, 2009 11:26 PM To: Ramgopal Kota Cc: eCos Discussion Subject: 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