All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Dixon <andrew.dixon@seranoa.com>
To: "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>
Subject: error on remount of a jffs2 filesystem
Date: Thu, 21 Feb 2002 11:52:43 -0500	[thread overview]
Message-ID: <3C7525DB.7697E6B7@seranoa.com> (raw)

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

                 reply	other threads:[~2002-02-21 16:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3C7525DB.7697E6B7@seranoa.com \
    --to=andrew.dixon@seranoa.com \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.