On Tue, Jul 14, 2009 at 11:57 PM, Belisko Marek <marek.belisko@xxxxxxxxx> wrote:
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
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 ??
Hi,
In kernel menuconfig you can select if driver will be compiled like
On Tue, Jul 14, 2009 at 7:44 PM, Rishi Agrawal<rishi.b.agrawal@xxxxxxxxx> 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 ?
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
Create device node with command mknod /dev/abc c(for character device)
>
> 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.
<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 ??
good luck,
> --
> Regards,
> Rishi B. Agrawal
> http://www.linkedin.com/in/rishibagrawal
> http://code.google.com/p/fscops/
>
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/