This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
RE: Creating a file in JFFS2 within FIS
- From: "Paul D. DeRocco" <pderocco at ix dot netcom dot com>
- To: "'Alok Singh'" <aloks at broadcom dot com>
- Cc: "'ecos-discuss'" <ecos-discuss at ecos dot sourceware dot org>
- Date: Mon, 23 Jul 2007 20:24:44 -0400
- Subject: RE: [ECOS] Creating a file in JFFS2 within FIS
> From: Alok Singh
>
> You can find the sample test code at:
> ecos/packages/fs/jffs2/current/tests.
> ********************
> mount( CYGDAT_IO_FLASH_BLOCK_DEVICE_NAME_1, "/", "jffs2" );
>
> will work. Look for CYGDAT_IO_FLASH_BLOCK_DEVICE_NAME_1 in
> your ecos.ecc file. It will "/dev/flash1", or something.
>
> CYGDAT_IO_FLASH_BLOCK_DEVICE_NAME_1 is the device that will
> be mounted.
>
> "/" is fine. This will be your current default directory.
That particular macro and name appear to relate to the legacy driver. It
sounds like what I need to do, with the version 2 driver, is mount
"/dev/flash/fis/jffs2" as "/". I'll try it tomorrow, when I get back to the
board. Thanks.
--
Ciao, Paul D. DeRocco
Paul mailto:pderocco@ix.netcom.com
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss