From: Martin Egholm Nielsen <martin@egholm-nielsen.dk>
To: linux-mtd@lists.infradead.org
Subject: Re: [Yaffs1] mkyaffs exits with "MTD Erase failure"
Date: Mon, 04 Jun 2007 16:36:23 +0200 [thread overview]
Message-ID: <f41817$vir$1@sea.gmane.org> (raw)
In-Reply-To: <Pine.LNX.4.64.0706041549010.3966@lnxricardw.se.axis.com>
Hi,
Ricard Wanderlof wrote:
> On Mon, 4 Jun 2007, Martin Egholm Nielsen wrote:
>> I have run into a problem: By "accident", we changed the die of our
>> NAND without paying attention to the new timing parameters. Hence,
>> the read-operation (with fixed timing!) reported ready before data
>> was actually ready on the NAND. Consequently, this caused checksum
>> errors, and several blocks was erroneously marked bad!
>>
>> So, I fixed the timing in the kernel and tried erasing the flash
>> again. But with no luck - mkyaffs refuses to erase/program the
>> flash:
> Mtd refuses to erase blocks that have been marked bad. There is no
> workaround on a running kernel, but it is possible to patch the
> kernel to do this.
But as you see, flash_eraseall on the same device works perfectly fine:
flash_eraseall /dev/mtd0
....
Skipping bad block at 0x0179c000
Erasing 16 Kibyte @ 1ffc000 -- 99 % complete.
> The patch depends on whether or not you have a flash-based bad block
> table. Most do, but my only experience has been without the
> flash-based BBT. In this case, you simply remove the if clause around
> nand_block_checkbad() in mtd/nand/nand_base:nand_erase_nand(),
> recompile, and use that kernel to erase the blocks that have
> accidentally been marked bad.
I have a kernel with this patch, yes - and it does work. However, then I
remove the factory-marked ones, as well. Not a good idea!
// Egholm
next prev parent reply other threads:[~2007-06-04 14:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-04 13:06 [Yaffs1] mkyaffs exits with "MTD Erase failure" Martin Egholm Nielsen
2007-06-04 13:58 ` Ricard Wanderlof
2007-06-04 14:36 ` Martin Egholm Nielsen [this message]
2007-06-04 15:12 ` Ricard Wanderlof
2007-06-06 12:06 ` Martin Egholm Nielsen
[not found] <mailman.1398.1181133636.2239.linux-mtd@lists.infradead.org>
2007-06-06 16:07 ` Ian McDonnell
2007-06-06 20:38 ` Martin Egholm Nielsen
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='f41817$vir$1@sea.gmane.org' \
--to=martin@egholm-nielsen.dk \
--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