number mtd partitions on 16 limits?

Artem Bityutskiy dedekind at infradead.org
Mon Nov 13 05:12:35 EST 2006


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.

-- 
Best regards,
Artem Bityutskiy (Битюцкий Артём)





More information about the linux-mtd mailing list