Sneha,

Today I tested these 4-bit ECC patches on DA850/OMAP-L138 and here
are my observations:

I booted the kernel and wrote a JFFS2 file system image to a NAND
partition. I rebooted the board (1st time after writing the file
system image)and modified the bootargs to pick up the file system
from the NAND partition. While booting the kernel prints warning
messages like:

Empty flash at 0x0000fffc ends at 0x00010000
Empty flash at 0x0002fffc ends at 0x00030000
Empty flash at 0x0004fffc ends at 0x00050000
Empty flash at 0x0006fffc ends at 0x00070000
Empty flash at 0x0008fffc ends at 0x00090000
Empty flash at 0x000afffc ends at 0x000b0000
Empty flash at 0x000cfffc ends at 0x000d0000
....
....

The board boots properly after these messages.

After the board boots, if I just restart the EVM without even logging
In (2nd time onwards, after the file system image is written), I see
the following messages from the kernel while booting:

Empty flash at 0x0008fffc ends at 0x00090000
Empty flash at 0x000afffc ends at 0x000b0000
Empty flash at 0x000cfffc ends at 0x000d0000
mtd->read(0x1fc20 bytes from 0x3a03e0) returned ECC error
mtd->read(0x10dbc bytes from 0x3af244) returned ECC error
mtd->read(0x448 bytes from 0x3afbb8) returned ECC error
mtd->read(0x7bc bytes from 0x3af844) returned ECC error
mtd->read(0x790 bytes from 0x3af870) returned ECC error
....
....
 
The board boots up properly after the messages and the file system
seems to be intact in-spite of ECC errors.

I tried the above tests on DM355 EVM, and there also I observed the
same behavior. One thing which I noticed is, without the 4-bit ECC
patches I am not seeing ECC error messages but the Empty flash
messages do appear. Do you have any idea what's going wrong here?

Regards, Sudhakar

On Thu, Sep 17, 2009 at 08:29:48, [email protected] wrote:
> From: Sneha Narnakaje <[email protected]>
> 
> This patch updates the NAND driver platform data to use 4-bit ECC and the
> ECC_HW/ECC_HW_OOB_FIRST modes.
> 
> Signed-off-by: Sneha Narnakaje <[email protected]>
> ---
>  arch/arm/mach-davinci/board-dm355-evm.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/arm/mach-davinci/board-dm355-evm.c 
> b/arch/arm/mach-davinci/board-dm355-evm.c
> index 9f25fd8..d12c9e9 100644
> --- a/arch/arm/mach-davinci/board-dm355-evm.c
> +++ b/arch/arm/mach-davinci/board-dm355-evm.c
> @@ -84,8 +84,9 @@ static struct davinci_nand_pdata davinci_nand_data = {
>       .mask_chipsel           = BIT(14),
>       .parts                  = davinci_nand_partitions,
>       .nr_parts               = ARRAY_SIZE(davinci_nand_partitions),
> -     .ecc_mode               = NAND_ECC_HW_SYNDROME,
> +     .ecc_mode               = NAND_ECC_HW,
>       .options                = NAND_USE_FLASH_BBT,
> +     .ecc_bits               = 4,
>  };
>  
>  static struct resource davinci_nand_resources[] = {
> -- 
> 1.6.0.4
> 
> _______________________________________________
> Davinci-linux-open-source mailing list
> [email protected]
> http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
> 



_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to