dreadedmonkeygod . net

Wireless Mandrake

I'm getting ready to upgrade my main computer from SuSE 9.0 to Mandrake 10.0, using my "backup machine" as a testbed. I couldn't get Mandrake's installation system to set up my wireless card for me, so I had to do it myself.

Really, this is just me taking a moment to thank the girl/guy who put together this wiki posting on how to get a D-Link DWL-G520 running under Mandrake. The instructions are complete and correct, and had my wireless card working in just a few minutes. (Once I recompiled my kernel, which I'm not sure I had to do...whups.) Read on for the full text of the instructions, just in case that link goes dead.

Obviously this is taken from other people's work. However, I had to do some work of my own to put this whole process together, based on the instructions other people provided for slightly different situations. Thanks to other wiki contributors, mailing list participants and other random people whose stuff I found by googling.

This is a thorough walkthrough geared towards the very newbie user. Yes, I know some stuff should go unsaid. Also I wanted this to essentially be a shell script. I've done this on two identical machines now, one with a Rev. B card and one with Rev. A2. I will be doing this on about 5 more identical machines in the next week, and I'll update if I come across a Rev. A1 card.

Note that this CVS source grab was around 26 May 2004. Hopefully nothing will break in the future!

Fresh install of Mandrake 10.0 Official, Download version (i586, 3 CDs). My procedure was to put the entire machine together (including the DWL-G520) and install Mandrake, completely ignoring the card through the entire install process but still having it in the machine. (Mandrake will prompt you on bootup if you've added some new hardware.... I think this screwed me up once when I tried to configure the wifi card through Mandrake's automated procedure. Then again, it might have just been voodoo.) Then, after installation, I run through the following.

1) retrieve madwifi driver source:

cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/madwifi co madwifi

2) switch to root!

su

3) install linux kernel source from CD (Install CD 3):

urpmi kernel-source

4) install wireless tools (Install CD 1):

urpmi libiw wireless-tools

5) create link madwifi will require to compile:

ln -s /usr/src/linux-2.6.3-7mdk/ /lib/modules/2.6.3-7mdk/build

6) install madwifi:

cd madwifi
make clean
make
make install

7) create /etc/sysconfig/network-scripts/ifcfg-ath0 :

echo "
STARTMODE=hotplug
DEVICE=ath0
BOOTPROTO=dhcp
NETMASK=255.255.255.0
ONBOOT=yes
WIRELESS=yes
WIRELESS_MODE=Managed
WIRELESS_ESSID=(your ssid here)
#WIRELESS_ENC_KEY=(your wep key here)
WIRELESS_RATE=54M
WIRELESS_IWPRIV=mode 3
MII_NOT_SUPPORTED=yes
" > /etc/sysconfig/network-scripts/ifcfg-ath0

NOTES ON THIS STEP:

a) for ssid: put "any" if the machine will be using many access points and/or your AP brodcasts the ssid.

b) If you use WEP, put the WEP key in there and uncomment that line (delete the #).

c) The hotplug might not be necessary, but it works. I'm not sure what the opposite of hotplug would be. Static?

8) change permissions on ifcfg-ath0 (not sure if it's completely necessary but hey, we want all the scripts in that directory to look the same, right?):

chmod 755 /etc/sysconfig/network-scripts/ifcfg-ath0

9) put "'alias ath0 ath_pci'" into /etc/modules.conf and /etc/modules and /etc/modprobe.conf. (I think only one of these is really necessary, but I'm not sure which one. /etc/modules is likely unnecessary.)

echo "alias ath0 ath_pci" >> /etc/modules.conf
echo "alias ath0 ath_pci" >> /etc/modules
echo "alias ath0 ath_pci" >> /etc/modprobe.conf

10) run depmod depmod

11) Now I usually reboot, although it should work by running "ifconfig ath0 up" or some such. Make sure your wireless router or access point will give out a dhcp address! (I was going nuts the other night trying to get this to work before I realized that the router had hung up and needed to be rebooted.) Also you will want to unplug your wired ethernet so that you can make sure it's all working.

Post a Comment

New Rules: Unfortunately, I've had to do some things to mitigate the impact of spammers. So, your comment will take up to an hour to appear.

Name:
Email (Never, ever displayed.)
URL:
Remember me next time.
Comments (Sorry, no HTML allowed. Space paragraphs with a blank line.):