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: Jonathan McDowell
Date:  
To: yaffs
Subject: Re: [Yaffs] [PATCH] Minor cleanup for yaffs bad block trace error message
On Tue, Sep 25, 2007 at 09:26:51AM -0400, wrote:
> 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?


Vanilla 2.6.23-rc7 kernel

CONFIG_YAFFS_FS=y
CONFIG_YAFFS_YAFFS1=y
# CONFIG_YAFFS_9BYTE_TAGS is not set
# CONFIG_YAFFS_DOES_ECC is not set
CONFIG_YAFFS_YAFFS2=y
CONFIG_YAFFS_AUTO_YAFFS2=y
# CONFIG_YAFFS_DISABLE_LAZY_LOAD is not set
CONFIG_YAFFS_CHECKPOINT_RESERVED_BLOCKS=10
# CONFIG_YAFFS_DISABLE_WIDE_TNODES is not set
# CONFIG_YAFFS_ALWAYS_CHECK_CHUNK_ERASED is not set
CONFIG_YAFFS_SHORT_NAMES_IN_RAM=y

Small page NAND (3 * 64MB Samsung K9F1208U0M on a Balloon2 board)

NAND I/O by software.

http://balloonboard.org/~noodles/2.6.23-rc7-r1/

has the actual kernel, config and patches to vanilla that are in use.

J.

-- 
Programmer, |    noodles is said to have been    |       Tel/SMS:
sysadmin &  |   introduced to europe by marco    |   +423-663-212343
BHMF.       | polo after he returned from china  |  Made by HuggieTag