I'd like to know whether it is possible to remove a module from the kernel without having to recompile the kernel? I know this seems kind of contradictionary, but may be there is a way?
Just to be clear, I do not mean to remove a module with modprobe -r
Here is my actual problem (you may skip this, as it is quite long and boring
). I had installed Mandrake 9.1 with the Lirc application as a module. Somehow I did not get it working (automatically) with my remote control (from Pinnacle Systems). That is, it assigned directory /dev/lirc -> serial
. But I'd wanted it to be lirc->ttyS0
I might have achieved this by manually fiddling with it, but I wanted to solve it differently.
I'd thought I just download Lirc from the lirc website and reconfigure it myself (actually I did succeed in this somehow the last time before I screwed up my previous (Mandrake) Linux installation
When I configure Lirc it says that "Your hardware does not require a kernel module.". After this I make
and make install
and all the other stuff that is mentioned in many Lirc How-To's.
But when I run modprobe lirc_serial
it probably tries to load the mandrake pre-installed one which then results in errors (cannot remember what the errors were exactly now).
I decided to remove the lirc-mdk through "Remove Software" after having uninstalled the original Lirc (through make uninstall
). The Mandrake "Remove Software" did remove some lirc stuff but not
the modules that reside in /lib/modules/2.4.21-0.13mdk/kernel/3rdparty/
So I removed the lirc folder therein manually, did a depmode -a
(thought this would have actually tricked other applications in thinking that the module did not exist anymore
) and recompiled Lirc. However, Lirc did not install any modules at the place I had just removed. It probably still thinks that I have those modules (doh?) ?!.
So to make the long story short, I think I need to reconfigure the module dependencies such that the kernel is actually
not using the Lirc module, and such that Lirc will think it needs to compile and install the driver (module) itself.
As mentioned in the beginning, is this possible without having to go through the "hassle" of recompiling the kernel? May be just by performing make modules
after a make config
Thanks for any replies,