nand_oob_128?

William Juul william.juul at datarespons.no
Wed Nov 7 07:00:27 EST 2007


We are working on two custom cards with large nand devices and could
not find any implementation of nand_ecclayout for our HW in
drivers/mtd/nand/nand_base.c

I could not find any requirements for how this struct should be
implemented, so I just tried with:

static struct nand_ecclayout nand_oob_128 = {
	.eccbytes = 48,
	.eccpos = {
		    80,  81,  82,  83,  84,  85,  86,  87,
		    88,  89,  90,  91,  92,  93,  94,  95,
		    96,  97,  98,  99, 100, 101, 102, 103,
		   104, 105, 106, 107, 108, 109, 110, 111,
		   112, 113, 114, 115, 116, 117, 118, 119,
		   120, 121, 122, 123, 124, 125, 126, 127},
	.oobfree = {
		{.offset = 2,
		 .length = 78}}
};

Can anyone confirm the validity of this implementation or point me to
information about how it should be implemented?
Or better yet, provide me with the correct implementation :-)

I will provide a patch once I feel comfortable with the validity of my
implementation.

Best regards
William Juul

-------------------------------------------------
William Juul, Senior Development Engineer
Data Respons Norge AS
Sandviksveien 26
P.O. Box 489
NO-1323 Høvik, Norway

www.datarespons.no
-------------------------------------------------



More information about the linux-mtd mailing list