A question on ECC

Edward Lee (???) noshel at idis.co.kr
Mon Apr 14 01:13:20 EDT 2003


Hi Earl, thanks for the help.

I didn't use nandwrite, I wrote on the chip using plain stuff like 'cp' or 'tar', etc.
(having a file system on my device, I couldn't find a reason to write files using 
 other programs)



----- Original Message ----- 
From: "Earl Manning" <EManning at PRISMIQ.com>
To: <linux-mtd at lists.infradead.org>
Sent: Monday, April 14, 2003 11:01 AM
Subject: Re: A question on ECC


Hi Edward,

I am using a similar chip with JFFS2.  When you wrote the image, did you use the supplied utility 'nandwrite'?  If you did, did you invoke it with the "--yaffs" option?  

I hope this helps,
Earl Manning


On Mon, 14 Apr 2003 09:18:09 +0900
Edward Lee \(ÀÌÀå¿ø\) <noshel at idis.co.kr> wrote:

> Hello. I'm Edward Lee in Korea.
> 
> I'm using samsung NAND flash, with YAFFS on it..
> But I'm having problems with ECC.
> I wrote a file that's needed to use the flash chip with my board,
> and here's  a small part of code that defines the partitions.
> 
> static struct mtd_partition partition_info[] = {
>     { name: "a",
>       offset: 0,
>       size: 32 * 512 },
>     { name: "b",
>       offset: 16384,
>       size: 2 * 1024 * 1024 },
>     { name: "c",
>       offset: 2113536,
>       size: 2 * 1024 * 1024 },
>     { name: "d",
>       offset: 4210688,
>       size: 11 * 1024 * 1024 },
>     { name: "e",
>       offset: 15745024, 
>       size: 1032192 }
> };
> #define NUM_PARTITIONS 5
> 
>     I'm using YAFFS on partitions "d" and "e".
> But I can't stop recieving annoying kernel messages saying
> "Reading data from NAND FLASH without ECC is not recommended".
> 
>      On YAFFS's side, I set the option CONFIG_YAFFS_USE_NANDECC,
> which I believe that asks the mtd NAND to do the ECC.
> So, I would like to ask if any other settings are necessary in order to enable ECC.
> (Probably something should be added to the stuff above?)
> 
> Well, that's all, and thanks for the great work.

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/



More information about the linux-mtd mailing list