| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
|
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
|
|
|
|
All times are GMT -5. The time now is 01:43 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|
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.
I swear if I get wireless on my linux partition on my laptop, I'll learn linux.
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?
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.
"
ndiswrapper -l bcmwl5a(with or without extension)
says:
couldn't copy bcmwl5a at /usr/sbin/ndiswrapper line 139.
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
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:
[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 2Thanks
Matt
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:
[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 2Thanks
Matt