Reply Inline.

On Tue, Jul 14, 2009 at 11:57 PM, Belisko Marek <[email protected]>wrote:

> Hi,
>
> On Tue, Jul 14, 2009 at 7:44 PM, Rishi Agrawal<[email protected]>
> wrote:
> > 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 ?
> In kernel menuconfig you can select if driver will be compiled like
> module ([M] option)
> or will be included in kernel ([*] option). If you select second
> option your driver will be always
> loaded. Be aware if your driver must be loaded before some other
> drivers. But if no other
> dependency it is sufficient.
> >
>

I dont want to compile the whole kernel for this.

I have a complied version of the module in /etc/xyz/

and I want that the module gets inserted everytime the system boots




>
> >
> > 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.
> Create device node with command mknod /dev/abc c(for character device)
> <major number> <minor mumber>
> You need to be root to execute this command.
> >
> > How can this be done ?
>

How to get the major and minor number when mknod is running automatically.

i can do a cat /proc/devices but I want it to be done automatically.

A grep | cut can also give the major and minor number but I wanted to know
that

Is this the only way ??




>
> > --
> > Regards,
> > Rishi B. Agrawal
> > http://www.linkedin.com/in/rishibagrawal
> > http://code.google.com/p/fscops/
> >
>
> good luck,
>
> Marek
>
> --
> as simple as primitive as possible
> -------------------------------------------------
> Marek Belisko - OPEN-NANDRA
>
> Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
> Tel: +421 915 052 184
> skype: marekwhite
> icq: 290551086
> web: http://open-nandra.com
>



-- 
Regards,
Rishi B. Agrawal
http://www.linkedin.com/in/rishibagrawal
http://code.google.com/p/fscops/

Reply via email to