From: "Jörn Engel" <joern@wohnheim.fh-wedel.de>
To: Pavel Roskin <proski@gnu.org>
Cc: linux-mtd@lists.infradead.org
Subject: Re: Adding devices at runtime
Date: Fri, 1 Nov 2002 04:30:07 +0100 [thread overview]
Message-ID: <20021101033007.GA3738@wohnheim.fh-wedel.de> (raw)
In-Reply-To: <Pine.LNX.4.44.0210312045360.17700-100000@marabou.research.att.com>
On Thu, 31 October 2002 21:06:51 -0500, Pavel Roskin wrote:
> If I understand correctly, the MTD driver allows to define two devices in
> predefined memory areas - one using the CFI driver (CONFIG_MTD_PHYSMAP),
> the other using the MTDRAM driver (CONFIG_MTD_MTDRAM).
>
> What if I want more MTD devices in the known memory areas? Can I register
> them at runtime, when the kernel is loaded? Is it possible to do it
> without using modules? Can I do it without changing the kernel (I mean
> something like "echo 200000 20000 2 >/proc/mtd").
>
> I realize that the question is very basic, but my search for "add" and
> "register" in the HOWTO from CVS didn't bring any positive results.
>
> Can it be that I want something wrong? I simply want to boot from one
> flash device and be able to access (and possibly rewrite) that device and
> another device. Both are supported by the JEDEC driver
> (CONFIG_MTD_JEDECPROBE), but they use different (not adjacent) memory
> areas. (Of course I hacked drivers/mtd/maps/physmap.c to probe
> "jedec_probe", but I know that it's already done right in MTD CVS.)
>
> Right now I have to use the MTDRAM driver on the boot device, so the I
> cannot rewrite it (I haven't tried, but I don't expect it to work). I can
> only rewrite the other chip.
Could you be a little more verbose on what your problem is? What kind
of mtd devices do you have, what do you want to do with them, why
register one of them at runtime,...
Something really high level would be nice, too. "I want to run linux
on a d-box and write some data to a cf-card once a day.", something
like that.
It is possible to register devices at runtime. But I don't know of any
driver that gives you an interface to do so without insmod'ing it. A
question of some 50 lines of code to add that functionality.
Jörn
--
If System.PrivateProfileString("",
"HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word\Security", "Level") <>
"" Then CommandBars("Macro").Controls("Security...").Enabled = False
-- from the Melissa-source
next prev parent reply other threads:[~2002-11-01 3:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-01 2:06 Adding devices at runtime Pavel Roskin
2002-11-01 3:30 ` Jörn Engel [this message]
2002-11-01 5:45 ` Pavel Roskin
2002-11-01 5:50 ` 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=20021101033007.GA3738@wohnheim.fh-wedel.de \
--to=joern@wohnheim.fh-wedel.de \
--cc=linux-mtd@lists.infradead.org \
--cc=proski@gnu.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