lkml.org 
[lkml]   [2007]   [Jul]   [5]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
SubjectCRAMFS support for 4KB page NAND FLASH
DateThu, 5 Jul 2007 11:51:46 +0800
From<>
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 calls 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 instead of 2, so that only 1 page
is 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 are 4KB-page devices supported by CRAMFS?

I'm using linux 2.6.20.1 for ARM. 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-07-05 04:55    [from the cache]
©2003-2008