Re: [OpenWrt-Devel] [PATCH] Routerboard RB150 user led support
Adds support for user led for Mikrotik's rb150. Thanks, applied. Can you check the LEDs embedded into the ethernet sockets? Gabor ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 5/7] atheros: console config override
This patch makes it possible to override the console kernel command line option by passing a command line to the kernel. It basically removes the console option from the default command line and adds it at runtime in prom_init when console= was not yet specified. Signed-off-by: Axel Gembe [EMAIL PROTECTED] --- target/linux/atheros/config-2.6.23 |2 +- target/linux/atheros/config-2.6.24 |2 +- target/linux/atheros/config-2.6.25 |2 +- .../linux/atheros/files/arch/mips/atheros/prom.c |6 ++ 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/target/linux/atheros/config-2.6.23 b/target/linux/atheros/config-2.6.23 index 5d299d9..1497f7c 100644 --- a/target/linux/atheros/config-2.6.23 +++ b/target/linux/atheros/config-2.6.23 @@ -13,7 +13,7 @@ CONFIG_BASE_SMALL=0 CONFIG_BITREVERSE=y # CONFIG_BROADCOM_PHY is not set # CONFIG_BT is not set -CONFIG_CMDLINE=console=ttyS0,9600 rootfstype=squashfs,jffs2 init=/etc/preinit +CONFIG_CMDLINE=rootfstype=squashfs,jffs2 init=/etc/preinit CONFIG_CPU_BIG_ENDIAN=y CONFIG_CPU_HAS_LLSC=y CONFIG_CPU_HAS_PREFETCH=y diff --git a/target/linux/atheros/config-2.6.24 b/target/linux/atheros/config-2.6.24 index db6196f..3916e64 100644 --- a/target/linux/atheros/config-2.6.24 +++ b/target/linux/atheros/config-2.6.24 @@ -16,7 +16,7 @@ CONFIG_BITREVERSE=y # CONFIG_BROADCOM_PHY is not set # CONFIG_BT is not set CONFIG_CEVT_R4K=y -CONFIG_CMDLINE=console=ttyS0,9600 rootfstype=squashfs,jffs2 init=/etc/preinit +CONFIG_CMDLINE=rootfstype=squashfs,jffs2 init=/etc/preinit CONFIG_CPU_BIG_ENDIAN=y CONFIG_CPU_HAS_LLSC=y CONFIG_CPU_HAS_PREFETCH=y diff --git a/target/linux/atheros/config-2.6.25 b/target/linux/atheros/config-2.6.25 index 4b97840..50aad1c 100644 --- a/target/linux/atheros/config-2.6.25 +++ b/target/linux/atheros/config-2.6.25 @@ -18,7 +18,7 @@ CONFIG_BITREVERSE=y # CONFIG_BT is not set CONFIG_CEVT_R4K=y CONFIG_CLASSIC_RCU=y -CONFIG_CMDLINE=console=ttyS0,9600 rootfstype=squashfs,jffs2 init=/etc/preinit +CONFIG_CMDLINE=rootfstype=squashfs,jffs2 init=/etc/preinit CONFIG_CPU_BIG_ENDIAN=y CONFIG_CPU_HAS_LLSC=y CONFIG_CPU_HAS_PREFETCH=y diff --git a/target/linux/atheros/files/arch/mips/atheros/prom.c b/target/linux/atheros/files/arch/mips/atheros/prom.c index 82617cd..2f2da0c 100644 --- a/target/linux/atheros/files/arch/mips/atheros/prom.c +++ b/target/linux/atheros/files/arch/mips/atheros/prom.c @@ -8,6 +8,7 @@ * Copyright (C) 2006 FON Technology, SL. * Copyright (C) 2006 Imre Kaloz [EMAIL PROTECTED] * Copyright (C) 2006 Felix Fietkau [EMAIL PROTECTED] + * Copyright (C) 2008 Axel Gembe [EMAIL PROTECTED] */ /* @@ -27,7 +28,9 @@ void __init prom_init(void) { +#if 0 char **argv; +#endif mips_machtype = -1; @@ -38,6 +41,9 @@ void __init prom_init(void) /* RedBoot desired command line is argv[1] */ strcat(arcs_cmdline, argv[1]); #endif + /* Default console speed is 9600 baud */ + if (strstr(arcs_cmdline, console=) == NULL) + strcat(arcs_cmdline, console=ttyS0,9600); } void __init prom_free_prom_memory(void) -- 1.5.5.1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 7/7] atheros: ar531x watchdog support
Atheros AR531X (Generic) watchdog support code (based on ar7_wdt.c). This watchdog should work on most AR5315 / AR5312 devices. I've personally tested it on La Fonera and D-Link DWL-2100AP. Please note that the DWL-2100AP uses a slightly faster clock for its watchdog, see the source files. Signed-off-by: Axel Gembe [EMAIL PROTECTED] --- target/linux/atheros/config-2.6.23 |1 + target/linux/atheros/config-2.6.24 |1 + target/linux/atheros/config-2.6.25 |1 + .../files/drivers/char/watchdog/ar531x_wdt.c | 326 .../atheros/files/drivers/watchdog/ar531x_wdt.c| 326 .../include/asm-mips/mach-atheros/ar5315/ar5315.h |1 + .../atheros/patches-2.6.23/160-watchdog.patch | 35 ++ .../atheros/patches-2.6.24/160-watchdog.patch | 35 ++ .../atheros/patches-2.6.25/160-watchdog.patch | 35 ++ 9 files changed, 761 insertions(+), 0 deletions(-) create mode 100644 target/linux/atheros/files/drivers/char/watchdog/ar531x_wdt.c create mode 100644 target/linux/atheros/files/drivers/watchdog/ar531x_wdt.c create mode 100644 target/linux/atheros/patches-2.6.23/160-watchdog.patch create mode 100644 target/linux/atheros/patches-2.6.24/160-watchdog.patch create mode 100644 target/linux/atheros/patches-2.6.25/160-watchdog.patch diff --git a/target/linux/atheros/config-2.6.23 b/target/linux/atheros/config-2.6.23 index e1694ba..4876047 100644 --- a/target/linux/atheros/config-2.6.23 +++ b/target/linux/atheros/config-2.6.23 @@ -8,6 +8,7 @@ CONFIG_AR2313=y CONFIG_ATHEROS=y CONFIG_ATHEROS_AR5312=y CONFIG_ATHEROS_AR5315=y +CONFIG_ATHEROS_WDT=y # CONFIG_ATM is not set CONFIG_BASE_SMALL=0 CONFIG_BITREVERSE=y diff --git a/target/linux/atheros/config-2.6.24 b/target/linux/atheros/config-2.6.24 index 848f459..ef34de9 100644 --- a/target/linux/atheros/config-2.6.24 +++ b/target/linux/atheros/config-2.6.24 @@ -9,6 +9,7 @@ CONFIG_ARCH_SUPPORTS_OPROFILE=y CONFIG_ATHEROS=y CONFIG_ATHEROS_AR5312=y CONFIG_ATHEROS_AR5315=y +CONFIG_ATHEROS_WDT=y # CONFIG_ATM is not set CONFIG_BASE_SMALL=0 # CONFIG_BCM47XX is not set diff --git a/target/linux/atheros/config-2.6.25 b/target/linux/atheros/config-2.6.25 index fc1cda4..39e31b2 100644 --- a/target/linux/atheros/config-2.6.25 +++ b/target/linux/atheros/config-2.6.25 @@ -10,6 +10,7 @@ CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ATHEROS=y CONFIG_ATHEROS_AR5312=y CONFIG_ATHEROS_AR5315=y +CONFIG_ATHEROS_WDT=y # CONFIG_ATM is not set CONFIG_BASE_SMALL=0 # CONFIG_BCM47XX is not set diff --git a/target/linux/atheros/files/drivers/char/watchdog/ar531x_wdt.c b/target/linux/atheros/files/drivers/char/watchdog/ar531x_wdt.c new file mode 100644 index 000..16c0eea --- /dev/null +++ b/target/linux/atheros/files/drivers/char/watchdog/ar531x_wdt.c @@ -0,0 +1,326 @@ +/* + * drivers/watchdog/ar531x_wdt.c + * + * Atheros 531x Watchdog Timer support + * + * Copyright (C) 2008 Axel Gembe [EMAIL PROTECTED] + * + * Some base code taken from: + * OpenWRT AR7 watchdog driver + * Copyright (C) 2007 Nicolas Thill [EMAIL PROTECTED] + * Copyright (C) 2005 Enrik Berkhan [EMAIL PROTECTED] + * Copyright (C) 2001, 2002 Christer Weinigel [EMAIL PROTECTED] + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include linux/module.h +#include linux/moduleparam.h +#include linux/errno.h +#include linux/init.h +#include linux/miscdevice.h +#include linux/watchdog.h +#include linux/notifier.h +#include linux/reboot.h +#include linux/fs.h +#include linux/ioport.h +#include linux/io.h +#include linux/uaccess.h +#include linux/interrupt.h + +#include asm/addrspace.h +#include asm/mach-atheros/ar531x.h + +#define DRVNAME ar531x_wdt +#define LONGNAME Atheros 531x Watchdog Timer + +MODULE_AUTHOR(Axel Gembe [EMAIL PROTECTED]); +MODULE_DESCRIPTION(LONGNAME); +MODULE_LICENSE(GPL); +MODULE_ALIAS_MISCDEV(WATCHDOG_MINOR); + +static int margin = 60; +module_param(margin, int, 0); +MODULE_PARM_DESC(margin, Watchdog margin in seconds); + +/* + I found these clock rates so far: + 48MHz - DLink DWL-2100AP + 40MHz - Meraki +*/ + +static int wdtclock = 4000; /* 40MHz */ +module_param(wdtclock, int, 0); +MODULE_PARM_DESC(wdtclock, Watchdog clock in hertz); + +static int nowayout =
[OpenWrt-Devel] [PATCH 4/7] atheros: kgdb support
Atheros supports KGDB using the generic KGDB MIPS support. We can use the generic serial functions because the Atheros boards have a standard serial port. Signed-off-by: Axel Gembe [EMAIL PROTECTED] --- .../linux/atheros/patches-2.6.23/100-board.patch | 41 ++-- .../linux/atheros/patches-2.6.24/100-board.patch | 51 .../linux/atheros/patches-2.6.25/100-board.patch | 38 +-- 3 files changed, 78 insertions(+), 52 deletions(-) diff --git a/target/linux/atheros/patches-2.6.23/100-board.patch b/target/linux/atheros/patches-2.6.23/100-board.patch index 28509a3..92b6358 100644 --- a/target/linux/atheros/patches-2.6.23/100-board.patch +++ b/target/linux/atheros/patches-2.6.23/100-board.patch @@ -1,7 +1,14 @@ -diff -urN linux.old/arch/mips/Kconfig linux.dev/arch/mips/Kconfig linux.old/arch/mips/Kconfig2007-02-02 23:55:52.912446784 +0100 -+++ linux.dev/arch/mips/Kconfig2007-02-03 21:50:25.262027104 +0100 -@@ -44,6 +44,16 @@ +commit 5bf3d96b88068651524a3543ce282c2b9506dca3 +Author: Axel Gembe [EMAIL PROTECTED] +Date: Wed May 7 10:15:44 2008 +0200 + +100-board.patch + +diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig +index 3b807b4..7d04ec3 100644 +--- a/arch/mips/Kconfig b/arch/mips/Kconfig +@@ -44,6 +44,17 @@ config BASLER_EXCITE_PROTOTYPE note that a kernel built with this option selected will not be able to run on normal units. @@ -13,12 +20,13 @@ diff -urN linux.old/arch/mips/Kconfig linux.dev/arch/mips/Kconfig + select SYS_HAS_CPU_MIPS32_R1 + select SYS_SUPPORTS_BIG_ENDIAN + select SYS_SUPPORTS_32BIT_KERNEL ++ select SYS_SUPPORTS_KGDB + select GENERIC_GPIO + config MIPS_COBALT bool Cobalt Server select DMA_NONCOHERENT -@@ -597,6 +607,7 @@ +@@ -597,6 +608,7 @@ config WR_PPMC endchoice @@ -26,10 +34,11 @@ diff -urN linux.old/arch/mips/Kconfig linux.dev/arch/mips/Kconfig source arch/mips/au1000/Kconfig source arch/mips/jazz/Kconfig source arch/mips/pmc-sierra/Kconfig -diff -urN linux.old/arch/mips/Makefile linux.dev/arch/mips/Makefile linux.old/arch/mips/Makefile 2007-02-02 23:55:52.913446632 +0100 -+++ linux.dev/arch/mips/Makefile 2007-02-03 17:40:29.193776000 +0100 -@@ -267,6 +267,13 @@ +diff --git a/arch/mips/Makefile b/arch/mips/Makefile +index 32c1c8f..4231a9a 100644 +--- a/arch/mips/Makefile b/arch/mips/Makefile +@@ -270,6 +270,13 @@ libs-$(CONFIG_MIPS_XXS1500) += arch/mips/au1000/xxs1500/ load-$(CONFIG_MIPS_XXS1500) += 0x8010 # @@ -43,12 +52,13 @@ diff -urN linux.old/arch/mips/Makefile linux.dev/arch/mips/Makefile # Cobalt Server # core-$(CONFIG_MIPS_COBALT)+= arch/mips/cobalt/ -diff -urN linux.old/include/asm-mips/bootinfo.h linux.dev/include/asm-mips/bootinfo.h linux.old/include/asm-mips/bootinfo.h 2007-02-02 23:55:52.913446632 +0100 -+++ linux.dev/include/asm-mips/bootinfo.h 2007-02-03 17:51:02.531494032 +0100 -@@ -213,6 +213,18 @@ - #define MACH_GROUP_NEC_EMMA2RH 25 /* NEC EMMA2RH (was 23) */ - #define MACH_NEC_MARKEINS0 /* NEC EMMA2RH Mark-eins*/ +diff --git a/include/asm-mips/bootinfo.h b/include/asm-mips/bootinfo.h +index c0f052b..29be9e6 100644 +--- a/include/asm-mips/bootinfo.h b/include/asm-mips/bootinfo.h +@@ -208,6 +208,18 @@ + #define MACH_GROUP_WINDRIVER 28 /* Windriver boards */ + #define MACH_WRPPMC 1 +/* + * Valid machtype for group ATHEROS @@ -65,4 +75,3 @@ diff -urN linux.old/include/asm-mips/bootinfo.h linux.dev/include/asm-mips/booti #define CL_SIZE COMMAND_LINE_SIZE const char *get_system_type(void); - diff --git a/target/linux/atheros/patches-2.6.24/100-board.patch b/target/linux/atheros/patches-2.6.24/100-board.patch index f1a0d06..3a37295 100644 --- a/target/linux/atheros/patches-2.6.24/100-board.patch +++ b/target/linux/atheros/patches-2.6.24/100-board.patch @@ -1,9 +1,16 @@ -diff -urN linux.old/arch/mips/Kconfig linux.dev/arch/mips/Kconfig linux.old/arch/mips/Kconfig2007-02-02 23:55:52.912446784 +0100 -+++ linux.dev/arch/mips/Kconfig2007-02-03 21:50:25.262027104 +0100 -@@ -45,6 +45,18 @@ - note that a kernel built with this option selected will not be - able to run on normal units. +commit a57d9b35069c0c61ca2d24a4e135d2bb2d10 +Author: Axel Gembe [EMAIL PROTECTED] +Date: Wed May 7 10:27:14 2008 +0200 + +100-board.patch + +diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig +index b22c043..38d2c61 100644 +--- a/arch/mips/Kconfig b/arch/mips/Kconfig +@@ -67,6 +67,19 @@ config BCM47XX + help +Support for BCM47XX based boards +config ATHEROS + bool Atheros SoC support (EXPERIMENTAL) @@ -15,23 +22,25 @@ diff -urN linux.old/arch/mips/Kconfig linux.dev/arch/mips/Kconfig + select SYS_HAS_CPU_MIPS32_R1 + select SYS_SUPPORTS_BIG_ENDIAN + select
[OpenWrt-Devel] [PATCH 3/7] atheros: use 2.6.25 kernel
Signed-off-by: Axel Gembe [EMAIL PROTECTED] --- target/linux/atheros/Makefile |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/target/linux/atheros/Makefile b/target/linux/atheros/Makefile index ab301ba..ed32e20 100644 --- a/target/linux/atheros/Makefile +++ b/target/linux/atheros/Makefile @@ -11,7 +11,7 @@ BOARD:=atheros BOARDNAME:=Atheros 231x/5312 FEATURES:=squashfs jffs2 -LINUX_VERSION:=2.6.23.16 +LINUX_VERSION:=2.6.25.1 include $(INCLUDE_DIR)/target.mk -- 1.5.5.1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] leds-parport: make a package
This adds a package for leds-parport (http://code.bastart.eu.org/leds-parport/) Leds-parport is a LED subsystem device driver for the Linux operating system. The code was written for Linux version 2.6.22 but has since been tested up to 2.6.25. The module takes 1 parameter, which is parled_port_nr, which is the parallel port number on which the LEDs are connected. Signed-off-by: Axel Gembe [EMAIL PROTECTED] --- package/leds-parport/Makefile | 45 + 1 files changed, 45 insertions(+), 0 deletions(-) create mode 100644 package/leds-parport/Makefile diff --git a/package/leds-parport/Makefile b/package/leds-parport/Makefile new file mode 100644 index 000..959d907 --- /dev/null +++ b/package/leds-parport/Makefile @@ -0,0 +1,45 @@ +# +# Copyright (C) 2008 Axel Gembe [EMAIL PROTECTED] +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# +# $Id$ + +include $(TOPDIR)/rules.mk +include $(INCLUDE_DIR)/kernel.mk + +PKG_NAME:=leds-parport +PKG_VERSION:=0.0.1 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=http://code.bastart.eu.org/files +PKG_MD5SUM:=dec1d115b60c7def65e79b374dc06d15 + +include $(INCLUDE_DIR)/package.mk + +define KernelPackage/leds-parport + SUBMENU:=Other modules + TITLE:=Parallel port LED support + URL:=http://code.bastart.eu.org/leds-parport/ + FILES:=$(PKG_BUILD_DIR)/leds-parport.$(LINUX_KMOD_SUFFIX) + AUTOLOAD:=$(call AutoLoad,99,leds-parport) +endef + +define KernelPackage/leds-parport/description + This is a LED subsystem device driver for the Linux operating system. The code + was written for Linux version 2.6.22 but has since been tested up to 2.6.25. + The module takes 1 parameter, which is parled_port_nr, which is the parallel + port number on which the LEDs are connected. +endef + +define Build/Compile + $(MAKE) -C $(LINUX_DIR) \ + ARCH=$(LINUX_KARCH) \ + CROSS_COMPILE=$(TARGET_CROSS) \ + SUBDIRS=$(PKG_BUILD_DIR) + modules +endef + +$(eval $(call KernelPackage,leds-parport)) -- 1.5.5.1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [patch] include kmod-leds-gpio in NSLU2 build
When the NSLU2 build switched from 2.6.23 to 2.6.24, this module became necessary to control the LEDs. More info is in the forum: http://forum.openwrt.org/viewtopic.php?id=15050 Signed-off-by: Ben Pfountz [EMAIL PROTECTED] diff -urN --exclude=.svn target.old/linux/ixp4xx/generic/profiles/200-NSLU2.mk target/linux/ixp4xx/generic/profiles/200-NSLU2.mk --- target.old/linux/ixp4xx/generic/profiles/200-NSLU2.mk 2008-04-28 15:46:19.0 -0400 +++ target/linux/ixp4xx/generic/profiles/200-NSLU2.mk 2008-04-28 16:05:42.0 -0400 @@ -10,7 +10,7 @@ PACKAGES:=kmod-ixp4xx-npe \ kmod-scsi-core \ kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-storage \ - kmod-fs-ext2 kmod-fs-ext3 + kmod-fs-ext2 kmod-fs-ext3 kmod-leds-gpio endef define Profile/NSLU2/Description diff -urN package.old/kernel/modules/other.mk package/kernel/modules/other.mk --- package.old/kernel/modules/other.mk 2008-04-28 16:30:09.0 -0400 +++ package/kernel/modules/other.mk 2008-04-28 16:35:34.0 -0400 @@ -294,7 +294,7 @@ define KernelPackage/leds-gpio SUBMENU:=$(OTHER_MENU) TITLE:=GPIO LED support - DEPENDS:[EMAIL PROTECTED] + DEPENDS:[EMAIL PROTECTED]||@TARGET_ixp4xx KCONFIG:=CONFIG_LEDS_GPIO FILES:=$(LINUX_DIR)/drivers/leds/leds-gpio.$(LINUX_KMOD_SUFFIX) AUTOLOAD:=$(call AutoLoad,60,leds-gpio) ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [patch] Fixes compile problem with freeradius
Compile fix for freeradius build, more info can be found in trac: https://dev.openwrt.org/ticket/2731 Signed-off-by: Ben Pfountz [EMAIL PROTECTED] diff -urN feeds.old/packages/net/freeradius/patches/010-ltdl.patch feeds/packages/net/freeradius/patches/010-ltdl.patch --- feeds.old/packages/net/freeradius/patches/010-ltdl.patch1969-12-31 19:00:00.0 -0500 +++ feeds/packages/net/freeradius/patches/010-ltdl.patch2008-02-16 11:43:49.0 -0500 @@ -0,0 +1,24 @@ +diff -urN freeradius-1.1.6.old/src/include/modpriv.h freeradius-1.1.6/src/include/modpriv.h +--- freeradius-1.1.6.old/src/include/modpriv.h 2008-02-16 11:27:01.0 -0500 freeradius-1.1.6/src/include/modpriv.h 2008-02-16 11:26:24.0 -0500 +@@ -4,7 +4,7 @@ + * Version: $Id: modpriv.h,v 1.3 2004/02/26 19:04:19 aland Exp $ */ + #include radiusd.h + #include modules.h +-#include ltdl.h ++#include ../../libltdl/ltdl.h + + /* + *Keep track of which modules we've loaded. +diff -urN freeradius-1.1.6/src/main/modules.c freeradius-1.1.6.old/src/main/modules.c +--- freeradius-1.1.6/src/main/modules.c2008-02-16 11:42:36.0 -0500 freeradius-1.1.6.old/src/main/modules.c2008-02-16 11:42:14.0 -0500 +@@ -36,7 +36,7 @@ + #include modules.h + #include modcall.h + #include conffile.h +-#include ltdl.h ++#include ../../libltdl/ltdl.h + #include rad_assert.h + + /* ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [patch] update netconfig for wl-500w
This patch lets netconfig support the asus wl-500w. I've been using it for some time now without problems. Signed-off-by: Ben Pfountz [EMAIL PROTECTED] diff -urN --exclude=.svn target.old/linux/brcm-2.4/base-files/etc/init.d/netconfig target/linux/brcm-2.4/base-files/etc/init.d/netconfig --- target.old/linux/brcm-2.4/base-files/etc/init.d/netconfig 2008-01-28 10:11:40.0 -0500 +++ target/linux/brcm-2.4/base-files/etc/init.d/netconfig 2008-01-28 13:18:07.0 -0500 @@ -127,6 +127,12 @@ c[vlan0ports]=0 1 2 3 5* c[vlan1ports]=4 5 } + if (model == ASUS WL-500W) { + c[lan_ifname] = eth0 + c[wan_ifname] = eth1 + c[vlan0ports] = 0 1 2 3 4 5u + c[vlan1ports] = + } print VLAN configuration print config switch eth0 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [patch] ppp ip-up and ip-down breaks with pptp connection
This patch allows the ip-up and ip-down scripts to work correctly for both pptp vpn clients and pppoe wan links. More info available in trac: https://dev.openwrt.org/ticket/2342#comment:2 Signed-off-by: Ben Pfountz [EMAIL PROTECTED] diff -urN package.old/ppp/files/etc/ppp/ip-down package/ppp/files/etc/ppp/ip-down --- package.old/ppp/files/etc/ppp/ip-down 2008-04-10 00:14:14.0 -0400 +++ package/ppp/files/etc/ppp/ip-down 2008-04-10 00:15:53.0 -0400 @@ -4,7 +4,7 @@ PPP_SPEED=$3 PPP_LOCAL=$4 PPP_REMOTE=$5 -PPP_IPPARAM=$6 +PPP_IPPARAM=$(echo $6 | sed 's/\./_/g') export PPP_IFACE PPP_TTY PPP_SPEED PPP_LOCAL PPP_REMOTE PPP_IPPARAM [ -z $PPP_IPPARAM ] || { env -i ACTION=ifdown INTERFACE=$PPP_IPPARAM DEVICE=$PPP_IFACE PROTO=ppp /sbin/hotplug-call iface diff -urN package.old/ppp/files/etc/ppp/ip-up package/ppp/files/etc/ppp/ip-up --- package.old/ppp/files/etc/ppp/ip-up 2008-04-10 00:14:14.0 -0400 +++ package/ppp/files/etc/ppp/ip-up 2008-04-10 00:15:15.0 -0400 @@ -4,7 +4,7 @@ PPP_SPEED=$3 PPP_LOCAL=$4 PPP_REMOTE=$5 -PPP_IPPARAM=$6 +PPP_IPPARAM=$(echo $6 | sed 's/\./_/g') export PPP_IFACE PPP_TTY PPP_SPEED PPP_LOCAL PPP_REMOTE PPP_IPPARAM [ -z $PPP_IPPARAM ] || env -i ACTION=ifup INTERFACE=$PPP_IPPARAM DEVICE=$PPP_IFACE PROTO=ppp /sbin/hotplug-call iface [ -z $PPP_IPPARAM -o -z $PPP_LOCAL ] || { ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH 1/7] build: fix watchdog path for 2.6.24+
Geoff Levand wrote: It would be nice if we had a patch description for this and your other changes, that stated what they do or why they were needed. This patch is needed because in 2.6.24 the watchdog directory was changed. OpenWRT accounted for this by checking for 2.6.24, but of course that breaks when you use a kernel 2.6.24. This patch is basically a = check hack (check here for the source: https://dev.openwrt.org/ticket/3402) The other build patch is for the crypto modules which got renamed, almost the same issue (again, see https://dev.openwrt.org/ticket/3402) I didn't add a description to the first 3 patches because I thought they were obvious, so sorry for that, guess I was wrong. The rest of the patches are my current patchset for 2.6.25. It basically adds KGDB, RedBoot command line and watchdog support for Atheros. Of course this can be applied without switching Atheros to 2.6.25, I've tested it on 2.6.23 too (but not 2.6.24, although i refreshed the patches, I guess we will skip it for Atheros anyways). - Axel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Problem with build-system and feeds script
Oliver Ertl wrote: Now go to Utilities Editors and tell me if the nano package is selected as M Seems to work, it is selected as module. [EMAIL PROTECTED]:~/src/openwrt/test$ grep nano .config CONFIG_PACKAGE_nano=m [EMAIL PROTECTED]:~/src/openwrt/test$ - Axel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH][RFC] feeds: create config if not found
Check for a file named .config before actually installing the package. If it does not exist, create a default configuration file before proceeding. This fixes the problem where you get all entries marked as module in the generated configuration file when you use ./scripts/feeds install -d m pkg to install a package without having a .config file already. Signed-off-by: Axel Gembe [EMAIL PROTECTED] --- scripts/feeds | 15 --- 1 files changed, 12 insertions(+), 3 deletions(-) diff --git a/scripts/feeds b/scripts/feeds index 78e65ad..e3123a5 100755 --- a/scripts/feeds +++ b/scripts/feeds @@ -289,6 +289,10 @@ sub install_package { return $ret; } +sub make_defconfig { + system(make defconfig Config.in /dev/null 2/dev/null); +} + sub refresh_config { my $default = shift; @@ -299,10 +303,15 @@ sub refresh_config { if ($default) { system(make oldconfig CONFDEFAULT=\$default\ Config.in /dev/null 2/dev/null); } else { - system(make defconfig Config.in /dev/null 2/dev/null); + make_defconfig(); } } +sub check_for_config { + # make sure we have a config file + -f .config or make_defconfig(); +} + sub install { my $name; my %opts; @@ -326,6 +335,8 @@ sub install { $opts{p} and $f-[1] eq $opts{p} and $feed = $f; } + check_for_config(); + if($opts{a}) { foreach my $f (@feeds) { if (!defined($opts{p}) or $opts{p} eq $f-[1]) { @@ -345,8 +356,6 @@ sub install { } } - # workaround for timestamp check - # set the defaults if ($opts{d} and $opts{d} =~ /^[ymn]$/) { refresh_config($opts{d}); -- 1.5.5.1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH][RFC] feeds: create config if not found
Sorry about the wrong time, I just installed an NTP client on my dev install. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [patch] Add vim-full vim-runtime vim-doc targets
Michael wrote: Here is a patch that adds a vim-full (normal options) target to vim... as well as split out vim-runtime and vim-doc. The vim-runtime could probably be split further into base/ syntax but given that it requires 1.4 M vim-full I'm not too worried. Signed-off-by: Michael Geddes michael at frog.wheelycreek.net Index: utils/vim/Makefile === --- utils/vim/Makefile(revision 10654) +++ utils/vim/Makefile(working copy) @@ -20,7 +20,7 @@ include $(INCLUDE_DIR)/package.mk -define Package/vim +define Package/vim/Default SECTION:=utils CATEGORY:=Utilities DEPENDS:=+libncurses @@ -29,15 +29,59 @@ SUBMENU:=editors endef +define Package/vim + $(call Packages/vim/Default) + TITLE+= (Tiny) +endef + +define Package/vim-full + $(call Packages/vim/Default) + TITLE+= (Normal) +endef + +define Package/vim-runtime + $(call Packages/vim/Default) + TITLE+= (runtime files) +endef + +define Package/vim-help + $(call Packages/vim/Default) + TITLE+= (help files) +endef + +define Package/vim-full/conffiles +/usr/share/vim/vimrc +endef + +define Package/vim/conffiles +/usr/share/vim/vimrc +endef + define Package/vim/description Vim is an almost compatible version of the UNIX editor Vi. + (Tiny build) endef +define Package/vim-full/description + Vim is an almost compatible version of the UNIX editor Vi. + (Normal build) +endef + +define Package/vim-runtime/description + Vim is an almost compatible version of the UNIX editor Vi. + (Runtime files) +endef + +define Package/vim-help/description + Vim is an almost compatible version of the UNIX editor Vi. + (Help files) +endef + + CONFIGURE_ARGS += \ --disable-gui \ --disable-gtktest \ --disable-xim \ - --with-features=tiny \ --without-x \ --disable-multibyte \ --disable-netbeans \ @@ -45,11 +89,94 @@ --disable-gpm \ --with-tlib=ncurses -define Package/vim/install +ifneq ($(CONFIG_PACKAGE_vim),) +define Build/Compile/vim + $(call Build/Configure/Default, \ + --with-features=tiny \ + ) + $(MAKE) -C $(PKG_BUILD_DIR) clean + $(MAKE) -C $(PKG_BUILD_DIR) \ + DESTDIR=$(PKG_INSTALL_DIR) \ + all + $(CP) $(PKG_BUILD_DIR)/src/$(PKG_NAME) $(PKG_BUILD_DIR)/vim_tiny +endef +endif + +ifneq ($(CONFIG_PACKAGE_vim-full),) +define Build/Compile/vim-full + $(call Build/Configure/Default, \ + --with-features=normal \ + ) + $(MAKE) -C $(PKG_BUILD_DIR) clean + $(MAKE) -C $(PKG_BUILD_DIR) \ + DESTDIR=$(PKG_INSTALL_DIR) \ + all + $(CP) $(PKG_BUILD_DIR)/src/$(PKG_NAME) $(PKG_BUILD_DIR)/vim_normal +endef +endif + +define Build/Compile/vim-runtime + $(MAKE) -C $(PKG_BUILD_DIR)/src DESTDIR=$(PKG_INSTALL_DIR) installrtbase + tar -czf $(PKG_BUILD_DIR)/docs.tgz $(PKG_INSTALL_DIR)/usr/share/vim/vim*/doc + rm -rf $(PKG_INSTALL_DIR)/usr/share/vim/vim*/doc + rm -rf $(PKG_INSTALL_DIR)/usr/man +endef + +define Build/Configure +endef + +define Build/Compile +$(call Build/Compile/vim) +$(call Build/Compile/vim-full) +$(call Build/Compile/vim-runtime) +endef + +define Package/vim/install $(INSTALL_DIR) $(1)/usr/bin - $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/$(PKG_NAME) $(1)/usr/bin/ + $(INSTALL_BIN) $(PKG_BUILD_DIR)/vim_tiny $(1)/usr/bin/vim $(INSTALL_DIR) $(1)/usr/share/vim $(INSTALL_CONF) ./files/vimrc $(1)/usr/share/vim/ endef + +define Package/vim-full/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/vim_normal $(1)/usr/bin/vim + $(INSTALL_DIR) $(1)/usr/share/vim + $(INSTALL_CONF) ./files/vimrc.full $(1)/usr/share/vim/vimrc +endef + +define Package/vim-runtime/install + $(CP) $(PKG_INSTALL_DIR)/* $(1) + rm -rf $(1)/usr/share/vim/vim*/doc +endef + +define Package/vim-help/install + tar -C $(1) -xzf $(PKG_BUILD_DIR)/docs.tgz +endef + +define Package/vim-full/postinst +#!/bin/sh + if [ $${IPKG_INSTROOT} != / ] + then +if [ -d /usr/share/ ] + ln -s $${IPKG_INSTROOT}/usr/share/vim/ /usr/share/ +fi + fi +endef + +define Package/vim/postinst +#!/bin/sh + if [ $${IPKG_INSTROOT} != / ] + then +if [ -d /usr/share/ ] + ln -s $${IPKG_INSTROOT}/usr/share/vim/vimrc /usr/share/vim/vimrc +fi + fi +endef + $(eval $(call BuildPackage,vim)) +$(eval $(call BuildPackage,vim-full)) +$(eval $(call BuildPackage,vim-runtime)) +$(eval $(call BuildPackage,vim-help)) + Index: utils/vim/files/vimrc.full === --- utils/vim/files/vimrc.full +++ utils/vim/files/vimrc.full(working copy) @@ -0,0 +1,23 @@ +set showcmd Show (partial) command in status line.
Re: [OpenWrt-Devel] [PATCH] update bemusedlinuxserver
[EMAIL PROTECTED] wrote: Update Bemusedlinuxserver to latest version. Signed-off-by: Michael Vogt michu at neophob.com ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel Committed in r11066. Thanks Travis ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] new package: st2205tool
[EMAIL PROTECTED] wrote: this library is useful for hacked picframe displays. you can use this lib also with lcd4linux. check http://picframe.spritesserver.nl/wiki for more information. Signed-off-by: Michael Vogt michu at neophob.com ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel Committed in r11068. Thanks Travis ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] update lcd4linux
[EMAIL PROTECTED] wrote: update lcd4linux to the latest svn version Signed-off-by: Michael Vogt michu at neophob.com ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel Committed in r11069. Thanks Travis ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [patch] include kmod-leds-gpio in NSLU2 build
Ben Pfountz wrote: When the NSLU2 build switched from 2.6.23 to 2.6.24, this module became necessary to control the LEDs. More info is in the forum: http://forum.openwrt.org/viewtopic.php?id=15050 Signed-off-by: Ben Pfountz [EMAIL PROTECTED] diff -urN --exclude=.svn target.old/linux/ixp4xx/generic/profiles/200-NSLU2.mk target/linux/ixp4xx/generic/profiles/200-NSLU2.mk --- target.old/linux/ixp4xx/generic/profiles/200-NSLU2.mk 2008-04-28 15:46:19.0 -0400 +++ target/linux/ixp4xx/generic/profiles/200-NSLU2.mk 2008-04-28 16:05:42.0 -0400 @@ -10,7 +10,7 @@ PACKAGES:=kmod-ixp4xx-npe \ kmod-scsi-core \ kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-storage \ - kmod-fs-ext2 kmod-fs-ext3 + kmod-fs-ext2 kmod-fs-ext3 kmod-leds-gpio endef define Profile/NSLU2/Description diff -urN package.old/kernel/modules/other.mk package/kernel/modules/other.mk --- package.old/kernel/modules/other.mk 2008-04-28 16:30:09.0 -0400 +++ package/kernel/modules/other.mk 2008-04-28 16:35:34.0 -0400 @@ -294,7 +294,7 @@ define KernelPackage/leds-gpio SUBMENU:=$(OTHER_MENU) TITLE:=GPIO LED support - DEPENDS:[EMAIL PROTECTED] + DEPENDS:[EMAIL PROTECTED]||@TARGET_ixp4xx KCONFIG:=CONFIG_LEDS_GPIO FILES:=$(LINUX_DIR)/drivers/leds/leds-gpio.$(LINUX_KMOD_SUFFIX) AUTOLOAD:=$(call AutoLoad,60,leds-gpio) ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel This patch no longer cleanly applies can you please update and resend it. Thanks Travis ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [patch] update netconfig for wl-500w
Ben Pfountz wrote: This patch lets netconfig support the asus wl-500w. I've been using it for some time now without problems. Signed-off-by: Ben Pfountz [EMAIL PROTECTED] diff -urN --exclude=.svn target.old/linux/brcm-2.4/base-files/etc/init.d/netconfig target/linux/brcm-2.4/base-files/etc/init.d/netconfig --- target.old/linux/brcm-2.4/base-files/etc/init.d/netconfig 2008-01-28 10:11:40.0 -0500 +++ target/linux/brcm-2.4/base-files/etc/init.d/netconfig 2008-01-28 13:18:07.0 -0500 @@ -127,6 +127,12 @@ c[vlan0ports]=0 1 2 3 5* c[vlan1ports]=4 5 } + if (model == ASUS WL-500W) { + c[lan_ifname] = eth0 + c[wan_ifname] = eth1 + c[vlan0ports] = 0 1 2 3 4 5u + c[vlan1ports] = + } print VLAN configuration print config switch eth0 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel Committed in r11070. Thanks Travis ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel