From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from xena.bway.net ([216.220.96.26] helo=mail.bway.net) by canuck.infradead.org with esmtps (Exim 4.52 #1 (Red Hat Linux)) id 1E7IWD-0004Gw-Ch for linux-mtd@lists.infradead.org; Mon, 22 Aug 2005 16:03:45 -0400 Message-ID: <430A2F9E.6070405@bway.net> Date: Mon, 22 Aug 2005 20:03:42 +0000 From: "Ryan B. Lynch" MIME-Version: 1.0 To: linux-mtd@lists.infradead.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: block2mtd driver won't take kernel command-line parameters List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , (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