public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Timo Lindhorst <lindhors@vnet.ibm.com>
To: hermes33@freenet.de
Cc: linux-mtd@lists.infradead.org
Subject: Re: number mtd partitions on 16 limits?
Date: Mon, 13 Nov 2006 11:25:02 +0100	[thread overview]
Message-ID: <455847FE.3080900@vnet.ibm.com> (raw)
In-Reply-To: <E1GjYhU-00007r-PL@www8.emo.freenet-rz.de>

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@vnet.ibm.com>
Signed-off-by: Timo Lindhost <lindhors@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

  parent reply	other threads:[~2006-11-13 10:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-13 10:06 number mtd partitions on 16 limits? hermes33
2006-11-13 10:12 ` Artem Bityutskiy
2006-11-13 10:30   ` Vitaly Wool
2006-11-13 10:25 ` Timo Lindhorst [this message]
2006-11-13 11:46   ` Artem Bityutskiy
2006-11-13 16:17     ` Timo Lindhorst
2006-11-13 18:25       ` Artem Bityutskiy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=455847FE.3080900@vnet.ibm.com \
    --to=lindhors@vnet.ibm.com \
    --cc=hermes33@freenet.de \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox