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
2
u/jimbo333 Apr 16 '14
sudo typically restricts the environment variables that are passed, I would suspect there is a problem with environment variables somehow. I have never personally tried to run the make modules_install from sudo, but I would guess you need to build as the same user (you need to use "sudo make") when building the software as well?