you can load you module with initial ramdisk image. Use mkinitrd command to
make initrd imgae with --preload option.

Regards,

Abid Younas

On Wed, Jul 15, 2009 at 12:15 PM, Denis Borisevich <[email protected]>wrote:

> 2009/7/15 arun c <[email protected]>:
> >
> >
> > On Wed, Jul 15, 2009 at 12:59 AM, Denis Borisevich <[email protected]>
> > wrote:
> >>
> >> 2009/7/14 Rishi Agrawal <[email protected]>:
> >> > Hello All,
> >> >
> >> > I have written a character device driver suppose abc.c
> >> >
> >> > 1) I want to load the device driver abc.ko on every boot of the
> system.
> >> >
> >> > How can I achieve this ?
> >> >
> >> >
> >> > 2) I want the device /dev/abc_dev to be present whenever the system
> >> > reboots.
> >> > The major and minor number should same as that of abc.ko when
> inserted.
> >> >
> >> > How can this be done ?
> >> Hi!
> >> First, if your kernel module is controlling some hardware, then you
> >> can copy your module to "/lib/modules/`uname -r`/drivers" directory
> >> and then issue the "/sbin/depmode -a" command. Your module will be
> >> registered in your system. Then when say PCI subsystem will find new
> >> device which is not yet controlled by any driver it will load your
> >> module.
> >>
> >> The other way is to use the init script which is being executed on
> system
> >> boot.
> >
> > This is for automatic insertion of the module. But for automatic device
> node
> > creation 'udev' is needed; am I right here?
>
> Yes, you're right.
> --
> Denis
>
> --
> To unsubscribe from this list: send an email with
> "unsubscribe kernelnewbies" to [email protected]
> Please read the FAQ at http://kernelnewbies.org/FAQ
>
>

Reply via email to