max size of MTD?

Seongsu Lee senux at senux.com
Sat Jan 6 03:59:57 EST 2007


On Fri, Jan 05, 2007 at 04:29:41PM +0900, Seongsu Lee wrote:
> Hi,
> 
> What is the max size of a partition that can be used in MTD?
> I found that the u_int32_t is used for the variable size 
> in mtd_info. Then, I think 4GB is currently the max size. 
> Am I right? 
> 
> I want to use 6GB flash memory with a partition. How can I 
> fix it for using more than 4GB? I changed u_int32_t into
> u_int64_t but it does not work. (kernel oops)

Hi,

I changed the type of variable size in structure mtd_info 
from u_int32_t to u_int64_t. Some code such as printk is
modified after the change. It works. I tested that 
mtdconcat can create 6GB MTD device as one device.

-- 
Seongsu's blog - http://www.senux.com/
The aim of a joke is not to degrade the human being
but to remind him that he is already degraded. --
George Orwell




More information about the linux-mtd mailing list