mtd/html/tech nand.html,1.15,1.16

gleixner at infradead.org gleixner at infradead.org
Sat Mar 8 05:35:01 EST 2003


Update of /home/cvs/mtd/html/tech
In directory phoenix.infradead.org:/tmp/cvs-serv25393

Modified Files:
	nand.html 
Log Message:
some corrections of new oob usage

Index: nand.html
===================================================================
RCS file: /home/cvs/mtd/html/tech/nand.html,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- nand.html	18 Feb 2003 21:04:10 -0000	1.15
+++ nand.html	8 Mar 2003 10:34:58 -0000	1.16
@@ -151,10 +151,15 @@
 	int	eccpos[6];<br>
 }<br>
 With this structure the usage of ecc and the position of ecc-data in the oob area are given.
-If useecc is 0, then eccpos will be ignored, else eccpos arrey gives an index for the ecc data
+If useecc is 0, then eccpos will be ignored, else eccpos array gives an index for the ecc data
 inside out of band area.
 </p>
-<p>All non ecc functions like mtd->read and mtd->write default to NAND_NONE_OOB.</p>
+<p>All non ecc functions like mtd->read and mtd->write use an internal structure, which can be set 
+by an ioctl.<br>
+ioctl (fd, MEMSETOOBSEL, oobsel);, where oobsel is a pointer to a user supplied structure of type
+oobconfig. The contents of this structure must match the criteria of the filesystem, which will
+be used. See an example in utils/nandwrite.c.
+</p>
 
 <h4>Read back OOB data together with main area </h4>
 <p>If the fs driver needs to read the oobdata together with the raw data, then the fs-driver has to





More information about the linux-mtd-cvs mailing list