This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Creating a file in JFFS2 within FIS
- From: "Paul D. DeRocco" <pderocco at ix dot netcom dot com>
- To: "'ecos-discuss'" <ecos-discuss at ecos dot sourceware dot org>
- Date: Sun, 22 Jul 2007 01:06:54 -0400
- Subject: [ECOS] Creating a file in JFFS2 within FIS
System: Atmel EB40A, ARM7. Redboot has FIS, and there's a blank "image"
called "jffs2". eCos application loaded over serial for now, includes Posix,
flash, JFFS2, etc.
My app is trying to create a file, using
f = open("/dev/flash/fis/jffs2/cal.bin", O_WRONLY|O_CREAT|O_TRUNC);
Down inside flashiodev_lookup, it's detecting the "fis/" part of the string,
and trying to do the CYGNUM_CALL_IF_FLASH_FIS_GET_FLASH_BASE function on the
name "jffs2/cal.bin", but the latter is returning -ENOENT. I'm under the
impression that JFFS2 is supposed to be able to automatically initialize a
blank flash area, but I also don't think it's getting that far. Am I missing
something? Do I have to do an explicit mount? It seems like the system is
designed so that "/dev/flash/fis" doesn't need mounting. Is the Redboot
flash function somehow expecting a name like "jffs2" instead of
"jffs2/cal.bin"? Any ideas?
--
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