BRN:Software:Build and Distribution:Madwifi: Difference between revisions
Jump to navigation
Jump to search
(→Build) |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 25: | Line 25: | ||
Build: |
Build: |
||
$ sh build.sh KERNELPATH=$(pwd)/../$KERNEL_DIR |
$ sh build.sh KERNELPATH=$(pwd)/../$KERNEL_DIR |
||
Patch: |
|||
--- madwifi-0.9.2-orig/hal/public/mips1-le-elf.inc 2006-09-11 10:33:17.000000000 +0200 |
|||
+++ madwifi-0.9.2-new/hal/public/mips1-le-elf.inc 2006-09-11 10:33:29.000000000 +0200 |
|||
@@ -68,5 +68,5 @@ |
|||
LDOPTS= -EL |
|||
COPTS+= -DAH_BYTE_ORDER=AH_LITTLE_ENDIAN |
|||
-COPTS+= -G 0 -EL -mno-abicalls -fno-pic -mips1 -Wa,--trap \ |
|||
+COPTS+= -G 0 -mno-abicalls -fno-pic -Wa,--trap \ |
|||
-fno-strict-aliasing -fno-common -fomit-frame-pointer -mlong-calls |
|||
= Install = |
= Install = |
||
$ KERNELRELEASE=$KERNEL_VERSION$(grep CONFIG_LOCALVERSION= ../$KERNEL_DIR/.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 KERNELRELEASE=$KERNELRELEASE |
$ sh build.sh install DESTDIR=$(pwd)/../root KERNELRELEASE=$KERNELRELEASE |
||
$ cd .. |
|||
$ (cd |
$ (cd $KERNEL_DIR; /sbin/depmod -ae -F System.map -b $(pwd)/../root -r $KERNELRELEASE) |
||
---- |
---- |
Latest revision as of 14:49, 5 June 2007
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
Patch:
--- madwifi-0.9.2-orig/hal/public/mips1-le-elf.inc 2006-09-11 10:33:17.000000000 +0200 +++ madwifi-0.9.2-new/hal/public/mips1-le-elf.inc 2006-09-11 10:33:29.000000000 +0200 @@ -68,5 +68,5 @@ LDOPTS= -EL COPTS+= -DAH_BYTE_ORDER=AH_LITTLE_ENDIAN -COPTS+= -G 0 -EL -mno-abicalls -fno-pic -mips1 -Wa,--trap \ +COPTS+= -G 0 -mno-abicalls -fno-pic -Wa,--trap \ -fno-strict-aliasing -fno-common -fomit-frame-pointer -mlong-calls
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)