BRN:Software:Build and Distribution:Madwifi: Difference between revisions

From
Jump to navigation Jump to search
Line 27: Line 27:


= Install =
= Install =
$ KERNELRELEASE=$KERNEL_VERSION$(grep CONFIG_LOCALVERSION= ../linux-$KERNEL_VERSION/.config | sed 's/CONFIG_LOCALVERSION="\([^"]\+\)"/\1/')
$ KERNELRELEASE=$KERNEL_VERSION$(grep CONFIG_LOCALVERSION= ../$KERNEL_DIR/.config | sed 's/CONFIG_LOCALVERSION="\([^"]\+\)"/\1/')
$ sh build.sh install DESTDIR=$(pwd)/../root
$ sh build.sh install DESTDIR=$(pwd)/../root
$ (cd ../linux-$KERNEL_VERSION; /sbin/depmod -ae -F System.map -b /tmp/mj-build/root -r $KERNELRELEASE)
$ (cd ../$KERNEL_DIR; /sbin/depmod -ae -F System.map -b /tmp/mj-build/root -r $KERNELRELEASE)





Revision as of 09:46, 11 September 2006

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 
$ (cd ../$KERNEL_DIR; /sbin/depmod -ae -F System.map -b /tmp/mj-build/root -r $KERNELRELEASE)



Prev | Contents | Next