public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Thomas Gleixner <tglx@linutronix.de>
To: jbeisert@eurodsn.de, linux-mtd@lists.infradead.org
Subject: Re: NAND-Flash ECC data not used
Date: Tue, 08 Jul 2003 12:42:54 +0200	[thread overview]
Message-ID: <200307081242.54207.tglx@linutronix.de> (raw)
In-Reply-To: <200307081001.10555.jbeisert@eurodsn.de>

On Tuesday 08 July 2003 10:01, Juergen Beisert wrote:
> Hello all,
>
> I have tried to use a 16MiB NAND flash in my application. It seems to work,
> but it also seem that the driver is not using the ECC data. I have derived
> my small driver from the spia.c source and have added the line
>
> this->eccmode=NAND_ECC_SOFT;
>
> before calling nand_scan(). nand_scan() inserts the ECC check routines
> correctly in the structure. But later, if the jffs2 calls the driver to
> read data from flash, it calls nand_read_ecc() with parameter oobsel = 0.
> So the line
>
> int	eccmode = oobsel ? this->eccmode : NAND_ECC_NONE;
>
> in nand_read_ecc() switches back to NONE ecc mode while reading.

Have you enabled CONFIG_JFFS2_NAND ?

This happens on boot up too, if you have not given the fs type in the 
commandline and the kernel tries to mount the partition with ext2 first.
It should not happen with jffs2.
-- 
Thomas
________________________________________________________________________
linutronix - competence in embedded & realtime linux
http://www.linutronix.de
mail: tglx@linutronix.de

  reply	other threads:[~2003-07-08  9:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-08  8:01 NAND-Flash ECC data not used Juergen Beisert
2003-07-08 10:42 ` Thomas Gleixner [this message]
2003-07-08 12:05   ` Juergen Beisert
2003-07-08 16:11     ` Thomas Gleixner
2003-07-09 14:43       ` Juergen Beisert

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=200307081242.54207.tglx@linutronix.de \
    --to=tglx@linutronix.de \
    --cc=jbeisert@eurodsn.de \
    --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