All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Kaiser <rob@sysgo.de>
To: David Woodhouse <dwmw2@infradead.org>
Cc: <mtd@infradead.org>
Subject: Using mtdblock as root device
Date: Tue, 6 Mar 2001 12:38:31 +0100	[thread overview]
Message-ID: <01030613110600.01913@rob> (raw)

[-- Attachment #1: Type: text/plain, Size: 881 bytes --]

Hi,

I just tried to build a system that uses jffs on /dev/mtdblock0 as root fs.
This didn't work right away because the kernel did not honor the option
"root=/dev/mtdblock0" . This is because mtdblock devices are not listed
in the list of known root devices in the kernel (see "root_dev_names" in file
init/main.c). After applying the attached patch, using mtdblock as rootfs
worked nicely.

Now my question is: is there any particular reason (other than "nobody has
told Linus") why this is not already in the standard kernel ?

If there isn't, should I go ahead and submit my patch to Linus ?


Cheers

Rob


----------------------------------------------------------------
Robert Kaiser                         email: rkaiser@sysgo.de
SYSGO RTS GmbH
Am Pfaffenstein 14                    phone: (49) 6136 9948-762
D-55270 Klein-Winternheim / Germany   fax:   (49) 6136 9948-10

[-- Attachment #2: patch-mtdblock-root --]
[-- Type: text/plain, Size: 656 bytes --]

--- linux/init/main.c.orig	Thu Jan  4 05:45:26 2001
+++ linux/init/main.c	Tue Mar  6 12:57:00 2001
@@ -273,6 +273,24 @@
 #ifdef CONFIG_NFTL
 	{ "nftla", 0x5d00 },
 #endif
+#ifdef CONFIG_MTD
+	{ "mtdblock0", 0x1f00 },
+	{ "mtdblock1", 0x1f01 },
+	{ "mtdblock2", 0x1f02 },
+	{ "mtdblock3", 0x1f03 },
+	{ "mtdblock4", 0x1f04 },
+	{ "mtdblock5", 0x1f05 },
+	{ "mtdblock6", 0x1f06 },
+	{ "mtdblock7", 0x1f07 },
+	{ "mtdblock8", 0x1f08 },
+	{ "mtdblock9", 0x1f09 },
+	{ "mtdblock10", 0x1f0a },
+	{ "mtdblock11", 0x1f0b },
+	{ "mtdblock12", 0x1f0c },
+	{ "mtdblock13", 0x1f0d },
+	{ "mtdblock14", 0x1f0e },
+	{ "mtdblock15", 0x1f0f },
+#endif
 	{ NULL, 0 }
 };
 

             reply	other threads:[~2001-03-06 12:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-06 11:38 Robert Kaiser [this message]
     [not found] ` <7121.983884306@redhat.com>
2001-03-06 13:37   ` Using mtdblock as root device Robert Kaiser
2001-03-07  2:07     ` David Schleef
  -- strict thread matches above, loose matches on Subject: below --
2001-03-06 13:49 Vipin Malik
2001-03-06 14:14 ` Robert Kaiser
2001-03-06 14:28   ` David Woodhouse

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=01030613110600.01913@rob \
    --to=rob@sysgo.de \
    --cc=dwmw2@infradead.org \
    --cc=mtd@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.