[Yaffs] Yaffs with 2k Pages OR Yaffs2

Thomas Gleixner tglx@linutronix.de
Sun, 19 Dec 2004 21:10:15 +0100


On Mon, 2004-12-20 at 08:59 +1300, Charles Manning wrote:
> Rajiv
> 
> I've thought about this a bit...
> While Thomas it technically correct that YAFFS2 needs more recent mtd
> (which no longer supports older kernels), I think it rather simple to
> hack the mtd you have to support YAFFS2.
> 
> Basically, all you'd need to do is:
> 1) Modify the nand write/read functions to work with 2k pages (change
> the size of the for loop), and a few other minor changes to handle ECC
> etc.
> 2) Add a couple more required fields to the mtd_info structure.
> 3) Add two new functions block_markbad() and block_isbad() for bad block
> handling.

So you finally backport the whole mtd driver. :)

> Whether it is the right time for you to switch to a newer kernel or not
> is your choice and should not be forced by mtd changes.

What real good reason is there not to upgrade the kernel ? 
Backporting major changes is worse than upgrading. Especially if the
base you use is well known to be buggy and obsolete.

tglx