LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Linux Answers > Networking
User Name
Password

Notices


By kayoss717 at 2006-03-25 04:41
To install and run ndiswrapper on Fedora Core 5, it take a little tweaking above and beyond what is in the official installation wiki. The first think you need to do is go to http://people.redhat.com/davej/kernels/Fedora/FC5/RPMS.kernel/ and get the latest kernel AND kernel-devel. If you are using firefox, when you click on the download, just open them with the default package installer, and they will be installed. Otherwise, save them and install them with yum. Be sure that you are using the most recent kernel when you start installing ndiswrapper. IMPORTANT: Make sure you have the right kernel-devel file installed for whatever kernel you are using!!!

1. Now, create a directory in your home folder called Ndiswrapper. (mkdir Ndiswrapper)

2. Now, download the latest stable Ndiswrapper release from http://sourceforge.net/projects/ndiswrapper/
Note: if you have already tried to install it, just change to the directory where you unzipped it and run: make uninstall

3. Move the tar file into your Ndiswrapper directory and unzip it (tar -xzfv (filename))

4. Change to the new ndiswrapper directory and run: make distclean

5. If there are no errors, type:
make install KSRC=/usr/bin/kernels/<kernel version here>

6. Open the file /etc/modprobe.conf in a text editor (kwrite /etc/modprobe.conf, or gedit /etc/modprobe.conf) and add the line:
alias wlan0 ndiswrapper
to the top of the file. Make sure there is a blank line at the end of the file, save it, and exit the editor.

7. Now you need to find your window's driver (it is a .inf file). Copy this file into your ndiswrapper directory with all of the rest of the files.

8. Type: ndiswrapper -l
If there are any drivers listed, remove them with: ndiswrapper -e (driver name)
Now, type: ndiswrapper -i (driver name).inf

9. Do ndiswrapper -l and check to make sure that it lists your driver and says "driver installed, hardware present"

10. Type: depmod -a

11. Type: modprobe ndiswrapper

Now you should be ready to set up your wireless card
To do that:
1. ifconfig eth0 down (to make sure your comp is forced to use the wireless card)
2. ifconfig wlan0 up
3. iwconfig wlan0 key (key type, i.e. open) (key here)
4. iwconfig wlan0 essid (network name here)
5. dhclient wlan0

Troubleshooting:

1. I get the error message:

make -C driver install
make[1]: Entering directory `/home/stroh/Desktop/ndiswrapper-1.10/driver'
Can't find kernel sources in /lib/modules/2.6.15-1.2054_FC5/build;
give the path to kernel sources with KSRC=<path> argument to make
make[1]: *** [prereq_check] Error 1
make[1]: Leaving directory `/home/stroh/Desktop/ndiswrapper-1.10/driver'
make: *** [install] Error 2

when I try make install
Solution:
it is looking in the wrong place for your kernel sources. FC5 puts the kernel sources in /usr/src/kernels, so be sure and follow step 5 above.

2. It says I have an "invaid module format" when I type modprobe ndiswrapper
Solution:
You do not have the proper kernel-devel file installed for the kernel that you are using. Type uname -r to get your kernel version and go to http://people.redhat.com/davej/kernels/Fedora/FC5/RPMS.kernel/
and download the corresponding kernel-devel file and install it.

3. I get the message "invalid driver" when I ndiswrapper -l
Solution:
You have the wrong driver. This is most common with the bcmwl5.inf driver. Be sure to note that there is a bcmwl5 and a bcmwl5a driver. My card takes the bcmwl5a.inf file to work correctly (Dell TruMobile 1450). Also, be sure that you aren't using a .ini file.

Good luck

by kayoss717 on Tue, 2006-03-28 12:48
Ok I made one mistake. On Step 5, you need to run:
make install KSRC=/usr/bin/kernels/(your kernel directory here)

You have to make sure and add the kernel directory after /kernels. It will not work if you dont. The idea is that you are telling ndiswrapper where to look for your kernels sources, so be sure to tell it the right directory, as it is likely that there are multiple ones. To find out which kernel you are using, type uname -r.

by dlennon on Tue, 2006-03-28 17:15
what if you do not have a kernel directory under /usr/bin

by Beresford on Fri, 2006-03-31 04:12
Quote:
Originally Posted by dlennon
what if you do not have a kernel directory under /usr/bin
He made a mistake, it's actually /usr/src/kernels/<your kernel>

by mrcheesypants on Sat, 2006-04-01 18:11
OK what do you do if the kernel is not in /usr/bin or /usr/src?

I swear if I get wireless on my linux partition on my laptop, I'll learn linux.

by kayoss717 on Sun, 2006-04-02 01:44
Quote:
Originally Posted by mrcheesypants
OK what do you do if the kernel is not in /usr/bin or /usr/src?

I swear if I get wireless on my linux partition on my laptop, I'll learn linux.

Then you need to replace the /usr/bin or /usr/src part with the part where your kernel sources are. For instance, my kernel sources are in /usr/bin/kernels/[kernel name]. Unless you moved the kernel sources to another directory, or manually installed them somewhere else, this is where they should be. What happens when you try to enter the folder I mentioned, does it give you an error, or are you sure that you kernel sources are not installed there?

by paulx on Tue, 2006-04-04 23:55
Hi there,

Thanks. Finally a great step-by-step tuturial, after testing and trying others tips on the web.

I failed as exactly forseen as described in the item 2. I use out of box Fedora Core 5, download from fedora/redhat the kernel-devel-2.6.15-1.2054_FC5 (rpm kerenl-2.6.15-1.2054_FC5 installed)

Ndiswrapper-1.12 :
make rpm or make install seem fine after correcting/linking the kernel source path, but it fails at 'modprobe'

Thanks for any idea for any more things i can do to correct it.


Cheers



"2. It says I have an "invaid module format" when I type modprobe ndiswrapper
Solution:
You do not have the proper kernel-devel file installed for the kernel that you are using. Type uname -r to get your kernel version and go to people.redhat.com/davej/kernels/Fedora/FC5/RPMS.kernel
and download the corresponding kernel-devel file and install it.
"

by benthad on Wed, 2006-04-05 16:15
I'm having trouble installing the driver.

ndiswrapper -l bcmwl5a(with or without extension)

says:

couldn't copy bcmwl5a at /usr/sbin/ndiswrapper line 139.

by Freestone on Thu, 2006-04-06 07:37
I was having the same problem but discovered why it wasn't working.

My ndiswrapper directory for now is: /temp/ndiswrapper-1.11
The directory for the drivers is : /ndis
/ndis is where I placed bcmwl5a.inf, bcmwl5.inf, etc.

To install the drivers, make sure you tell ndiswrapper where the drivers are located.
So what I used is the following: ndiswrapper -i /ndis/bcmwl5.inf
Make sure when you attempt to install the drivers that you tell ndiswrapper the directory of where the drivers are at.
You can put the drivers in your ndiswrapper-1.11(or whatever version you are using)directory,
just be sure to tell ndiswrapper that they are there. Ex: ndiswrapper -i /ndiswrapper-1.11/bcmwl5.inf
After you install them, make sure that they are installed with the ndiswrapper -l command. That is a lower case l, not the number one.

Hope you have success.
Freestone

by matt1206 on Thu, 2006-04-06 14:58
Hi,

I've having truouble getting this to work. I've installed the latest kernel and kernel-devel, but when I run the make install KSRC.... I get the below error:

Code:
[root@localhost ndiswrapper-1.12]# make install KSRC=/usr/src/kernels/2.6.16-1.2084_FC5-i686
make -C driver install
make[1]: Entering directory `/home/Ndiswrapper/ndiswrapper-1.12/driver'
make -C /lib/modules/2.6.16-1.2084_FC5/build SUBDIRS=/home/Ndiswrapper/ndiswrapper-1.12/driver \
        DRIVER_VERSION=1.12
/usr/src/kernels/2.6.16-1.2084_FC5-i686/scripts/gcc-version.sh: line 11: gcc: command not found
/usr/src/kernels/2.6.16-1.2084_FC5-i686/scripts/gcc-version.sh: line 12: gcc: command not found
make[2]: gcc: Command not found
make[2]: Entering directory `/usr/src/kernels/2.6.16-1.2084_FC5-i686'
  LD      /home/Ndiswrapper/ndiswrapper-1.12/driver/built-in.o
/bin/sh: ar: command not found
make[3]: *** [/home/Ndiswrapper/ndiswrapper-1.12/driver/built-in.o] Error 127
make[2]: *** [_module_/home/Ndiswrapper/ndiswrapper-1.12/driver] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.16-1.2084_FC5-i686'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/Ndiswrapper/ndiswrapper-1.12/driver'
make: *** [install] Error 2
Can anyone point out where I'm going wrong?

Thanks

Matt

by matt1206 on Thu, 2006-04-06 17:37
Quote:
Originally Posted by matt1206
Hi,

I've having truouble getting this to work. I've installed the latest kernel and kernel-devel, but when I run the make install KSRC.... I get the below error:

Code:
[root@localhost ndiswrapper-1.12]# make install KSRC=/usr/src/kernels/2.6.16-1.2084_FC5-i686
make -C driver install
make[1]: Entering directory `/home/Ndiswrapper/ndiswrapper-1.12/driver'
make -C /lib/modules/2.6.16-1.2084_FC5/build SUBDIRS=/home/Ndiswrapper/ndiswrapper-1.12/driver \
        DRIVER_VERSION=1.12
/usr/src/kernels/2.6.16-1.2084_FC5-i686/scripts/gcc-version.sh: line 11: gcc: command not found
/usr/src/kernels/2.6.16-1.2084_FC5-i686/scripts/gcc-version.sh: line 12: gcc: command not found
make[2]: gcc: Command not found
make[2]: Entering directory `/usr/src/kernels/2.6.16-1.2084_FC5-i686'
  LD      /home/Ndiswrapper/ndiswrapper-1.12/driver/built-in.o
/bin/sh: ar: command not found
make[3]: *** [/home/Ndiswrapper/ndiswrapper-1.12/driver/built-in.o] Error 127
make[2]: *** [_module_/home/Ndiswrapper/ndiswrapper-1.12/driver] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.16-1.2084_FC5-i686'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/Ndiswrapper/ndiswrapper-1.12/driver'
make: *** [install] Error 2
Can anyone point out where I'm going wrong?

Thanks

Matt
I managed to sort this by installing binutils and gcc. I've now got the problem that I can connect to my router, but can't get external connection


  



All times are GMT -5. The time now is 02:04 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration