Want to permanently mount Kernel-Driver into System
-
12-06-2021 - |
Question
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?
Solution
- 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.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow