Netgear WG511 v2 made in China on Fedora Core 4

Tuesday, November 01, 2005

I have been in Germany for nearly 2 months without a steady internet connection. This changed today. To spare the reader the pain of explaining exactly what I have tried and failed (rest assured, it was quite a bit) I'll cut to the chase and share with the world how I got it working. ($ means issued as a user, and # means issued as root).

1. 16K stack


The stock 2.6 kernels provides the option to disable the 4K stack. Fedora's kernel does not. This means that in order to use most Windows drivers I had to download a kernel that would support a larger stack. This I found here: http://www.linuxant.com/driverloader/wlan/full/downloads-fc4-kernel-i686.php
In order to get ndiswrapper working you'll need to download the kernel and the development rpms, and after decompressing them install with:

# rpm -Uvh kernel-*.stk16.i*86.rpm 


Now reboot into your shiny new kernel and you're ready for the next step.

2. ndiswrapper


Simply download the latest version of ndiswrapper from: http://sourceforge.net/projects/ndiswrapper.
Inflate and extract the crap out of that tarball with:

$ tar xzvf ndiswrapper*.tar.gz


cd into the newly created ndiswrapper directory and build the executable:


$ make distclean
$ su
password: yourrootpassword
# make
# make install

3. Drivers


If you haven't done so thus far, examine your card and try to figure out the manufacturer and the card type (in my case it was a Netgear WG511 v2 specifically made in China, normally this isn't important but for some reason Netgear wanted to put a different chipset in the cards made in China versus the cards made in Taiwan). Once you know what kind of card you have find it in the list at: http://ndiswrapper.sourceforge.net/mediawiki/index.php/List.
Unzip the archive and you're ready for the next step...

4. Configuration


Next you need to tell ndiswrapper which driver to use. Simply cd into the directory where you extracted your drivers, and give your computer one of these:


# /usr/sbin/ndiswrapper -i yourwirelesscard.inf
# /sbin/depmod -a
# /sbin/modprobe ndiswrapper


Now you want to see if everything went okay, a good sign is if the lights on your wireless card are blinking. A more accurate indication is if you get some reasonable output from:


# /sbin/iwconfig


Next you can scan the wireless channels for available access points with:


# /sbin/iwlist wlan0 scan


If your Access point doesn't broadcast the SSID, check here for some help. Otherwise give your computer some of these:


# /sbin/iwconfig wlan0 mode Managed


If you have yourself a WEP key


# /sbin/iwconfig wlan0 key restricted XXXXXXXX


Where XXXXXXXX is your key. Next you want to pick out which network you want to connect to using one of the results from the wlan scan.


# /sbin/iwconfig wlan0 essid YOURESSID


Now let's get that baby an IP address with:


# /sbin/ifconfig wlan0 up
# /sbin/dhclient wlan0


And finally you should be good to go. If everything works okay save the configuration to wlan0 with


# /usr/sbin/ndiswrapper -m


I hope this helps someone somewhere. If you followed my instructions and still can't get it to work, try the guys who wrote ndiswrapper at http://ndiswrapper.sourceforge.net/mediawiki/index.php/Main_Page.

enjoy!

Labels:

5 Comments:

Anonymous Jeff said...

Well, I'm disappointed that this didn't involve some kind of Engrish, but nonetheless, very good.

8:40 AM  
Anonymous Thom said...

I hope your root password really is yourrootpassword.

11:42 AM  
Anonymous Visionary lady said...

Yeah! ITs just me! Just said I'd try to liven up your little bit of webspace with another one of my very lovely little notes that Im quickly growing quite used to leaving! And your probably getting used to seeing!!!! So! When are you going to put up more piccys on your little w.space??Coz I want more piccys please! And in good manners,I must ask how your day was? was it just another day in the life of Eric??Or did anything interesting happen????
Well, better go, spose ill be seeing you here and there (as per usual!!!)
Slan abhaile!!!!(for now!!!)
pS:How come we cant out smileys in our notes anymore? I miss the smileys and I want them back!!!! Im begging you!"!!

4:57 AM  
Anonymous Administrator said...

@Thom: Shut up dude, do you want to get me hacked?!?

@Visionary Lady: Hold your horses! Pics are on their way.

7:07 AM  
Anonymous Teran said...

Works great! Nicely done. I haven't got it to setup to load at startup yet, but I'll get that done. I just am thankful I'm able to connect to WEP networks at 54Mbps!!!

10:49 PM  

Post a Comment

Subscribe to Post Comments [Atom]

<< Home