what cause :**>> yaffs chunk 38598 was not erased

liu.yaojin at zte.com.cn liu.yaojin at zte.com.cn
Thu Jul 30 08:19:45 EDT 2009


i think i found the reason.
in nand_base.c (2.6.24):
(about line 2506)
case NAND_ECC_SOFT:     //
                DBGOOB("we use ecc_soft mode\n");
                chip->ecc.calculate = nand_calculate_ecc;
                chip->ecc.correct = nand_correct_data;
                chip->ecc.read_page = nand_read_page_swecc;
                chip->ecc.write_page = nand_write_page_swecc;
                chip->ecc.read_oob = nand_read_oob_std;
                //focus this:
                chip->ecc.write_oob = nand_write_oob_std; 
                chip->ecc.size = 256; 
                chip->ecc.bytes = 3;
                break;

do you think "chip->..." is a bug?
i must replace "nand_write_oob_std",but it miss:
if(!chip->ecc.write_oob)...........................
So i change to:
if(!chip->ecc.write_oob)
    chip->ecc.write_oob = nand_write_oob_std; 

Now it seems to work ok.
=====================end ==========================




Charles Manning <manningc2 at actrix.gen.nz> 
发件人:  linux-mtd-bounces at lists.infradead.org
2009-07-30 06:30

收件人
linux-mtd at lists.infradead.org
抄送
liu.yaojin at zte.com.cn
主题
Re: what cause :**>> yaffs chunk 38598 was not erased






On Wednesday 29 July 2009 21:30:50 liu.yaojin at zte.com.cn wrote:
> hi guys:
>
> i use lastest yaffs filesystem,kernel is 2.6.24.
> my nand flash controller is a little slow.and when i copy(or ls)
> files(more than 1MB?),the console appears:
>
> **>> yaffs chunk 38598 was not erased
> **>> yaffs write required 2 attempts
> page 38598 in gc has no object: 0 0 0
>
> and etc...
> so why this happens continually ?
>

You're probably better off asking yaffs questions on the yaffs list: 
http://stoneboat.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs

This is happening because your spare area management is not correct and 
the 
tags are being messed up. Thiis causes yaffs to think that a page of flash 
is 
empty, but it is not.

-- Charles


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/





--------------------------------------------------------
ZTE Information Security Notice: The information contained in this mail is solely property of the sender's organization. This mail communication is confidential. Recipients named above are obligated to maintain secrecy and are not permitted to disclose the contents of this communication to others.
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. Any views expressed in this message are those of the individual sender.
This message has been scanned for viruses and Spam by ZTE Anti-Spam system.


More information about the linux-mtd mailing list