|
Author: Martin List-Petersen - martin at list-petersen dot dk The newest version of this document can allways be found at http://www.marlow.dk/madwifi Version: 1.7-1 Created: June 19th, 2004 Last updated: September 7th, 2005 |
|
First of all you would need a WLan card, that is based on the Atheros chipset. Without that it would be useless looking at this document in the first place. If you not are sure, what chipset your WLan card is based on, have a look at Linux-WLan. They have a extensive list of WLan adapters, their capabilities and what chipset they are based on.
You need to install the kernel source code and configure it with make-kpkg. Any kernel version available from Debian should do.
If you have installed a binary kernel, you can allways fetch the correct source for that, and configure it as appropriate
apt-get install kernel-source-2.x.y
cd /usr/src
tar -xjvf kernel-source-2.x.y.tar.bz2
cd kernel-source-2.x.y
cp /boot/config-2.x.y-flavour .config
make-kpkg --append-to-version "-flavour" --revision 2.x.y-z --config oldconfig configure
If you have a kernelversion, that looks like 2.6.4-1-686, the "-flavour" would be "-1-686".
If you already have a configured kernel source tree, you can use it, but make sure that it's exactly the same configuration you are using.
Make also sure that you have installed the packages kernel-package, debhelper, fakeroot and cvs.
They are essential for getting this package to work.
deb ftp://debian.marlow.dk/ sid madwifi deb-src ftp://debian.marlow.dk/ sid madwifiTo
/etc/apt/sources.list and of course to run apt-get update afterwards.apt-get source madwifi
or you can grab the daily cvs snapshot of my repository: apt-get install madwifi-source madwifi-tools.For building the packages you will need 2 files:
You grab them of the repository withapt-get source madwifi or download them manually. In that case you will have to run
dpkg-source -x madwifi-1.7-3.dsc to unpack them.madwifi-1.7 and run:
fakeroot dpkg-buildpackageIf you are missing some packages, dpkg-buildpackage will complain. The debian packaging system will now kick off cvs and download the latest madwifi driver from their sourceforge site. Once you are finished it will leave you with 2 new Debian packages:
madwifi-source_20040619_all.deb - The source package needed to compile the kernel modules.madwifi-tools_20040619_i386.deb - The tools package comtaining the athstats tool. You probably wont need this, but i included it for completeness.The version (20040619) will be the date when you fetched the madwifi source. If you leave the madwifi-1.7 directory where it is and rerun the dpkg-buildpackage
process at a later time it will not download a new cvs snapshot, but recreate the packages with the allready fetched driver sources.
If you want to download a new version, simply delete madwifi-1.7/madwifi.tar.gz and kick off the dpkg-buildpackage process again. An existing
madwifi.tar.gz file forces the package builder to ommit the cvs checkout and build the driver from the sources in madwifi.tar.gz.
Install the packages:
dpkg -i madwifi-source_20040619_all.deb
dpkg -i madwifi-tools_20040619_i386.deb
The rate algorythm was recently split out into new modules (ath_rate_onoe, ath_rate_amrr, ath_rate_sample), so that it could be replaced with other algorythm's.
One of them is amrr. If you want to use AMRR (Adaptive Multi Rate Retry) or the sample module instead of the default algorythm, you would have to enter
export ATH_RATE=ath_rate/amrr OR export ATH_RATE=ath_rate/sample now. If you don't care about this, just leave it as it is.
I have linked a document about Rate Adaption, that also discribes the AMRR in the links section. Good reading :)/usr/src and type:
tar -xzvf madwifi.tar.gz
cd kernel-source-x.y.z
fakeroot make-kpkg --append-to-version "-flavour" --revision 2.x.y-z --added-modules madwifi modules_image
This will build a new package, which you will have to install:
dpkg -i /usr/src/madwifi-module-x.y.z_20040619-1+kernelversion_i386.debEventually it is a good idea to run
update-modules afterwards. Just to make sure, that the modules are recognised by the system.modprobe ath_pciUsually you would get something like:
Warning: loading /lib/modules/2.4.24-20040613-loke/kernel/drivers/net/ath_hal.o will taint the kernel: non-GPL license - Proprietary
See http://www.tux.org/lkml/#export-tainted for information about tainted modules
Module ath_hal loaded, with warnings
Module wlan loaded, with warnings
Module ath_pci loaded, with warnings
This is ok. The madwifi driver contains a binary hal library because of FCC regulations and thus taints the kernel. Check lsmod and see if it has
loaded everything correctly (modules ath_pci, wlan and ath_hal. You can also check dmesg to see
what output the driver gave you on load.
If everything worked as expected, you should have a ath0 interface and be able to query that with ifconfig ath0 and iwconfig ath0.
So now you only need to configure your networking.
| Website last modified: Jan 8th, 2007 - 1:39 PM GMT. (C)opyright 1997 - 2007 by Martin List-Petersen | ![]() ![]() |