Reading data from NAND FLASH without ECC is not recommended

art art at sigrand.ru
Wed May 17 03:28:13 EDT 2006


Hello David,

Wednesday, May 17, 2006, 6:36:46 AM, you wrote:

DW> On Mon, 2006-05-15 at 03:54 +0000, Polyakov Artem wrote:
>> But my debug messages shows this:
>> > write oob(00001890): 65 55 97 5a ffff 69 57 ff ff ff ff ff ff ff ff
>> bytes for ECC are not equal 0xFF!
>> but system dont use this bytes for ECC correction:
>> > Reading data from NAND FLASH without ECC is not recommended 

DW> You're saying that the system _writes_ ECC data to the flash, but does
DW> not use ECC when reading from the flash?

DW> Please show your NAND board driver, and also the code you used for
DW> reading from the flash.

Setup mtd device from NAND board driver:

        /* Set address of NAND IO lines */
        this->IO_ADDR_R = (void __iomem *)adm5120_fio_base;
        this->IO_ADDR_W = (void __iomem *)adm5120_fio_base;
        /* Set address of hardware control function */       
        this->hwcontrol = adm5120_hwcontrol;
        this->dev_ready = adm5120_device_ready;
       /* 20 us command delay time */
       this->chip_delay = 20;
       this->eccmode = NAND_ECC_SOFT;

and I attach nand_base driver from my kernel.


-- 
Best regards,
 art                            mailto:art at sigrand.ru
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nand_base.rar
Type: application/octet-stream
Size: 17266 bytes
Desc: not available
Url : http://lists.infradead.org/pipermail/linux-mtd/attachments/20060517/05fdff78/attachment.obj 


More information about the linux-mtd mailing list