[英]Want to permanently mount Kernel-Driver into System
I wrote my own kernel driver for a usb-device. 我为USB设备编写了自己的内核驱动程序。 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.
用make编译后,我拥有了kernelobejct文件usbdriver.ko和sudo insmod usbdriver.ko,我可以安装然后使用它。 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?
但是,如果我重新启动Debian,我需要再次执行insmod才能使用它。如何将驱动程序永久地安装/安装到系统中,以便在操作系统启动时加载该驱动程序? And how can I also grant other users than only root to access the asscoiated device-files under /dev/usbdriver0?
以及我如何还可以授予除root用户以外的其他用户访问/ dev / usbdriver0下的关联设备文件的权限?
/lib/modules/$(uname -r)/kernel/drivers/
and add it to /etc/modules
: http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html . /lib/modules/$(uname -r)/kernel/drivers/
并将其添加到/etc/modules
: http : //www.cyberciti.biz/tips/compiling-linux-kernel-module.html 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.