This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: procedure to creat the file in ROM/Flash from Application
- From: Sergei Gavrikov <sergei dot gavrikov at gmail dot com>
- To: Gopi nath <vvgopinath at gmail dot com>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Fri, 25 Jun 2010 11:58:14 +0300 (EEST)
- Subject: Re: [ECOS] procedure to creat the file in ROM/Flash from Application
- References: <28989857.post@talk.nabble.com>
On Fri, 25 Jun 2010, Gopi nath wrote:
Hi,
Hi Gopi,
I am using AT91SAM9261 based Evaluation board. i am failed to create a file
in RAM from my application.
How did you manage this?
Can any one know the procedure to create a file in ROM/RAM/FLASH from the
eCos application.
First, you have to add eCos package 'CYGPKG_IO_FILEIO' to get generic
file I/O support. CLI way is
ecosconfig add fileio
Then you can add some sort of file system for your build, e.g.
ecosconfig add ramfs ;# RAM filesystem
ecosconfig add romfs ;# ROM filesystem
If you have flash i/o driver for you target, you can try JFFS2
file system (JFFS2 FS needs more dependencies and more resources)
ecosconfig add flash
ecosconfig add linuxcompat
ecosconfig add crc
and then add 'CYGPKG_FS_JFFS2' package itself
ecosconfig add jffs2
At the least (if you have enough of resources) you can try ROM/RAM file
systems. To build and try the eCos tests for added eCos FS would be good
idea.
HTH
Sergei
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss