number mtd partitions on 16 limits?

Timo Lindhorst lindhors at vnet.ibm.com
Mon Nov 13 05:25:02 EST 2006


Hi Robert,

> 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?

I think this patch fixes that.

Kind regards,
Timo

Subject: [PATCH] set MAX_MTD_DEVICES to 64
From: Timo Lindhorst <lindhors at vnet.ibm.com>
Signed-off-by: Timo Lindhost <lindhors at vnet.ibm.com>
---
  include/linux/mtd/mtd.h |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

--- ubi-2.6.orig/include/linux/mtd/mtd.h
+++ ubi-2.6/include/linux/mtd/mtd.h
@@ -23,7 +23,7 @@

  #define MTD_CHAR_MAJOR 90
  #define MTD_BLOCK_MAJOR 31
-#define MAX_MTD_DEVICES 16
+#define MAX_MTD_DEVICES 64

  #define MTD_ERASE_PENDING              0x01
  #define MTD_ERASING            0x02




More information about the linux-mtd mailing list