[NAND flash driver] What would mtd do if read returns -EBADMSG (ecc failed)

Du Zhongdong axdududu at gmail.com
Tue Oct 21 03:39:32 EDT 2008


On Tue, Oct 21, 2008 at 3:16 PM, Ricard Wanderlof
<ricard.wanderlof at axis.com> wrote:
>
> On Tue, 21 Oct 2008, Du Zhongdong wrote:
>
>>> Normally, uncorrectable errors occur after there have been correctable
>>> errors for a while. When correctable errors start occurring, this is a
>>> sign
>>> that the block should be erased and rewritten. As someone pointed out,
>>> UBI
>>> does this, plain JFFS2 does not.
>>>
>> Thanks, Rechard :)
>>
>> So, If I detect correctable errors start occurring, I can erase that block
>> and rewritten to it, all these can happen in my nand flash driver, am I
>> right?
>
> Normally this would happen at a higher level, such as UBI. I'm not sure
> exactly what you mean by 'nand flash driver', but the actual driver for a
> specific flash should not have to contain code that is common to a whole
> range of devices.
>
> /Ricard
> --
> Ricard Wolf Wanderlöf                           ricardw(at)axis.com
> Axis Communications AB, Lund, Sweden            www.axis.com
> Phone +46 46 272 2016                           Fax +46 46 13 61 30
>  --- PLEASE NOTE - I have moved - from F407 to F117 - PLEASE NOTE ---
>


Thank you, Richard, I think I got it :)

Best regards,
Du Zhongdong



More information about the linux-mtd mailing list