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: jffs2 creat file error


Hello Gary,

indeed, I first used an image to "format" the flash. But I had 2 problems with that:
1) I have a Windows machine, and mkfs.jffs2 is not available in my cygwin; I don't think it *is* available in cygwin.
2) We decided to have 1 jffs2 partition of 63MB. But we have only 1MB of RAM, so not sufficient to load an image... (I know now 1MB is too little for a 63MB jffs2, but we can cope with it)

Kind regards,
Juergen

Gary Thomas wrote:
Jürgen Lambrecht wrote:

Hello Srinivas,

I had the same problem with that magic bitmask. For all 32b words in flash it gives that message. Your system probably does not hang, at mount time it just prints that message for each 4B of your flash ...

The problem is that your flash is not "formatted". You just have to mark all empty nodes of your flash as unused with that magic bitmask. I have added a "format jffs2" command to redboot that we run for each new board. Maybe I should commit this to ecos if someone could use this..


David and I discussed this long ago; simply erasing all the blocks in
the partition (FIS image) that contains the JFFS2 file system is sufficient.
Here's how I create such an image:


  RedBoot> lo -r -b 0x100000 image.JFFS2
  Raw file loaded 0x00100000-0x0024915f, assumed entry at 0x00100000
1.3MB file
RedBoot> fi cr JFFS2 -l 0x800000

This will create an 8MB file system, with the space from 0x249160 through
the end left totally blank.  The JFFS2 routines handle this just as well
as having the special markers in place (they are inserted during the first
mount).


-- 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]