Fedora
From NdisWrapper
Contents
[hide]
* 1 Kernel headers
* 2 4k kernel stack size/freezing issue
* 3 How to make an RPM
* 4 Successful Fedora Core 3 configuration
* 5 Successful Fedora Core 4 configuration
* 6 Configuration using Network Manager
* 7 Configuration using script system
o 7.1 Using ethX as interface name
o 7.2 Using wlan0 as interface name
[edit]
Kernel headers
On Fedora, the kernel source is at /usr/src/kernels/<kernel-version>. If it doesn't exist, please install package kernel-devel:
yum install kernel-devel
Sometimes you have to symlink the modules directory to this directory:
ln -s /usr/src/kernels/<kernel-version> /lib/modules/<kernel-version>/build
[edit]
4k kernel stack size/freezing issue
Recent 2.6 kernels have an option to enable/disable 4k stack size. However, Fedora kernels disable this option altogether and use a 4K stack size, which is not enough for some windows drivers. If you are running a Fedora 2.6 kernel and your machine freezes after running modprobe ndiswrapper as described in the Installation page, you are probably using a driver that requires a stack sizegreater than 4K. Try installing the 16K stack kernel update fo Linuxant :
* Fedora Core 2/i686:
http://www.linuxant.com/driverloader...ernel-i686.php
* Fedora Core 2/i586:
http://www.linuxant.com/driverloader...ernel-i586.php
* Fedora Core 3/i686:
http://www.linuxant.com/driverloader...ernel-i686.php
* Fedora Core 3/i586:
http://www.linuxant.com/driverloader...ernel-i586.php
* Fedore Core 4/i686:
http://www.linuxant.com/driverloader...ernel-i686.php
* Fedore Core 4/i586:
http://www.linuxant.com/driverloader...ernel-i586.php
Installing will take approx. 15 minutes depending on computer and network
Most users will want to download the complete kernel RPM and install it using rpm -Uhv as root. Advanced users may want to use the patch instead, or try compiling a vanilla kernel (from
http://www.kernel.org) and disabling 4K stack size (CONFIG_4KSTACKS).
[edit]
How to make an RPM
If you can't find a nice, tidy RPM of ndiswrapper to download, you can very easily make yourself one, even if you've never made an RPM before and wouldn't know where to start.
It is recommended that you build all RPMs using a separate, non-root account. You can build the ndiswrapper RPM as root and you will probably be fine, but doing anything as root has it's inherent risks. If you wish to build the ndiswrapper RPM using a non-root account, follow the "Creating your environment" instructions at
http://erizo.ucdavis.edu/~dmk/notes/...ting_RPMs.html.
To create the ndiswrapper RPM, download the .tar.gz file as normal, following the Installation instructions. But instead of running "make install", run "make rpm". This will create some RPMs, the location of which will appear towards the end of the output from the "make rpm" command. Look for lines that begin with "Wrote:" (hint: if you built the RPM as root, they will be in a subdirectory of /usr/src/redhat/RPMS/).
Another method to build the rpms is "rpmbuild -ta ndiswrapper-1.1.tar.gz".
Once you have located the RPMs you just built, install them as normal using "rpm -Uvh". This is highly recommended, as it makes it easy to uninstall or upgrade ndiswrapper, and generally keeps your system tidy and easy to maintain.
[edit]
Successful Fedora Core 3 configuration
* November 25, 2004 -- Successful use of a D-Link Air Plus DWL-G630 has been reported on a Fujitsu Lifebook C series running Fedora Core 3 with the Linuxant 16K kernel patch. After downloading and installing the 16K stack kernel RPM from Linuxant and installing ndiswrapper according to the installation instructions on the Installation page, running dhclient established a working IP connection on wlan0. See the Air Plus page for details.
* November 28, 2004 -- Successfully loaded on a Thinkpad T40 Centrino laptop, same configuration as above.
* December 17, 2004 -- Successfully configured a Belkin 54g F5D7010 (802.11g 32-bit Card Bus) on Fedora Core 3. It seems best to add "options ndiswrapper if_name=eth1" and then "alias eth1 ndiswrapper" (as described below) to /etc/modules.conf first, then run "modprobe ndiswrapper" as per the Installation instructions. After that, I had much better luck using the Network "System Settings" GUI (run "system-config-network" on the command line) than editing ifcfg-eth1 manually, as recommended below. I did not have any kernel stack problems, but I did need to use the Win Me98 (bcmwl5a.inf) driver (not WinXP2K/bcmwl5.inf). I happened to have the windows driver installation CD from the manufacturer but the others mentioned for download for various Belkin 54g variants on the drivers List page might work. Tip: The "unzip" command under Linux can open Windows Self-Extracting Archive (.EXE) files. -- Beland P.S. - This configuration stops working if I upgrade past ndiswrapper-1.0rc4 or kernel-2.6.9-1.681_FC3. Debugging details sent to mailing list.
* December 17, 2004 -- Successfully configured a Netgear WG311v2 using the Netgear WinXP driver from the CD on Fedora Core 3, ndiswrapper 0.12 and the 16K stack kernel update from Linuxant. The system works fine and is stable, though in B-mode (11mbps). Created a /etc/modules file with the module but the system does not load it. Wonder why?
* December 20, 2004 -- Succesfully configured a Gericom Wireless Card (unnamed, but with a Trend Net Chip - pciid 104c:8400) using the tiacxln driver version 3.0.0.1 (downloaded from download.gericom.com) and ndiswrapper 0.12. The kernel used was the default Fedora Core 3 kernel, version 2.6.9-1.681_FC3 with only 4K stack. When compiling using "make install" and issuing "modprobe ndiswrapper" I had an "ndiswrapper: Unknown symbol __copy_from_user_ll" error message. The solution was going to the source directory with "cd ndiswrapper/driver", compiling it with "make" and copying the file to the correct place with "cp ndiswrapper.ko /lib/modules/2.6.9-1.681_FC3/misc/". I didn't have the time to check why this happens, but it works fine. The configuration was done with /etc/modprobe.conf like above.
* December 21, 2004 -- Succesfully configured an INPROCOMM IPN 2220 in an Acer Aspire 1363WLMi. Default kernel with 4K stack used. Nothing unusual happened but WEP/WPA untested so far. (using ndiswrapper 0.12)
* December 22, 2004 -- Successfully configured a Compaq Presario 2108CL (Broadcom) laptop using same configuration as aboves. Used default kernel with 128-bit WEP, no kernel stack problems. Driver provided on the HP support site. --Metababble
* December 24, 2004 -- Sucessfully configured a Linksys WUSB54Gv2. The only place the version is listed is on the bottom of the device. Used drivers supplied with device. Used default kernel with 128-bit WEP.
* December 24, 2004 -- Sucessfully configured a D-Link Air Plus DWL-G630 (Rev. C2) with 128-bit WEP on a IBM !Think Pad T23 dual-booting Fedora Core 3 (2.6.9-1.681_FC3) and Windows XP Pro, using ndiswrapper 0.12, the WinXP driver (Ver. 3.00, downloaded from
http://support.dlink.com/products/vi...L%2DG630%5Frev C) and the 16K stack kernel update (2.6.9-1.681_FC3.stk16) from Linuxant. Rebuilt and reinstalled the Linux NTFS kernel module RPM in accordance with the kernel update by using the 16K stack kernel source (kernel-2.6.9-1.681_FC3.stk16.src.rpm) from Linuxant and following the instructions at
http://linux-ntfs.sourceforge.net/rpm/build.html.
* January 2, 2005 -- Successfully configured a Linksys WPC54G Version 1 (Broadcom) with 128-bit WEP on a IBM Thinkpad A31 with Fedora Core 3 (2.6.9-1.681_FC3) using ndiswrapper 0.12 and the XP driver from Dell downloads mentioned in the card List. Did not need the stack kernel update. UPDATE: January 4, 2005 -- new production 2.6.9-1.724FC3 kernel with production ndiswrapper 0.12 suffers from tasknice problems mentioned in
http://www.linuxdeveloper.net/forum/...438#post148438 and
https://sourceforge.net/mailarchive/...forum_id=36471. UPDATE: February 2, 2005 -- the production kernels for 2.6.10.741_FC3 and 2.6.10.760_FC3 have addressed the task_nice problem and everything works again for the above explained configuration.
* January 9, 2005 -- Successfully configured a D-Link Airplus DWL-G650+ with 256-bit WPA on an IBM Thinkpad T22. Used Fedora Core 3 (2.6.9-1.681_FC3.stk16), ndiswrapper 0.12, XP drivers from
ftp://ftp.dlink.co.uk/wireless/dwl-g650+_rev_Bx and WPA supplicant from
http://hostap.epitest.fi/wpa)supplicant, using version 0.2.6.
* January 11, 2005 -- Successfully configured a Linksys WMP54G-UK (Broadcom BCM4306 chipset) with 64-bit WEP on Fedora Core 3 (2.6.9-1.667 using ndiswrapper v0.10, 2.6.10-2.1.ll.rhfc3.ccrma using ndiswrapper v0.12 (wouldn't compile with v0.10 or v1.0rc1 on planet ccrma fc3 kernel). Used Linksys windows driver in /WMP54Gv2/bcmwl5.inf extracted from
ftp://ftp.linksys.com/pub/network/WMP54Gv4_20040415.exe .
* January 31, 2005. My Topcom Skyr@cer PCI 154G now works fine with Fedora core 3 + ndiswrapper 1.0. I used the stock kernel 2.6.10.741_FC3 (no kernel recompilation). The drivers was downloaded from
www.topcom.net, I used the win2k windows drivers from file 154G-drivers.zip i found there. Also, the /etc/modprobe.conf stuff above has made it possible to handle the device through the standard system-config-network.
* February 19, 2005: John Graham-Cumming (jgc AT jgc.org): Installed ndiswrapper (1.0) under Fedora Core 3 (2.6.10-1.766_FC3 Kernel) to activate the Broadcom BCMW15 chipset in my Fujistu C2220 laptop. No need for large stacks; used configuration data in next section to get this working with Fedora Network configuration tool.
* February 21, 2005: David@My Forest.Com: Compiled ndiswrapper-1.0 from source and used Broadcom BCMW15 driver to run a Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller (rev 03) with kernel 2.6.9-1.667 (Fedora Core 3 - no stacks tweaks). It does seem to hammer the CPU when doing large transfers so I only get about 1.8MB/s (which is about 50% better than ndiswrapper-0.11).
* March 27, 2005: George Brooks (truckeetrout AT yahoo.com) Successfully configured ndiswrapper-1.1 on Fedora Core 3 (2.6.10-1.766_FC3 Kernel)on an HP nx9010 laptop with Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller (rev 02). Previous kernel (2.6.9-1.667) gave segmentation fault when configuring WEP key. Learned the Broadcom driver is BCMWL5.INF.
* April 10, 2005: Neil Mather (ngmatherATgmailDOTcom): Successfully configured ndiswrapper-1.1 on Fedora Core 3 (2.6.10-2.1.ll.rhfc3.ccrma) with a 3Com Office Connect 3CRWE154G72 PC Card (later revision which no longer works with prism54). Using drivers provided on the CDROM that came with the card (disc is marked VERSION 4.0 April 2004). Didn't work immediately work--you have to first deactivate prism54 driver (try modprobe -r prism54, followed by ndiswrapper.) To stop prism54 being loaded before ndiswrapper when booting up, add 'alias prism54 off' to /etc/modprobe.conf. I also have alias wlan0 ndiswrapper in modprobe.conf, and created the file 'ifcfg-wlan0' under /etc/sysconfig/network-scripts/ as suggested below. I use Network Manager, so have disabled the 'network' service and enabled the Network Manager service to load at bootup. Then get Network ManagerInfo to load automatically when your window manager starts, and you have complete automation. 128-bit WEP works, configured through Network ManagerInfo.
* May 30, 2005: Andrew Grothe (agrotheATgmailDOTcom): Successfully configured D-link DWL-G650 H/W ver:B4, F/W Ver:2.42 using ndiswrapper-1.1 on Fedora Core 3 Kernel: 2.6.9-1.667. Installed Fedora Core 3/i686:
http://www.linuxant.com/driverloader...ernel-i686.php I originally had the i386 and replaced with the i686 16k stack kernel above. Fedora's path seamed to trip me up for while. I think it may be SElinux. I had to add /sbin and /usr/sbin to my path to avoid moving back and forth between the dir's to get all the utils to run. WEP enabled.
* Reggie Braswell(reggman@gmail.com) Successfully installed FC3 and Linksys WMP54G v4 which has the Ralink 2500. MAKE SURE YOU HAVE GREAT SIGNAL STRENGTH ON A CERTAIN CHANNEL IN WINDOWS SO YOU KNOW WHAT TO USE IN YOUR ifcfg-wlan0 FILE! ARRGHHH...I tried the serial monkey port with extreme issues (30 hours and no luck). I did a base FC3 load. I ran a yum update and then I installed the linuxant fc3 kernel (using SMP, but installed both) from
http://www.linuxant.com/driverloader...ernel-i686.php. Once that was done I installed the source from the same location and did a
rpmbuild -bp --target=noarch /usr/src/redhat/SPECS/kernel-2.6.spec
upon completion. I then tar'd off the ndiswrapper to /opt and make then make install. iwconfig showed up fine. I added:
options ndiswrapper if_name=wlan0
alias wlan0 ndiswrapper
to /etc/modprobe.conf
Then created /etc/sysconfig/network-scripts/ifcfg-wlan0 and added:
# NDIS Wrapper Configuration: Linksys WM5P54G
DEVICE=wlan0
ONBOOT=yes
BOOTPROTO=static
TYPE=Wireless
MODE=Managed
ESSID=ICECAP
CHANNEL=3
IPADDR=192.168.70.124
DOMAIN=
NETMASK=255.255.255.0
GATEWAY=192.168.70.120
USERCTL=no
PEERDNS=no
IPV6INIT=
RATE=Auto
HWADDR=00:0F:66:ED:58:87
Then added this to /etc/rc.d/rc.local
/sbin/modprobe ndiswrapper
Done! Works.
* September 19, 2005: Michael Wang (mwang25ATgmailDOTcom): Successfully configured Netgear WG511 PCMCIA card with ndiswrapper1.3rc1 and the linuxant 16k-stack kernel (default fc3 kernel will not work.) Used 104bit WEP key. Used Netgear driver 2.1.25, dated 9/6/2004. I had to remove the file at /lib/modules/2.6.9-1.667.stk16/kernel/drivers/net/wireless/prism54/prism54.ko. Otherwise, the prism54 module gets automatically loaded by the OS, which interferes with the ndiswrapper module.
* October 3,2005: Rob Byrne : 2.6.10-1.770_FC3, Dell Inspiron 9100, Broadcom 4309 802.11b/g. ndiswrapper 1.4rc3. Some compile errors related to usb resume/suspend which I just comented out (apparently this is fixed by using a later kernel...). Dell calls this card the "1450 mini PCI card". The drivers are hereabouts:
http://support.dell.com/support/downloads/ You drill down into the network section..I ended up taking the drivers marked "1370" (R94825.EXE)...it says it supports most of the others. As with others, the basic instructions combined with the "System Settings"->Network tool worked out fine.
[edit]
Successful Fedora Core 4 configuration
* June 16, 2005: Simon Clift (sscliftATmathDOTuwaterlooDOTca): Compaq Presario 3120CA with Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller. Kernel: 2.6.11-1.1369_FC4. This is a plain installation of Fedora Core 4 with kernel option i8042.nomux (to activate the touch pad) plus the kernel-devel RPM installed (apparently not in some default installations). I built ndiswrapper 1.2 RPM's with rpmbuild, installed them then obtained the Windows XP drivers from Compaq/HP at the [Broadcom WLAN Network Adapters Driver Compaq Presario R3120CA Notebook PC] page (archive file SP30379.exe ) which I extracted with cabextract. I followed the Installation page instructions using the bcmwl5.inf and companion files extracted from SP30379.exe.
* September 2, 2005: Michael Doube (mdotdoubeatqmuldotacdotuk): Acer Aspire 3023WLMi with Broadcom Corporation BCM4318 802.11b/g Wireless LAN Controller. Fedora Core 4 with a vanilla kernel version 2.6.12-1.1398_FC4. Similar options to Simon's above (thanks for the i8042.nomux tip BTW); ndiswrapper v1.3rc1 built as RPM; Windows drivers bcmwl5.inf from Acer-Europe (80211g.zip) [Aspire 3020 drivers]; acerhk v0.5.27 compiled and loaded with
/sbin/modprobe acerhk autowlan=1 poll=0 force_series=5020 verbose=3 usedritek=1;
echo 1 > /proc/driver/acerhk/wirelessled
card activated in the Network Configuration GUI.
* September, 28, 2005: Anders Gjendem (ndiswrapperatgjendemdotnet): 3Com 3CRWE254G72 USB 54mbit 802.11b/g dongle. Kernel: 2.6.12-1.1447_FC4. Ndiswrapper RPM from Livna (v1.2). Used the drivers mentioned in the List (3COM 3CRWE254G72_03Feb04.exe -> 3c254g50.sys, 3c254g51, 3c254g72.inf). Followed the main Installation instructions beginning with "Install Windows driver". After I got it working, and had exported setup to modules.conf, I used the system-config-network utility -> New -> Wireless -> "ndiswrapper (wlan0)" and so on to set it up easier to manage, just as any other ethernetcard.
* October, 14, 2005': Fluto Leong : Aspire 3003NLCi AMD-Sempron 3000+, WLan-Broadcom 94318 driver BCMWl5.inf, Fedora Core 4 (kernel version 2.6.11-1.1398-16ksmp), Ndiswrapper 1.2 (***Version 1.4 don't work, it hang my o/s when modprobe ndiswrapper but fine for version 1.2). The only flaw is my ndiswrapper's status is "configure" (not as usual "ok") in the network configuration > hardware. Anyway it function well. Many Thanks the guide from above. Will help if u email me:
ffluto@yahoo.com.cn "I love Linux-Fedora"
[edit]
Configuration using Network Manager
As an alternative to the traditional script-based network configuration system, Fedora Core 3 comes with Network Manager. The new system is designed to automatically connect a moving computer to various wireless networks, or to prefer a wired connection if one is available. It is mutually incompatible with the traditional system, so in order to use it, you must do something like service network stop to stop the network service (KDE based) then service NetworkManager start to start the Network Manager service (gnome based)
When done, run NetworkManagerInfo & as a normal user to add the applet to your desktop's panel. The applet will allow you to see what networks are available and how strong a signal you are getting, choose a network (automatically or manually), and will prompt you for keys and passwords for encrypted networks.
To make the NetworkManager icon return every time you log in, enter the following in a terminal: gnome-session-save
As of the end of January 2005, Network Manager[1] is still a little rough around the edges; it hasn't yet reached 1.0[2]. But some users may prefer it for its ease of use and simple setup.
[edit]
Configuration using script system
[edit]
Using ethX as interface name
Because the graphical Fedora configuration tools don't recognize wlan0, you can reconfigure ndiswrapper to use an ethX interface. If your eth0 interface is already configured for ethernet, you would use eth1.
Assuming you are going to be using eth1 as your wireless interface, add these two lines to the end of your /etc/modprobe.conf file to set your device to use eth1 instead of wlan0 :
options ndiswrapper if_name=eth1
alias eth1 ndiswrapper
Also, if you want to use the Fedora configuration tools, you need to set up your /etc/sysconfig/network-scripts configuration file (/etc/sysconfig/network-scripts/ifcfg-eth1 for eth1):
IPV6INIT=no
ONBOOT=no
USERCTL=yes
PEERDNS=yes
GATEWAY=
TYPE=Wireless
DEVICE=eth1
HWADDR=
BOOTPROTO=dhcp
NETMASK=
DHCP_HOSTNAME=
IPADDR=
DOMAIN=
ESSID=cuairnet
CHANNEL=1
MODE=Managed
RATE=54Mb/s
Alter your configuration details accordingly.
Finally, put your WEP keys in the /etc/sysconfig/network-scripts/keys-eth1 file (again assuming eth1):
KEY=XXXXXXXXXXXXXXXXXXXXXXXXXX
With all the above, you should be able to use neat or ifup/ifdown to control your ndiswrapper-enabled wlan card in Fedora. Much of the information was borrowed from
http://www.ces.clemson.edu/linux/fc2-2200BG.shtml which I used to successfully get the Dell 1350 internal wireless card working in FC2 with the stock kernels.
[edit]
Using wlan0 as interface name
You can manually create the files in the appropriate folders in /etc/sysconfig/networking and /etc/sysconfig/network-scripts, naming them ifcfg-wlan0 if you prefer. The Red Hat tools will not let you create the files from the GUI that way, but manually it works. This works well because all docs refer to "wlan0", and then the Fedora scripts can be used to set permissisons, and activate and deactivate the wlan0 interface.
Example:
DEVICE=wlan0
BOOTPROTO=dhcp
ONBOOT=yes
TYPE=Ethernet
DHCP_HOSTNAME=machine.hostname.com
USERCTL=no
PEERDNS=yes
IPV6INIT=no
HWADDR=00:00:00:00:00:00
MODE=Managed
ESSID=yourEssid
Retrieved from "http://ndiswrapper.sourceforge.net/mediawiki/index.php/Fedora"
Views
* Article
* Discussion
* Edit
* History
Personal tools
* Create an account or log in
Navigation
* Main Page
* Community portal
* Current events
* Recent changes
* Random page
* Help
* Donations
Search
Toolbox
* What links here
* Related changes
* Special pages
* Printable version
Sourceforge.net Logo
MediaWiki
* This page was last modified 10:19, 4 December 2005.
* This page has been accessed 26,204 times.
* About NdisWrapper
* Disclaimers