Support for NAND devices > 4GB

Maupin, Chase chase.maupin at ti.com
Fri Dec 5 10:30:54 EST 2008


All,

I have a Samsung NAND chip part number (K9WBG08U1M) which is a 32GB NAND chip with 4K page sizes.  It looks like it is actually 2 chips together as it is reported in the kernel as having "2 NAND chips detected".  The kernel is properly detecting the 4K page size but it seems like there is a limitation in the mtd_info structure of 4GB for the size of the NAND.  Can anyone tell me if there is support in the Linux MTD system for NAND devices greater than 4GB?  Does anyone have a patch I could look at for this?

I have tried changing the size element in the mtd_info structure to u_int64_t and then changing the code in YAFFS2 and in the add_mtd_partitions function to use do_div for the division of the size element but still no success.

I am working in a 2.6.10 kernel (which I cannot update) and will back port any patches people may have.

Again, any help that could be offered here would be greatly appreciated.

Sincerely,
Chase Maupin




More information about the linux-mtd mailing list