public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Can't enable ecc check in mtd.
@ 2004-11-07 13:09 zheng wei
  2004-11-07 14:02 ` Thomas Gleixner
  0 siblings, 1 reply; 2+ messages in thread
From: zheng wei @ 2004-11-07 13:09 UTC (permalink / raw)
  To: linux-mtd

Hi, sir
 I cannot enable ecc check in mtd, the message in nand.c, func int
nand_write_page (),
printk (KERN_WARNING "Writing data without ECC to NAND-FLASH is not
recommended\n");

In mtd/nand.c,
static int nand_write_page (struct mtd_info *mtd, struct nand_chip
*this, int page, u_char *oob_buf,  struct nand_oobinfo *oobsel)
{
	int 	i, status;
	u_char	ecc_code[6], *oob_data;
	int	eccmode = oobsel->useecc ? this->eccmode : NAND_ECC_NONE;
//??????? I have initialize the eccmode to NAND_ECC_HW3_512,
...
}

I have enable the ecc check in mizi linux 2.4.18 for ARM2410.

Thank you

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Can't enable ecc check in mtd.
  2004-11-07 13:09 Can't enable ecc check in mtd zheng wei
@ 2004-11-07 14:02 ` Thomas Gleixner
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Gleixner @ 2004-11-07 14:02 UTC (permalink / raw)
  To: zheng wei; +Cc: linux-mtd

On Sun, 2004-11-07 at 21:09 +0800, zheng wei wrote:
> Hi, sir
>  I cannot enable ecc check in mtd, the message in nand.c, func int
> nand_write_page (),
> printk (KERN_WARNING "Writing data without ECC to NAND-FLASH is not
> recommended\n");
> 
> In mtd/nand.c,
> static int nand_write_page (struct mtd_info *mtd, struct nand_chip
> *this, int page, u_char *oob_buf,  struct nand_oobinfo *oobsel)
> {
> 	int 	i, status;
> 	u_char	ecc_code[6], *oob_data;
> 	int	eccmode = oobsel->useecc ? this->eccmode : NAND_ECC_NONE;
> //??????? I have initialize the eccmode to NAND_ECC_HW3_512,

Maybe, but the variable which is checked is oobsel->useecc.

Read http://www.linux-mtd.infradead.org/tech/mtdnand/index.html
and  http://www.linux-mtd.infradead.org/tech/mtdnand/x215.html
and  http://www.linux-mtd.infradead.org/tech/mtdnand/c460.html

> I have enable the ecc check in mizi linux 2.4.18 for ARM2410.

Read http://www.linux-mtd.infradead.org/#kernelversions

tglx

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-11-07 14:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-07 13:09 Can't enable ecc check in mtd zheng wei
2004-11-07 14:02 ` Thomas Gleixner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox