* Reading data from NAND FLASH without ECC is not recommended
@ 2006-05-15 3:54 Polyakov Artem
2006-05-16 23:36 ` David Woodhouse
0 siblings, 1 reply; 4+ messages in thread
From: Polyakov Artem @ 2006-05-15 3:54 UTC (permalink / raw)
To: linux-mtd
Hi all! Sorry for my poor english.
I want to ask - why by default reading from NAND flash provided without
ECC?
I work with Samsung K9F5608U0С 32M flash.
And one interest thing for me is that debug messages show that oob bytes
for ECC are used by system. I mean, after eraseing - all bytes are 0xFF.
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Reading data from NAND FLASH without ECC is not recommended
2006-05-15 3:54 Reading data from NAND FLASH without ECC is not recommended Polyakov Artem
@ 2006-05-16 23:36 ` David Woodhouse
2006-05-17 7:28 ` Re[2]: " art
0 siblings, 1 reply; 4+ messages in thread
From: David Woodhouse @ 2006-05-16 23:36 UTC (permalink / raw)
To: art; +Cc: linux-mtd
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
You're saying that the system _writes_ ECC data to the flash, but does
not use ECC when reading from the flash?
Please show your NAND board driver, and also the code you used for
reading from the flash.
--
dwmw2
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re[2]: Reading data from NAND FLASH without ECC is not recommended
2006-05-16 23:36 ` David Woodhouse
@ 2006-05-17 7:28 ` art
2006-05-17 9:47 ` David Woodhouse
0 siblings, 1 reply; 4+ messages in thread
From: art @ 2006-05-17 7:28 UTC (permalink / raw)
To: linux-mtd
[-- Attachment #1: Type: text/plain, Size: 1199 bytes --]
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@sigrand.ru
[-- Attachment #2: nand_base.rar --]
[-- Type: application/octet-stream, Size: 17266 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Re[2]: Reading data from NAND FLASH without ECC is not recommended
2006-05-17 7:28 ` Re[2]: " art
@ 2006-05-17 9:47 ` David Woodhouse
0 siblings, 0 replies; 4+ messages in thread
From: David Woodhouse @ 2006-05-17 9:47 UTC (permalink / raw)
To: art; +Cc: linux-mtd
On Wed, 2006-05-17 at 14:28 +0700, art wrote:
> and I attach nand_base driver from my kernel.
Either this is the same as the one in the current kernel tree, or it's
the one from 2.6.16, or I don't care at all. Which of the three?
--
dwmw2
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-05-17 9:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-15 3:54 Reading data from NAND FLASH without ECC is not recommended Polyakov Artem
2006-05-16 23:36 ` David Woodhouse
2006-05-17 7:28 ` Re[2]: " art
2006-05-17 9:47 ` David Woodhouse
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox