public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: "Ryan B. Lynch" <rlynch@bway.net>
To: linux-mtd@lists.infradead.org
Subject: block2mtd driver won't take kernel command-line parameters
Date: Mon, 22 Aug 2005 20:03:42 +0000	[thread overview]
Message-ID: <430A2F9E.6070405@bway.net> (raw)

(I mentioned this to Jorn directly on Friday, but he seems to be busy
with some other stuff at the moment, so I thought I'd send it to the
list in general.)

When the "block2mtd" driver is built into the kernel, it's possible to
add new block devices as emulated MTDs with a command like:

    echo "/dev/hda2" > /sys/module/block2mtd/parameters/block2mtd

(which would create new /dev/mtd* and /dev/mtdblock* devices).  In order
to make the device appear at boot time, Jorn has told me that you can
provide the same parameter to the kernel on the boot command line, like so:

    block2mtd.block2mtd=/dev/hda2

I'm using the line

    append="block2mtd.block2mtd=/dev/hda2"

in the file "/etc/lilo.conf" in to try to pass that parameter.

BUT... it doesn't seem to work.  I can set the block2mtd device up after
booting, using the "echo..." method above, without any errors or other
problems.  Adding the kernel command-line parameter seems to have no
effect at all--there are no error messages in 'dmesg', or anything like
that.  'cat /proc/cmdline' shows the parameter as it should be, so I
know that parameter is getting passed to the kernel.

I tried passing a few SCSI- and USB-related parameters at the command
line, too, just to make sure that parameter handling in general was
working properly.  Everything worked fine, just like it's supposed to.

Has anyone else encountered similar issues making block2mtd work with
command-line parameters?  Am I doing something stupid in my LILO config
line, or what?  Any ideas or help are appreciated, because I'm at a dead
end, not knowing enough about the kernel code to go much further on my own.

For the record, I'm using kernel version 2.6.12, with the MTD patches
from CVS of 2005.08.14.  I can provide configs on request.

-Ryan

             reply	other threads:[~2005-08-22 20:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-22 20:03 Ryan B. Lynch [this message]
2005-08-23  9:13 ` block2mtd driver won't take kernel command-line parameters Jörn Engel

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=430A2F9E.6070405@bway.net \
    --to=rlynch@bway.net \
    --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