BRN:Software:Build and Distribution:Madwifi
Jump to navigation
Jump to search
Introduction
Madwifi is the name of the open source project and the name of its device driver for the Atheros wireless networking card. The Netgear WGT634U has built-in a MiniPCI Atheros AR5213A card.
Driver Sources
Fetch the tarball from the project's website and unpack them:
$ wget http://mesh.dl.sourceforge.net/sourceforge/madwifi/madwifi-0.9.2.tar.bz2 $ tar xjf madwifi-0.9.2.tar.bz2
Alternatively checkout the sources from svn:
$ svn co http://svn.madwifi.org/trunk madwifi-svn
Patch for madwifi:
$ svn co svn://sarsvn.informatik.hu-berlin.de/BerlinRoofNet/trunk/madwifi/patches madwifi-patches
Build
Apply patches:
$ cd madwifi-0.9.2 # or "cd madwifi-svn" $ for p in ../madwifi-patches/*.patch; do patch -p1 -i $p; done
Copy build script from kernel:
$ KERNEL_VERSION=2.6.16.13 $ KERNEL_DIR=linux-$KERNEL_VERSION $ cp ../linux-$KERNEL_VERSION/build.sh .
Build:
$ sh build.sh KERNELPATH=$(pwd)/../$KERNEL_DIR
Install
$ KERNELRELEASE=$KERNEL_VERSION$(grep CONFIG_LOCALVERSION= ../$KERNEL_DIR/.config | sed 's/CONFIG_LOCALVERSION="\([^"]\+\)"/\1/') $ sh build.sh install DESTDIR=$(pwd)/../root KERNELRELEASE=$KERNELRELEASE $ cd .. $ (cd $KERNEL_DIR; /sbin/depmod -ae -F System.map -b $(pwd)/root -r $KERNELRELEASE)