Please note: This project is no longer active. The website is kept online for historic purposes only.
If you´re looking for a Linux driver for your Atheros WLAN device, you should continue here .

What is this page for? To teach you how to install madwifi on Mandrake/Mandriva Linux. Or in other words, this is a guide to get your wireless card working on Mandrake/Mandriva Linux.

To tell the truth, there are actually two guides on this page. Both accomplish the purpose of installing madwifi. Only choose one guide to use and remember which guide you are using.

Guide one, by Graham This guide is extremely well written, and very easy to use. If you’re new to linux, and you just want to get your wireless card working on mandrake/mandriva linux, I suggest you read this guide and follow the instructions carefully.

Guide two, by Hugo Chasquiree This is slightly more terse and uses a slightly different method to install the driver.

Guide One

A guide to installing madwifi on Mandrake Linux, as written by Graham Thanks for writing this, Graham!

Right. Well this is going to be a baptism of fire! You should really treat this as a last resort in cases where there’s no easier way. You could easily mess up your system.

You basically need to install the kernel-source, download the drivers, compile then install them. I’ll try and break it down into small steps, but, if you run into any problems it could get messy.

Firstly, you need to install the kernel source. Without wanting to state the obvious, your kernel is the heart of your Linux system, and Mandriva/Mandrake’s kernel is pre-compiled from this source code, including drivers. The Madwifi driver is a module that connects to the kernel, which is why it needs the kernel source code when we compile it. From a console, switch to root, and enter the following to install the kernel source, the compiler and the cvs client:

urpmi kernel-source gcc cvs  

You can also accomplish the same thing (installing the gcc compiler, the cvs client, and the kernel source) from Mandrake’s control center. It’s fairly large… but if you insist on not using the console here, go into the control center, go to the tab “software management” and click the “install” icon.

If in the console, you got the message like ‘gcc can be installed from the following packages:’ instead of anything happening, click here. If the files installed, or were already installed, continue on. Next step is to download the Madwifi drivers. You’re going to need to connect to the internet for this. If you have a cable connection at home, just connect directly to the modem or wireless hub. There isn’t a package to download, so we need to get the drivers from the development repository. See UserDocs/GettingMadwifi for info.

cd madwifi 
sudo make install 

As mentioned in my first message, this has placed the drivers in /lib/modules/2.6[VERSION]mdkcustom/net. VERSION should look something like ‘.11-6’, We need to move the files to /lib/modules/2.6[VERSION]mdk/. For me, I would use:

cp -rf /lib/modules/2.6.11-6mdkcustom/net/* /lib/modules/2.6.11-6mdk/kernel/net/ 

But you may need to change the version number to match your installed kernel (go into /lib/modules/ yourself to find out what kernel you’re working with). The final step is to make sure the driver is automatically loaded. The following command appends the right line to the module configurating script:

cp /etc/modprobe.conf /etc/modprobe.conf_backup 
echo "alias ath0 ath_pci" >>/etc/modprobe.conf 
depmod -a 

Finally, load the driver:

modprobe ath_pci 

You should then be able to configure your wireless card from Mandrake’s control center. Good Luck!!!

Guide Two

Another guide to installing madwifi on Mandrake Linux, this one written by Hugo Chasqueiree from Portugal

Here’s how I did it in Mandrakelinux 10.0, it should apply to 10.1, though I didn’t test it.

First download madwifi-cvs-current.tar.gz and extract it:

user@machine:/home/user/$ tar xvzf madwifi-cvs-current.tar.gz 

You have to install certain packages as root before you can compile the module (don’t worry, nothing will happen if the packages are already installed):

user@machine:/home/user/$ su -
root@machine:/root/# urpmi kernel-source gcc

Then compile, install and load the module:

root@machine:/root/# cd /home/user/madwifi
root@machine:/home/user/madwifi/# KERNELRELEASE=`uname -r` make
root@machine:/home/user/madwifi/# KERNELRELEASE=`uname -r` make install
root@machine:/home/user/madwifi/# modprobe ath_pci

At this moment, Mandrakelinux recognizes the card as any other card it usually supports. You can go to drakconf (aka ‘Mandrake Control Center’ in Graphical User Interface land) and configure it in the network section.

The aditional bonus of doing it that way, is that you get configure the parameters of the card, choose if it starts on boot or not and all the config files are created for you to hack later.

On Mandrake 10.1, I did not have success running ‘ifconfig ath0 up’, but running ‘ifup ath0’ made everything work.

Appendix (Having trouble installing the necessary packages?)

If when you tried the command in the console, you got a message such as “GCC can be installed from the following packages:” and so on, then it means that your system doesn’t know about one or more of your install discs. I’m not sure about the console equivalent of this for the purists out there, but to fix this, go into the control center. On the ‘software management’ tab, click ‘media manager’ and make sure all of your install CDs are there on the list, if not, put in the missing disc(s) and click ‘add’. Set ‘type of medium’ to ‘removable device’ and in the ‘path’ textbox, type ‘/mnt/cdrom’. If you your CD drive is mounted in a different location {it won’t be unless you specified it that way}, use that location instead. After adding the missing installation CD(s) to the ‘medium’ list, do the above ‘urpmi’ step again.

Graham, who wrote Guide One, is the Graham from the forums at . When you get wireless access to the internet, you might want to check those forums out. (along with, they’re both pretty cool.

Hugo Chasqueira, who wrote Guide Two, is reachable at hchasqueira at netcabo dot pt

Skizor, who organized, copyeditted, and wiki-coded a lot of this stuff (had to re-wiki-code guide two), can be contacted at is Best Kernal for Mandrake