From: tglx@linutronix.de (Thomas Gleixner)
To: Shen Aaron-r62966 <Aaron.Shen@motorola.com>,
linux-mtd@lists.infradead.org
Subject: Re: ECC byte 4 and 5 not equal to what have just been writen
Date: Tue, 20 Apr 2004 11:18:03 +0200 [thread overview]
Message-ID: <200404201118.03964.tglx@linutronix.de> (raw)
In-Reply-To: <01139FC052A0D411900B00508B9535FC13AC4046@ZCH07EXM04.corp.mot.com>
On Tuesday 20 April 2004 09:35, Shen Aaron-r62966 wrote:
> Hi,
>
> Is there anyone aware of such problem about ECC?
> When I read back the OOB data after writing to a page, I find the offset
> 06 and 07 are not equal to what have just been writen into the page.
>
> The part of codes are :
> ==========================================
> ......
> // char spare[16] is for oob data in spare area
> mx2_write_ecc((char*)p, spare, last); // My function to set the
> spare[16] before write a page printOut("The spare[ ] to write in flash is
> :\n"); // Messege printed out printOut(spare); // Print out the spare[
> ]
> if(NAND_Write_OnePage(page, (char*)p, spare)) // Write the page with
> spare[ ] into NAND flash return;
> NAND_Read_OOB(0, page, spare, 16); // Read back the oob data into spare[
> ] printOut("The spare[ ] to read back from flash is :\n");
> printOut(spare); // Print out the spare[ ]
> ......
Which kernel version ?
Which MTD version are you using ?
Is this a userspace application ?
Which oob layout is selected ?
> As you may have found out, the spare[0]~spare[5] are the same as writen.
> But spare[6] and spare[7] are different, while spare[8], spare[9] and
> spare[A] are so strange.
>
> This will cause the failure of ecc correction for the upper 256 bytes of
> data in each page. Can you give me some comments?
Where is the ECC correction done ?
> Is this a known problem of NAND_Read_OOB( )?
No
--
Thomas
________________________________________________________________________
"Free software" is a matter of liberty, not price. To understand the concept,
you should think of "free" as in "free speech,'' not as in "free beer".
________________________________________________________________________
linutronix - competence in embedded & realtime linux
http://www.linutronix.de
mail: tglx@linutronix.de
next prev parent reply other threads:[~2004-04-20 9:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-20 7:35 ECC byte 4 and 5 not equal to what have just been writen Shen Aaron-r62966
2004-04-20 8:24 ` Charles Manning
2004-04-20 9:18 ` Thomas Gleixner [this message]
[not found] <01139FC052A0D411900B00508B9535FC13AC4049@ZCH07EXM04.corp.mot.com>
2004-04-20 10:09 ` Thomas Gleixner
[not found] <01139FC052A0D411900B00508B9535FC13AC404A@ZCH07EXM04.corp.mot.com>
2004-04-20 10:47 ` Thomas Gleixner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200404201118.03964.tglx@linutronix.de \
--to=tglx@linutronix.de \
--cc=Aaron.Shen@motorola.com \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox