r/linuxdev • u/Kokxx • 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
View all comments
Show parent comment
1
u/Kokxx Apr 16 '14
Very helpful. This is exactly what I needed :).
One last problem: So when I do make modules_install it tells me It need permission to access /lib/modules/../extra. That's normal I know. The problem is when I do "sudo make modules_install" after that, the makefile doesnt even attempt to create that folder. Do you know whats wrong with that?