PDA

View Full Version : Still trying to get ndiswrapper working, six months and counting.......



Fone Star
11th July 2006, 01:36 AM
Hi I've been trying to get ndiswrapper working for months to no avail.

My kernel version is 2.6.15-1.2054_FC5 and I'm trying to get a D-Link DWL-G650 PCMCIA card working with it.

When I try and establish a link to the Kernel I get a:

[root@localhost modules]# cd /lib/modules/2.6.15-1.2054_FC5/build
bash: cd: /lib/modules/2.6.15-1.2054_FC5/build: No such file or directory
[root@localhost modules]# ln -s /usr/src/linux-2.6.15-1.2054_FC5 /lib/modules/2.6.15-1.2054_FC5/build
ln: creating symbolic link `/lib/modules/2.6.15-1.2054_FC5/build' to `/usr/src/linux-2.6.15-1.2054_FC5': File exists
[root@localhost modules]#

The wiki article doesn't say what to do in this case so what do I do next? My bash experience has been so far, "this is why I can't do what you want, good luck finding someone who knows how".

If someone can help me with this I'll be blown away, I'll buy lunch for a homeless person or something.

Brian1
11th July 2006, 01:43 AM
Just to make sure you have it. Do you have the kernel source installed?
Its called kernel-devel-2.6.15-1.2054_FC5. It would have been installed as an RPM.
To see if you have type the command
rpm -qa | grep kernel

Brian1

Fone Star
11th July 2006, 01:52 AM
Hi thanks Brian when I run that cmd I get:

[root@localhost modules]# rpm -qa | grep kernel
kernel-2.6.15-1.2054_FC5
kernel-devel-2.6.17-1.2141_FC4
[root@localhost modules]#

thanks

Fone Star
11th July 2006, 03:33 AM
so does this mean I am trying to link ndiswrapper to the old kernel I installed FC5 over? How do I get ndiswrapper to work under FC5?

stanmc
11th July 2006, 04:33 AM
Hi thanks Brian when I run that cmd I get:

[root@localhost modules]# rpm -qa | grep kernel
kernel-2.6.15-1.2054_FC5
kernel-devel-2.6.17-1.2141_FC4
[root@localhost modules]#

thanks
Your kernel and kernel-devel are out of sync. They have to be the same level. I believe 2054 was the original kernel at the install of FC5 and it was problematic. You need to update to a newer kernel & kernel-devel if you can or get the kernel devel for the kernel you are using.

Fone Star
11th July 2006, 04:51 AM
Okay, thanks. I try:

yum update kernel-devel

It fails, tells me all mirrors won't work seems Yum hasn't worked for the last couple days. Any Ideas?

Fone Star
11th July 2006, 05:36 AM
I have the kernel and kernel-devel now in sync:

[root@localhost modules]# rpm -qa | grep kernel
kernel-2.6.17-1.2145_FC5
kernel-devel-2.6.17-1.2145_FC5

but when I try and make, make file:

[root@localhost ndiswrapper-1.19]# make
make -C driver
make[1]: Entering directory `/home/FONE_STAR/Desktop/ndiswrapper-1.19/driver'
Can't find kernel build files in /lib/modules/2.6.15-1.2054_FC5/build;
give the path to kernel build directory with
KBUILD=<path> argument to make
make[1]: *** [prereq_check] Error 1
make[1]: Leaving directory `/home/FONE_STAR/Desktop/ndiswrapper-1.19/driver'
make: *** [all] Error 2

So it looks like it's still trying to find the modules in the old kernel even though I now have the new kernel and kernel-devel?

Fone Star
11th July 2006, 06:35 AM
I am guessing I have to remove and reinstall ndiswrapper-1.19 so it will go to my updated /lib/modules? I know that they are correct as I do:

[root@localhost FONE_STAR]# cd /lib/modules
[root@localhost modules]# ls
2.6.17-1.2145_FC5
[root@localhost modules]#

Thing now is that I cannot delete an older copy folder of ndiswrapper I somehow created. Won't let me chmod it's permissions either. Sorry, but this is Stupid! If I've already deleted it's parent folder and I'm logged on as root why the hell shouldn't I be able to delete a file?

Fone Star
11th July 2006, 07:40 AM
Okay, I finally got ndiswrapper installed, and downloaded the correct drivers for the DWL-G650 X-treme Rev B.5 PCMCIA card.

I located the only .inf extension and tried installing it going:

[root@localhost ndiswrapper-1.19]# ndiswrapper -i net5211.inf
Installing net5211
couldn't copy net5211.inf at /usr/sbin/ndiswrapper line 144.
[root@localhost ndiswrapper-1.19]# chmod 777 /usr/sbin/ndiswrapper
[root@localhost ndiswrapper-1.19]# ndiswrapper -i net5211.inf
net5211 is already installed. Use -e to remove it
[root@localhost ndiswrapper-1.19]# ndiswrapper -l
Installed drivers:
net5211 invalid driver!
[root@localhost ndiswrapper-1.19]# ndiswrapper -e net5211.inf
Driver net5211.inf is not installed.Use -l to list installed drivers
[root@localhost ndiswrapper-1.19]# ndiswrapper -l
Installed drivers:
net5211 invalid driver!
[root@localhost ndiswrapper-1.19]#

I thought it was the permission that wasn't letting me import it so I changed it. Then it tells me that it has been installed, it hasn't been installed and that it is an invalid driver. What is this about?

Fone Star
11th July 2006, 07:53 AM
I did

lspci and it doesnot seem to find any D-Link card in there so maybe that is why it is giving me invalid driver. So I tried modprobe and it says:

[root@localhost Desktop]# modprobe PCMCIA
FATAL: Could not load /lib/modules/2.6.15-1.2054_FC5/modules.dep: No such file or directory

shouldn't yum update all of the kernel? Why is it still trying to find the 2054 release?