error on remount of a jffs2 filesystem

Andrew Dixon andrew.dixon at seranoa.com
Thu Feb 21 11:52:43 EST 2002


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




More information about the linux-mtd mailing list