WGT634U-Linux-2.6.16.13: Difference between revisions
Jump to navigation
Jump to search
(One intermediate revision by the same user not shown) | |||
Line 39: | Line 39: | ||
* CFLAGS="-mno-abicalls -fno-pic -DKERNEL" |
* CFLAGS="-mno-abicalls -fno-pic -DKERNEL" |
||
besser Kernel-Build-File benutzen |
|||
= Madwifi = |
|||
diff -ru madwifi-0.9.2/hal/public/mips1-le-elf.inc madwifi-0.9.2.save/hal/public/mips1-le-elf.inc |
|||
--- madwifi-0.9.2/hal/public/mips1-le-elf.inc 2006-05-27 04:48:16.000000000 +0200 |
|||
+++ madwifi-0.9.2.save/hal/public/mips1-le-elf.inc 2006-08-21 12:16:20.000000000 +0200 |
|||
@@ -68,5 +68,6 @@ |
|||
LDOPTS= -EL |
|||
COPTS+= -DAH_BYTE_ORDER=AH_LITTLE_ENDIAN |
|||
-COPTS+= -G 0 -EL -mno-abicalls -fno-pic -mips1 -Wa,--trap \ |
|||
+#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 |
|||
localmj@psi:/tmp/WGT634U-Linux-2.6.16.13> cat madwifi-0.9.2.save/build_mips.sh |
|||
#!/bin/sh |
|||
#make TARGET=mips-le-elf KERNELPATH=/tmp/WGT634U-Linux-2.6.16.13/linux-2.6.16.13-mips-click |
|||
make KERNELPATH=/tmp/WGT634U-Linux-2.6.16.13/linux-2.6.16.13-mips-click V=1 |
Latest revision as of 15:42, 30 August 2006
Kernel holen, patchen und konfigurieren
$ wget ftp://ftp.informatik.hu-berlin.de/pub/Linux/Kernel/kernel/v2.6/linux-2.6.16.tar.bz2 $ wget ftp://ftp.informatik.hu-berlin.de/pub/Linux/Kernel/kernel/v2.6/patch-2.6.16.13.bz2 $ svn co https://svn.openwrt.org/openwrt/trunk/openwrt/target/linux/brcm-2.6/patches mips-patches $ tar xjf linux-2.6.16.tar.bz2 $ mv linux-2.6.16 linux-2.6.16.13-mips-click $ cd linux-2.6.16.13-mips-click $ bzcat ../patch-2.6.16.13.bz2 | patch -p1 $ for p in ../mips-patches/*.patch; do patch -p1 -i $p; done $ wget http://majes.de/~mj/code/wgt634u/linux-2.6.16.13/.config -O .config $ cd ..
Click holen und Kernel-Patch einspielen
$ cvs -d :pserver:anoncvs@cvs.pdos.csail.mit.edu:/cvs login CVS password: <ENTER> $ cvs -z5 -d :pserver:anoncvs@cvs.pdos.csail.mit.edu:/cvs co -d click-cvs click/release/one $ wget http://majes.de/~mj/code/wgt634u/linux-2.6.16.13/linux-2.6.16.13-patch $ wget http://majes.de/~mj/code/wgt634u/linux-2.6.16.13/addressinfo_linuxmodule_madwifi-ng_monitor.patch $ (cd linux-2.6.16.13-mips-click; patch -p1 -i ../linux-2.6.16.13-patch) $ (cd click-cvs; patch -p1 -i ../addressinfo_linuxmodule_madwifi-ng_monitor.patch)
Kernel bauen
$ cd linux-2.6.16.13-mips-click $ wget http://majes.de/~mj/code/wgt634u/linux-2.6.16.13/build.sh $ cat build.sh #!/bin/sh CROSS_PATH=$HOME/sources/openwgt-dev/buildroot/build_mipsel/staging_dir/bin/ make \ CC=$CROSS_PATH/mipsel-linux-gcc \ LD=$CROSS_PATH/mipsel-linux-ld \ AR=$CROSS_PATH/mipsel-linux-ar \ NM=$CROSS_PATH/mipsel-linux-nm \ ARCH=mips $* $ sh build.sh
Click bauen
- CFLAGS="-mno-abicalls -fno-pic -DKERNEL"
besser Kernel-Build-File benutzen
Madwifi
diff -ru madwifi-0.9.2/hal/public/mips1-le-elf.inc madwifi-0.9.2.save/hal/public/mips1-le-elf.inc --- madwifi-0.9.2/hal/public/mips1-le-elf.inc 2006-05-27 04:48:16.000000000 +0200 +++ madwifi-0.9.2.save/hal/public/mips1-le-elf.inc 2006-08-21 12:16:20.000000000 +0200 @@ -68,5 +68,6 @@ LDOPTS= -EL COPTS+= -DAH_BYTE_ORDER=AH_LITTLE_ENDIAN -COPTS+= -G 0 -EL -mno-abicalls -fno-pic -mips1 -Wa,--trap \ +#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
localmj@psi:/tmp/WGT634U-Linux-2.6.16.13> cat madwifi-0.9.2.save/build_mips.sh #!/bin/sh #make TARGET=mips-le-elf KERNELPATH=/tmp/WGT634U-Linux-2.6.16.13/linux-2.6.16.13-mips-click make KERNELPATH=/tmp/WGT634U-Linux-2.6.16.13/linux-2.6.16.13-mips-click V=1