[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: [LI] More on modules
On Wed, Jan 12, 2000 at 11:56:30AM +0530, Ghins Mathai wrote:
>
> I have some questions:
>
> Suppose I write a module for a new device that can be used in place of a
> HDD. Now I need to have the module loaded into memory as soon as the
> system boots up so that once the system is up I am able to access the
> device just like a HDD. How do you write a loader which will do this or
> rather what is the mechanism that automatically loads modules into the
> kernel at boot time ?
Read /usr/src/linux/Documentation/kmod.txt - specifically request_module()
>
> If I do not have a HDD and have only this device, how do I boot from this
> device using the module ?
>
You have a chicken and egg problem. You can't read the device which contains
the module, because you don't have the module :)
The problem is solved using initrd. Read initrd.txt in the same directory.
-Arun
--------------------------------------------------------------------
The Linux India Mailing List Archives are now available. Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.