public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* how can I use MTD partition with large size ( >= 4G bytes)?
@ 2007-03-17  8:40 Tian Jin
  2007-03-17 12:42 ` Josh Boyer
  0 siblings, 1 reply; 3+ messages in thread
From: Tian Jin @ 2007-03-17  8:40 UTC (permalink / raw)
  To: linux-mtd

Hi, I want to use NAND flash chips to storage large audio data, the max 
storage size will be 3.6G bytes£¨may be 7G bytes in the future£©, so I have 
to use four 1GB NAND flash chips to make up a single 4GB MTD partition, but 
mtd->size was defined as 32bit integer in MTD driver(linux-2.6.20-rc1), so 
mtd->size just overflowed in function nand_scan_ident():

/* Store the number of chips and calc total size for mtd */
chip->numchips = i;
mtd->size = i * chip->chipsize; // 4 * 40000000 = 0x100000000 = 0xFFFFFFFF + 
0x01

I've tried to modify the data type of mtd->size to usinged long long, but 
kernel can not be compiled successfully£¬Is there any solution for this?

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-03-17 13:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-17  8:40 how can I use MTD partition with large size ( >= 4G bytes)? Tian Jin
2007-03-17 12:42 ` Josh Boyer
2007-03-17 13:20   ` Artem Bityutskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox