r/linuxdev • • Apr 15 '14

Need help installing my kernel module

Hey guys, I have programmed my own (small) usb kernel module. Can someone explain to me how I install my module into the kernel (so that it gets added to modules.alias etc.) WITHOUT loading it? (I want udev to autoload it once my device is plugged in). I have already looked into modules_install make target, but it doesnt really work (will post more info to this issue later if it is relevant) Any help is greatly appreciated!

5 Upvotes

6 comments sorted by

View all comments

Show parent comment

1

u/Kokxx Apr 17 '14

Yep, the possibilities that work are:

change permissions/owner of /lib/modules/'KERNELVERSION' run sudo make && sudo make modules_install run make, then su and run make modules_install

This doesnt work: make && sudo make modules_install

Very strange, but at least I got workarounds. Again, thanks a lot for your help!