NAND FLASH 4KB page support

sasin at solomon-systech.com sasin at solomon-systech.com
Wed Jul 4 04:19:44 EDT 2007


Sorry to resend (reply bounces) - Forgot to add, I'm using linux
2.6.20.1 for ARM926.

Trying to boot off CRAMFS on a 4KB page NAND FLASH (new device), I ran
into the "wrong magic" issue.  MTD's nand_read
(drivers/mtd/nand/nand_base.c) is returning the right data.
Cramfs_fill_supper call cramfs_read (fs/cramfs/inode.c) which reads 4
pages and the 1st page of data gets corrupted.  If I set
BLKS_PER_BUF_SHIFT in this file to 0 or 1 instead of 2, so that only 1
or 2 pages are read, the data is uncorrupted and the magic value matches
but it crashes later (comments say that this values should be 2 or
higher, so this is not surprising).  So is 4KB page size supported by
the rest of Linux outside MTD?  Is there some size limit in some inode
related structure?




More information about the linux-mtd mailing list