number mtd partitions on 16 limits?

Vitaly Wool vwool at ru.mvista.com
Mon Nov 13 05:30:22 EST 2006


Artem Bityutskiy wrote:
> Hi,
>
> On Mon, 2006-11-13 at 11:06 +0100, hermes33 at freenet.de wrote:
>   
>> I need more than 16 mtd partitions on a omap1610 (arm) with kernel 2.4.20. 
>> I create 16 partitions. All ok, 'cat /proc/mtd' show mtd0 to mtd15. 
>> I create 17 partitions. 'cat /proc/mtd' show only mtd0 to mtd15. 
>> It seems to give a limit with 16 partitions. 
>> Where can I change that? can someone help me?
>>     
>
> This is because of
> #define MAX_MTD_DEVICES 16
> at include/linux/mtd/mtd.h. Increase this macro. I guess it is harmless
> to make it 32, feel free to send a patch.
>
>   
I would however like to add that if you have more than 16 partitions in 
your system, you're likely to have problems with your design and not 
with MTD.

Vitaly




More information about the linux-mtd mailing list