* Please explain bbt_create (problems)
@ 2005-07-15 14:18 Andriy Korud
2005-07-15 14:40 ` Thomas Gleixner
0 siblings, 1 reply; 2+ messages in thread
From: Andriy Korud @ 2005-07-15 14:18 UTC (permalink / raw)
To: linux-mtd
Hi,
I'm trying to understand how initial bbt_ceate works?
I have NAND chip erased for jffs2 (flash_erasall -j) with some data in OOB (jffs2 clean masrkers). And bbt_create() calls check_pattern() which compare each byte with 0xff, in my case comparision fails (jffs2 cleanmarker != 0xff) and I have every block marked as bad.
Should not check_pattern() checks only byte at 0x05 in OOB (according to http://www.linux-mtd.infradead.org/tech/mtdnand/x255.html )?
Also is it possible to scan chip for bbt starting from certain block (not 0) without dirty changes in mtd code?
Thanks in advance,
Andriy Korud
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Please explain bbt_create (problems)
2005-07-15 14:18 Please explain bbt_create (problems) Andriy Korud
@ 2005-07-15 14:40 ` Thomas Gleixner
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Gleixner @ 2005-07-15 14:40 UTC (permalink / raw)
To: Andriy Korud; +Cc: linux-mtd
Please fix your mail client to do a line wrap at 76 characters
Read
On Fri, 2005-07-15 at 16:18 +0200, Andriy Korud wrote:
> Hi,
> I'm trying to understand how initial bbt_ceate works?
> I have NAND chip erased for jffs2 (flash_erasall -j) with some data in
> OOB (jffs2 clean masrkers). And bbt_create() calls check_pattern()
> which compare each byte with 0xff, in my case comparision fails (jffs2
> cleanmarker != 0xff) and I have every block marked as bad.
> Should not check_pattern() checks only byte at 0x05 in OOB (according
> to http://www.linux-mtd.infradead.org/tech/mtdnand/x255.html )?
Maybe you read also:
http://www.linux-mtd.infradead.org/tech/mtdnand/x144.html
"...Therefor we scan the chip(s) when we detect them the first time for
good blocks and store this information in
a bad block table before erasing any of the blocks."
Emphasis is on the phrase "first time".
I can see that this could have been described more clear, but it
definitely makes no sense to create a flash based bad block table
_after_ using the chip.
> Also is it possible to scan chip for bbt starting from certain block
> (not 0) without dirty changes in mtd code?
no
tglx
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-07-16 10:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-15 14:18 Please explain bbt_create (problems) Andriy Korud
2005-07-15 14:40 ` Thomas Gleixner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox