Ndiswrapper kernel-module version mismatch
I installed ndiswrapper on Mandrake 9.2 for my wpc54g wireless card and am using KDE. I had ndiswrapper working perfectly, but then I was tinkering with the network settings and now I cannot get it to work.
What I tried:
I created a link: ln -s /usr/src/linux /lib/modules/2.4.2-10mdk
I ran ./install.sh and the program loaded without a hitch.
Then I tried to run the following script (which had worked before):
# /usr/local/bin/loadndisdriver 14e4 4320 \
/usr/sbin/loadndisdriver 14e4 4320 \
The error I get:
[root@Goblin ndiswrapper]# wifiup
/lib/modules/2.4.22-10mdk/misc/ndiswrapper.o: kernel-module version mismatch
/lib/modules/2.4.22-10mdk/misc/ndiswrapper.o was compiled for kernel version 2.4.22-28mdkcustom
while this kernel is version 2.4.22-10mdk.
modprobe: insmod /lib/modules/2.4.22-10mdk/misc/ndiswrapper.o failed
modprobe: insmod ndiswrapper failed
Cannot find minor for kernel module. Module loaded?
So, obviously ndiswrapper.o was compiled with the wrong kernel, but how do I compile it with the correct one? ...also, why do I have two kernel sources at all: shouldn't there be just one?