diff options
Diffstat (limited to 'packages/wrt')
-rw-r--r-- | packages/wrt/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/wrt/loader-0.04/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/wrt/loader-0.04/toolchain.patch | 16 | ||||
-rw-r--r-- | packages/wrt/loader_0.04.bb | 12 | ||||
-rw-r--r-- | packages/wrt/wrt-imagetools-native.bb | 16 | ||||
-rw-r--r-- | packages/wrt/wrt-init/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/wrt/wrt-init/finished | 4 | ||||
-rwxr-xr-x[-rw-r--r--] | packages/wrt/wrt-init/mount | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | packages/wrt/wrt-init/wrtboot | 0 | ||||
-rw-r--r-- | packages/wrt/wrt-init/wrtvlans | 8 | ||||
-rw-r--r-- | packages/wrt/wrt-utils/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/wrt/wrt-utils/libshared-makefile.diff | 13 | ||||
-rw-r--r-- | packages/wrt/wrt-utils/nvram-makefile.diff | 13 |
13 files changed, 82 insertions, 0 deletions
diff --git a/packages/wrt/.mtn2git_empty b/packages/wrt/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/wrt/.mtn2git_empty diff --git a/packages/wrt/loader-0.04/.mtn2git_empty b/packages/wrt/loader-0.04/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/wrt/loader-0.04/.mtn2git_empty diff --git a/packages/wrt/loader-0.04/toolchain.patch b/packages/wrt/loader-0.04/toolchain.patch index e69de29bb2..81f92b26e1 100644 --- a/packages/wrt/loader-0.04/toolchain.patch +++ b/packages/wrt/loader-0.04/toolchain.patch @@ -0,0 +1,16 @@ +diff -Nur loader-0.04/Makefile loader-0.04-owrt/Makefile +--- loader-0.04/Makefile 2005-03-08 11:32:32.000000000 +0100 ++++ loader-0.04-owrt/Makefile 2005-04-30 13:44:39.000000000 +0200 +@@ -22,9 +22,10 @@ + + OBJCOPY := $(CROSS_COMPILE)objcopy -O binary -R .reginfo -R .note -R .comment -R .mdebug -S + +-CFLAGS = -D__KERNEL__ -Wall -Wstrict-prototypes -Wno-trigraphs -O2 \ ++CFLAGS = -D__KERNEL__ -Wall -Wstrict-prototypes -Wno-trigraphs -Os \ + -fno-strict-aliasing -fno-common -fomit-frame-pointer -G 0 -mno-abicalls -fno-pic \ +- -ffunction-sections -pipe -mcpu=r4600 -mips2 -Wa,--trap -m4710a0kern ++ -ffunction-sections -pipe -mlong-calls -fno-common \ ++ -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 -Wa,-mips32 -Wa,--trap + CFLAGS += -DLOADADDR=$(TEXT_START) -D_LZMA_IN_CB + + ASFLAGS = $(CFLAGS) -D__ASSEMBLY__ -DBZ_TEXT_START=$(BZ_TEXT_START) diff --git a/packages/wrt/loader_0.04.bb b/packages/wrt/loader_0.04.bb index e69de29bb2..6ce3058af0 100644 --- a/packages/wrt/loader_0.04.bb +++ b/packages/wrt/loader_0.04.bb @@ -0,0 +1,12 @@ +SRC_URI = "http://wl500g.dyndns.org/loader/loader-${PV}.tar.gz \ + file://toolchain.patch;patch=1" + +S = "${WORKDIR}/${P}" + +do_compile() { + make CROSS_COMPILE=${TARGET_PREFIX} +} + +do_install() { + install ${S}/loader.gz ${DEPLOY_DIR}/images/ +}
\ No newline at end of file diff --git a/packages/wrt/wrt-imagetools-native.bb b/packages/wrt/wrt-imagetools-native.bb index e69de29bb2..cd5d802765 100644 --- a/packages/wrt/wrt-imagetools-native.bb +++ b/packages/wrt/wrt-imagetools-native.bb @@ -0,0 +1,16 @@ +SRC_URI = "cvs://anonymous@openwrt.org/openwrt;module=openwrt/target/utils/src;tag=TESTED" +S = "${WORKDIR}/src/" + +inherit native + +do_compile() { + ${CC} -o trx trx.c + ${CC} -o motorola-bin motorola-bin.c + ${CC} -o addpattern addpattern.c +} + +do_stage() { + install -m 0755 ${S}/trx ${STAGING_BINDIR} + install -m 0755 ${S}/motorola-bin ${STAGING_BINDIR} + install -m 0755 ${S}/addpattern ${STAGING_BINDIR} +}
\ No newline at end of file diff --git a/packages/wrt/wrt-init/.mtn2git_empty b/packages/wrt/wrt-init/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/wrt/wrt-init/.mtn2git_empty diff --git a/packages/wrt/wrt-init/finished b/packages/wrt/wrt-init/finished index e69de29bb2..de85661f32 100644 --- a/packages/wrt/wrt-init/finished +++ b/packages/wrt/wrt-init/finished @@ -0,0 +1,4 @@ +#!/bin/sh + +# change LEDs +echo 0x01 > /proc/sys/diag
\ No newline at end of file diff --git a/packages/wrt/wrt-init/mount b/packages/wrt/wrt-init/mount index 539dbfad59..539dbfad59 100644..100755 --- a/packages/wrt/wrt-init/mount +++ b/packages/wrt/wrt-init/mount diff --git a/packages/wrt/wrt-init/wrtboot b/packages/wrt/wrt-init/wrtboot index c03d53f9bc..c03d53f9bc 100644..100755 --- a/packages/wrt/wrt-init/wrtboot +++ b/packages/wrt/wrt-init/wrtboot diff --git a/packages/wrt/wrt-init/wrtvlans b/packages/wrt/wrt-init/wrtvlans index e69de29bb2..c5fd31d906 100644 --- a/packages/wrt/wrt-init/wrtvlans +++ b/packages/wrt/wrt-init/wrtvlans @@ -0,0 +1,8 @@ +#!/bin/sh + +# the ethernet switch distinguishes the WAN port and the 4 LAN ports by VLAN tags +# this might not yet be correct for all devices, only checked on the WRT54G +vconfig set_name_type VLAN_PLUS_VID_NO_PAD +ifconfig eth0 up +vconfig add eth0 0 +vconfig add eth0 1 diff --git a/packages/wrt/wrt-utils/.mtn2git_empty b/packages/wrt/wrt-utils/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/wrt/wrt-utils/.mtn2git_empty diff --git a/packages/wrt/wrt-utils/libshared-makefile.diff b/packages/wrt/wrt-utils/libshared-makefile.diff index e69de29bb2..1c51776b65 100644 --- a/packages/wrt/wrt-utils/libshared-makefile.diff +++ b/packages/wrt/wrt-utils/libshared-makefile.diff @@ -0,0 +1,13 @@ +--- libshared/Makefile.orig 2005-06-11 17:22:59.000000000 +0200 ++++ libshared/Makefile 2005-06-11 17:22:42.000000000 +0200 +@@ -1,9 +1,8 @@ + # $Id: Makefile,v 1.2 2005/03/19 14:40:56 wbx Exp $ + +-include $(TOPDIR)/rules.mk + + PKG_NAME:=libshared +-PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME) ++PKG_BUILD_DIR:=. + + EXTRA_CFLAGS := -c -I. -I../include + diff --git a/packages/wrt/wrt-utils/nvram-makefile.diff b/packages/wrt/wrt-utils/nvram-makefile.diff index e69de29bb2..db31e91374 100644 --- a/packages/wrt/wrt-utils/nvram-makefile.diff +++ b/packages/wrt/wrt-utils/nvram-makefile.diff @@ -0,0 +1,13 @@ +--- libnvram/Makefile.o 2005-04-08 11:08:38.000000000 +0200 ++++ libnvram/Makefile 2005-06-11 16:12:21.000000000 +0200 +@@ -1,9 +1,8 @@ + # $Id: Makefile,v 1.4 2005/04/08 09:08:38 nbd Exp $ + +-include $(TOPDIR)/rules.mk + + PKG_NAME:=libnvram +-PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME) ++PKG_BUILD_DIR:=./ + + EXTRA_CFLAGS := -c -I. -I../include + |