Hi Chandru,
It looks like your read might not be proper, there is
noway a block should read zeros, is the OOB area also
reading zero?
Were you able to get any other filesystems like jffs2
work on your board? If no it would be lot easier for
you to get this up first to make sure your low level
NAND driver is proper.
Wht is the MTD version you are using (You back ported
it from which version of the kernel?)
regards,
shivas
---
yaffs-request@lists.aleph1.co.uk wrote:
> Send yaffs mailing list submissions to
> yaffs@lists.aleph1.co.uk
>
> To subscribe or unsubscribe via the World Wide Web,
> visit
>
>
http://lists.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs
> or, via email, send a message with subject or body
> 'help' to
> yaffs-request@lists.aleph1.co.uk
>
> You can reach the person managing the list at
> yaffs-owner@lists.aleph1.co.uk
>
> When replying, please edit your Subject line so it
> is more specific
> than "Re: Contents of yaffs digest..."
>
>
> Today's Topics:
>
> 1. Regarding BAD Block.. (Chandru)
>
>
>
----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 23 Jan 2007 20:31:46 +0530
> From: "Chandru" <chandrasekar@aelixsystems.com>
> Subject: [Yaffs] Regarding BAD Block..
> To: <yaffs@lists.aleph1.co.uk>
> Message-ID:
>
<
mailman.0.1169640021.23456.yaffs@lists.aleph1.co.uk>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi Shiva,
> Thanks for the sharing the information. I am using
> 2.4.19 kernel and
> its mtd system along with yaffs file system. I had
> enabled ECC and the page
> size is 512 bytes.
> I am trying to use nanddump utility from
> mtd-utils-1.0.0.tar.gz. It
> actually failed to communicate with mtd driver bcoz
> it did not find some
> ioctl which checks for bad block. So I commented out
> that part of code and
> when it fails to reading from the device the utility
> gets closed. So I
> commented that part so even if it fails in reading
> the device, it will
> continue to dump whatever is read.
> From the print message " ecc error fix performed on
> chunk
> 8573:0", the 8573 is the chunk number and when I
> multiply it with the page
> size(512) I get the offset, If I am not wrong. When
> I try to look into that
> area from the nanddump, I could see only zeros. When
> does a region gets
> filled with zeros ?
> I am looking for a working nanddump utility whuch
> uses mtd with
> yaffs. Can anybody give me the link or give me
> suggestion to build one.
>
> Shiva, I tried to return zero from a part of code
> which does bad
> block checking in yaffs. But while booting it got
> hung up saying that it was
> trying erase a bad block.
>
> Thanks,
> Chandru.
>
>
>
> -----Original Message-----
> From: yaffs-bounces@lists.aleph1.co.uk
> [mailto:yaffs-bounces@lists.aleph1.co.uk] On Behalf
> Of
> yaffs-request@lists.aleph1.co.uk
> Sent: Sunday, January 21, 2007 5:31 PM
> To: yaffs@lists.aleph1.co.uk
> Subject: yaffs Digest, Vol 20, Issue 13
>
> Send yaffs mailing list submissions to
> yaffs@lists.aleph1.co.uk
>
> To subscribe or unsubscribe via the World Wide Web,
> visit
>
>
http://lists.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs
> or, via email, send a message with subject or body
> 'help' to
> yaffs-request@lists.aleph1.co.uk
>
> You can reach the person managing the list at
> yaffs-owner@lists.aleph1.co.uk
>
> When replying, please edit your Subject line so it
> is more specific
> than "Re: Contents of yaffs digest..."
>
>
> Today's Topics:
>
> 1. Re: yaffs Digest, Vol 20, Issue 12 (Shiva
> Shankar)
>
>
>
----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 20 Jan 2007 08:27:31 -0800 (PST)
> From: Shiva Shankar <shivah_shankar@yahoo.com>
> Subject: [Yaffs] Re: yaffs Digest, Vol 20, Issue 12
> To: yaffs@lists.aleph1.co.uk
> Message-ID:
> <20070120162731.91351.qmail@web50808.mail.yahoo.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi Chandru,
> >From what I gather from your mail I think that what
> ever block has given
> you Input /output error is really bad block or its
> OOB area is screwed up.
>
> Do you have the nanddump? Also, it always helps if
> you get the dump with -p
> option as it clearly differentiates the data area
> and the OOB area and you
> will get a pretty output.
>
> Bad Block information is a very important
> information in a Flash device and
> you might not want to loose it. However one can
> screwup the bad block info
> by overwriting these info.
>
> There is some function in nand_base.c like
> XXX_isbad, the function actually
> checks if a block is bad and returns the result. You
> can change this
> function to return "0". By doing this you will be
> able to use the bad blocks
> that were falsely accused bad because of bad OOB
> management. NOTE: This is
> just a hack to fix blocks that have bad info written
> accidentally and in
> this process you may potentially loose an actual bad
> block info.
>
> After doing this you may still get input/output
> error if the blocks are
> really bad!!
>
> Have you enabled ECC in your nand driver? Which one?
> What is the page size
> of your NAND?
>
> regards,
> shivas
>
> yaffs-request@lists.aleph1.co.uk wrote: Send yaffs
> mailing list submissions
> to
> yaffs@lists.aleph1.co.uk
>
> To subscribe or unsubscribe via the World Wide Web,
> visit
>
>
http://lists.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs
> or, via email, send a message with subject or body
> 'help' to
> yaffs-request@lists.aleph1.co.uk
>
> You can reach the person managing the list at
> yaffs-owner@lists.aleph1.co.uk
>
> When replying, please edit your Subject line so it
> is more specific
> than "Re: Contents of yaffs digest..."
>
>
> Today's Topics:
>
> 1. Regarding Bad blocks (Chandru)
>
>
>
----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 19 Jan 2007 18:07:53 +0530
> From: "Chandru"
> Subject: [Yaffs] Regarding Bad blocks
> To:
> Message-ID:
> Content-Type: text/plain; charset="us-ascii"
>
> Hi All,
>
=== message truncated ===
____________________________________________________________________________________
Finding fabulous fares is fun.
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains.
http://farechase.yahoo.com/promo-generic-14795097