Adding devices at runtime

Jörn Engel joern at wohnheim.fh-wedel.de
Fri Nov 1 00:50:38 EST 2002


On Fri, 1 November 2002 00:45:59 -0500, Pavel Roskin wrote:
> Sorry, I cannot be more verbose about the device.  I was saying "at
> runtime" because I don't need the second chip for the boot process.  I
> don't care if it's done at runtime or I hardcode the address into the
> kernel.  However, I did check the Config.in and I know that the kernel
> only takes parameters for one chip and one MTDRAM device.
> 
> > 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.
> 
> I have those lines (perhaps they are not very pretty), but I was wondering
> if there is "the right way" to do it.  I gather from your that it's called
> insmod.  That's fine.
> 
> I guess another solution would be writing a map for the device, just like
> those little C files under drivers/mtd/maps/

Yes, yet another mapping driver sound like the way to go, judging from
the information you provided.

Jörn

-- 
I can say that I spend most of my time fixing bugs even if I have lots
of new features to implement in mind, but I give bugs more priority.
-- Andrea Arcangeli, 2000




More information about the linux-mtd mailing list