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

From
Jump to navigation Jump to search
No edit summary
 
Line 33: Line 33:


----
----
<span style="padding-left:0.5em">'''[[BRN:Software:Build_and_Distribution:Click|Prev]]''' | '''[[BRN:Software:Build_and_Distribution|Contents]]''' | '''[[BRN:Software:Build_and_Distribution:BRN-SDP|Next]]'''</span>
<span style="padding-left:0.5em">'''[[BRN:Software:Build_and_Distribution:click|Prev]]''' | '''[[BRN:Software:Build_and_Distribution|Contents]]''' | '''[[BRN:Software:Build_and_Distribution:BRN-SDP|Next]]'''</span>

Revision as of 09:45, 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= ../linux-$KERNEL_VERSION/.config | sed 's/CONFIG_LOCALVERSION="\([^"]\+\)"/\1/')
$ sh build.sh install DESTDIR=$(pwd)/../root 
$ (cd ../linux-$KERNEL_VERSION; /sbin/depmod -ae -F System.map -b /tmp/mj-build/root -r $KERNELRELEASE)



Prev | Contents | Next