WGT634U-Linux-2.6.16.13: Difference between revisions

From
Jump to navigation Jump to search
No edit summary
Line 38: Line 38:
= Click bauen =
= Click bauen =


* CFLAGS="-mno-abicalls -fno-pic"
* CFLAGS="-mno-abicalls -fno-pic -DKERNEL"

Revision as of 14:59, 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"