I wrote my own kernel driver for a usb-device. After I compile it with make, I have the kernelobejct file usbdriver.ko and with sudo insmod usbdriver.ko I can install and then use it. But if I restart my Debian, I need to do do insmod again to use it ... How can i mount/install that driver permanently into the system, so that it loads when the os is starting? And how can I also grant other users than only root to access the asscoiated device-files under /dev/usbdriver0?
Asked
Active
Viewed 3,092 times
1 Answers
1
- Copy your driver to
/lib/modules/$(uname -r)/kernel/drivers/
and add it to/etc/modules
: http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html. - I don't know but I think it's in the source code somewhere.

0xC0000022L
- 20,597
- 9
- 86
- 152

Micromega
- 12,486
- 7
- 35
- 72
-
ok so I can autoload it at startup, but cant manage rights that way. I read something about putting a file in /etc/udev/rules.d but i dont know how to write such a file ... :( – user1276012 Jun 02 '12 at 08:35
-
Ok i found a working solution: created the file /etc/udev/rules.d/10-usbdriver.rules with this line SYSFS{idVendor}=="1337", SYSFS{idProduct}=="4242", MODE="0660",GROUP="developer" – user1276012 Jun 02 '12 at 21:28