Re: [Yaffs] [PATCH] Minor cleanup for yaffs bad block trace …

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: ian@brightstareng.com
Date:  
To: Jonathan McDowell
CC: yaffs
Subject: Re: [Yaffs] [PATCH] Minor cleanup for yaffs bad block trace error message
On Tuesday 25 September 2007 03:56, Jonathan McDowell wrote:
> On Mon, Sep 24, 2007 at 10:07:35AM -0400,

wrote:
> > On Sunday 23 September 2007 17:15, Jonathan McDowell wrote:
> > > This is just a minor addition; the trace message for when
> > > yaffs marks a block bad doesn't have a newline on the end
> > > which causes output like:
> > >
> > > nand_erase: attempt to erase a bad block at page
> > > 0x000223e0
> >
> > This doesn't look right - yaffs should not be erasing
> > bad-blocks. If the block just turned bad AND it got marked
> > bad in MTD then this might happen - but i don't think that's
> > likely, and most MTD setups don't have dynamic (mtd)
> > bad-block-list update.  This is probably an indicator of
> > some other issue, perhaps not reading the true blockState
> > during initial scan.
>
> It appears to give the same errors every time the FS is
> mounted, so something does seem to be going wrong. For the
> moment I've dropped back to JFFS2 which is working fine on the
> same device.


What version of kernel/mtd do you have and what have to
set for Yaffs config options? Which NAND type do you have,
large, small page? Is the NAND i/o managed by s/w (MTD) or
by a h/w controller perhaps with ECC logic?

-imcd