nand oob layout assumptions

David Woodhouse dwmw2 at infradead.org
Sat Mar 27 11:18:31 EST 2004


On Sat, 2004-03-27 at 10:13 -0600, David Updegraff wrote:
> In all this discussion, the need for anyone outside the driver to know
> hardware positions of ECC and badblock markers still elludes me.  Yes, 
> various FS need to scribble oob info of their own in a particular 
> format, and in a way that won't scribble over ecc/badblock, but is there 
> anything more than that?

Nope. The file system just need to be told which are bad blocks, where
the ECC data are, and which bytes are still available. In fact, it
possibly doesn't even need to know where the ECC data are in the general
case.

> So, again, what if the 'oobsize' and 'oob_buf' (or a renamed relative 
> thereof) were interpreted to mean "region available in OOB for misc. 
> file system housekeeping, that will not stomp on private ECC or badblock 
> areas and will not be interpreted by nand driver".  And let the driver 
> put it wherever it wants/needs to in OOB.  Driver gets to ignorant of FS 
> details, FS gets to be ignorant of chip-HW-dependent ECC and badblock 
> layout.

Seems reasonable. We can make it a bitmask of available bytes, perhaps?

-- 
dwmw2





More information about the linux-mtd mailing list