problem with 2k page NAND with squashfs

Ricard Wanderlof ricard.wanderlof at axis.com
Wed Jan 23 04:27:23 EST 2008


On Tue, 22 Jan 2008, Adams Richard-W36112 wrote:

>> On Tue, 22 Jan 2008 09:15:29 -0500
>> "Adams Richard-W36112" <rgadams at motorola.com> wrote:
>>
>>>  I have an arm-based embedded system running a 2.6.10 kernel. I'm
> ...
> Before I went through the effort I wanted to check with the list to see
> if anyone knows that there is or isn't an issue with the 2k NAND page
> size on this vintage kernel.

You could check in drivers/mtd/nand/nand_ids.c and see if your flash chip, 
or indeed any chip with that page size is listed there. Even if it is, 
there could still be a bug of course.

I seem to remember some kernel of similar vintage failing with large-page 
flash chips because the driver tried to kmalloc a buffer the size of a 
block, which failed for chips with 128 KiB blocks, because of limitations 
of the amount of memory that could allocated in one go with kmalloc.

/Ricard
--
Ricard Wolf Wanderlöf                           ricardw(at)axis.com
Axis Communications AB, Lund, Sweden            www.axis.com
Phone +46 46 272 2016                           Fax +46 46 13 61 30



More information about the linux-mtd mailing list