From: Jeff Hane <jhane@mobilygen.com>
To: linux-mtd@lists.infradead.org
Subject: failure to mount partition after flash_eraseall -j
Date: Mon, 10 Dec 2007 15:17:21 -0800 [thread overview]
Message-ID: <1197328641.9854.83.camel@qu056.quarc.com> (raw)
I've got a nand chip that I've erased using flash_eraseall -j but it
still fails to mount.
It is failing because of the cleanmarker compare is failing.
flash_eraseall writes a cleanmarker of size 8 or less. It gets this
length from the *first* oobfree area. In my case, this is 7.
However, when trying to mount the chip and the function
jffs2_check_nand_cleanmarker it does this:
cmlen = min_t(int, c->oobavail, OOB_CM_SIZE);
OOB_CM_SIZE is 8 but oobavail is the total of all the available oob not
just the first segment(43 in my case). So them memcmp fails because it
tries to compare 8 bytes instead of 7.
Should flash_eraseall try to see if there is a total of 8 free bytes of
oob area. However, the MEMWRITEOOB ioctl still uses OOB_PLACE and not
OOB_AUTO so this seems like it would still not work?
If I'm missing something let me know otherwise I'm open for
suggestions.
thanks,
jeff
reply other threads:[~2007-12-10 23:30 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=1197328641.9854.83.camel@qu056.quarc.com \
--to=jhane@mobilygen.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox