[Yaffs] function nandmtd1_ReadChunkWithTagsFromNAND in yaffs…

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: embedded technology
Date:  
To: yaffs
Subject: [Yaffs] function nandmtd1_ReadChunkWithTagsFromNAND in yaffs_mtdif1.c can't recognise the bad block?
Hi all,
    My kernel is linux 2.6.22.6, 
    and yaffs_mtdif1.c's version is : "$Id: yaffs_mtdif1.c,v 1.2 2007/07/23 19:14:04 imcd Exp $";

    My nand flash has many bad blocks, but the yaffs can't recognise them: there isn't any "block %d is bad"
information, and the yaffs partition can be mounted, but can't be used(it is the root filesystem, can't boot).

    When I use linux 2.6.13, and the code of yaffs2 is the same, and it can boot on the nand flash, 
and print more information of bad block , such as:
    block 3 is bad
    block 100 is bad

    In the function nandmtd1_ReadChunkWithTagsFromNAND, the 'etags->blockBad' won't be set 
if 'retval = mtd->read_oob(mtd, addr, &ops)' is 0, so it can't recognise any bad block, isn't it ?

    How to dill with it ? Thank you.
    

        
          2007-09-25