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: procedure to creat the file in ROM/Flash from Application


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


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