简体   繁体   中英

Load linux kernel module from local folder on boot time

I am currently working on a project where I created a kernel module to interact with some external hardware. Up to now I always rebuilt and loaded it with a script during the system was running. Now, I am searching for a possibility to load this module during boot time. As this module might still be extended, I still have it in my local delevelopment folder. How can I link or reference this module to be loaded from a users home folder? I already tried to setup the path to the .ko-file in /etc/modules but this didn't work, also my dmesg output does not mention anything about it. Thank you all in advance

(btw, I working with debian (wheezy I think) on my beaglebone black, kernel 3.14.22-ti-r31)

也许在etc/rc.local执行/bin/insmod /home/yourname/path/modulename.ko

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM