public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* error on remount of a jffs2 filesystem
@ 2002-02-21 16:52 Andrew Dixon
  0 siblings, 0 replies; only message in thread
From: Andrew Dixon @ 2002-02-21 16:52 UTC (permalink / raw)
  To: linux-mtd@lists.infradead.org

Hey everyone -

I was wondering if someone could shed some light on a problem that I've
been having.  I'm using two Intel Strataflash chips as both a boot rom
and a permanent backing store.  I've hacked some of the mtd drivers so
that I now have the two chips recognized as one device and a partition
on that device that I want to mount as a jffs2.  This all works great. 
I can mount the device, write to it, read from it, all that good stuff. 
The problems comes when I try to unmount and then remount the device.  I
get the following:

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x01f60004:
0x0080 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x01f60008:
0x0080 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x01f6000c:
0x0080 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x01f60010:
0x0080 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x01f60014:
0x0080 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x01f60018:
0x0080 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x01f6001c:
0x0080 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x01f60020:
0x0080 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x01f60024:
0x0080 instead

This is repeated over and over again and then the device is mounted but
it's been erased.  If, however, I power off the board I can mount the
partition just fine and all of my data is still there.  I believe that
the problem is that the chip is not in the FL_READY state after it is
unmounted, but on a power cycle it gets set up again.

Any ideas on how I might fix this.  I've been hacking on
cfi_cmdset_0001.c with little success.

thanks,
Andy

P.S.  I'm using the mtd stuff from the Linux 2.4.16 kernel.
-- 
Andrew Dixon
Software Engineer
Seranoa Networks
978.897.3434 x231

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-02-21 16:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-21 16:52 error on remount of a jffs2 filesystem Andrew Dixon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox