Re: [OpenWrt-Devel] ath9k in openwrt

2010-02-08 Thread Michael Geddes
I use Ath9k drivers.  I have the option to show unstable stuff for other 
reasons, so it _could_ be in there.

The drivers work pretty well.. .though  not entirely stable.  Every few days I 
have to run a script that will ifdown wlan,  rmmod the modules, insert the 
modules back and ifup wlan... and every now and again, the server reboots 
itself, I believe because of ath9k drivers.. and even rarer, I get a crashed 
kernel on occasions.

hth

Michael G.

On Mon, 8 Feb 2010 12:45:44 pm Iwan Budi Kusnanto wrote:
 Hi All,
 
  From http://linuxwireless.org/en/users/Drivers/ath9k
 OpenWrt became the first distribution to pick up ath9k and contribute
 to it.
 But i can't see any ath9k option when doing 'make menuconfig'. Is this
 because ath9k still considered unstable ?
 
 Best Regards,
 Iwan Budi Kusnanto
 ___
 openwrt-devel mailing list
 openwrt-devel@lists.openwrt.org
 https://lists.openwrt.org/mailman/listinfo/openwrt-devel
 
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] add support of m25p80 with mx25lxxx support to kirkwood (add filename information)

2010-02-08 Thread Gabor Juhos
Macpaul Lin írta:
 Description:
 
 1. Suggestion:
 1.a This patch add support of m25p80 with mx25lxxx support to kirkwood
 based platform.
 1.b Because mx25lxxx series are used by many kind of platform with many CPU.
  I also suggest someone to merge the patch related to m25p80 in
 /target/linux/ar71xx with this patch (for kirkwood) into
 /target/linux/generic-2.6/patches

Done, although only for 2.6.32.

 
 2. Patch file placement:
 /trunk/target/linux/kirkwood/patches
 
 3. Patch filename:
 100-mtd_m25p80_add_mx25lxxx_support.patch
 
 Signed-off-by: Macpaul Lin macp...@gmail.com
 
 ---
 
 Index: linux-2.6.32.7/drivers/mtd/devices/m25p80.c
 ===
 --- a/drivers/mtd/devices/m25p80.c2009-06-10 11:05:27.0 +0800
 +++ b/drivers/mtd/devices/m25p80.c2009-06-19 18:31:21.0 +0800
 @@ -500,6 +500,12 @@
   { at26df161a, 0x1f4601, 0, 64 * 1024, 32, SECT_4K, },
   { at26df321,  0x1f4701, 0, 64 * 1024, 64, SECT_4K, },
 
 + /* Macronix */
 + { mx25l3205d, 0xc22016, 0, 16 * 1024, 256, },

 ^^^ wrong values   

 + { mx25l6405d, 0xc22017, 0, 64 * 1024, 128, },
 + { mx25l12805d, 0xc22018, 0, 64 * 1024, 256, },
 + { mx25l12855e, 0xc22618, 0, 64 * 1024, 256, },
 +
   /* Spansion -- single (large) sector size only, at least
* for the chips listed here (without boot sectors).
*/
 ___
 openwrt-devel mailing list
 openwrt-devel@lists.openwrt.org
 https://lists.openwrt.org/mailman/listinfo/openwrt-devel
 

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] add support of m25p80 with mx25lxxx support to kirkwood (add filename information)

2010-02-08 Thread Macpaul Lin
Hi Gabor,

This patch also adaptable to current 2.6.30 and 2.6.31.12 kernels.
I suggest to modify the target architecture of kirkwood cpu in the form.

/target/linux/kirkwood/patches-2.6.32
/target/linux/kirkwood/patches-2.6.31
/target/linux/kirkwood/patches-2.6.30
and
config-2.6.32
config-2.6.31
config-2.6.30

for better supporting with different kernels.

2010/2/8 Gabor Juhos juh...@openwrt.org:
 Macpaul Lin írta:
 Description:

 1. Suggestion:
 1.a This patch add support of m25p80 with mx25lxxx support to kirkwood
 based platform.
 1.b Because mx25lxxx series are used by many kind of platform with many CPU.
      I also suggest someone to merge the patch related to m25p80 in
 /target/linux/ar71xx with this patch (for kirkwood) into
 /target/linux/generic-2.6/patches

 Done, although only for 2.6.32.


 2. Patch file placement:
 /trunk/target/linux/kirkwood/patches

 3. Patch filename:
 100-mtd_m25p80_add_mx25lxxx_support.patch

 Signed-off-by: Macpaul Lin macp...@gmail.com

 ---

 Index: linux-2.6.32.7/drivers/mtd/devices/m25p80.c
 ===
 --- a/drivers/mtd/devices/m25p80.c    2009-06-10 11:05:27.0 +0800
 +++ b/drivers/mtd/devices/m25p80.c    2009-06-19 18:31:21.0 +0800
 @@ -500,6 +500,12 @@
       { at26df161a, 0x1f4601, 0, 64 * 1024, 32, SECT_4K, },
       { at26df321,  0x1f4701, 0, 64 * 1024, 64, SECT_4K, },

 +     /* Macronix */
 +     { mx25l3205d, 0xc22016, 0, 16 * 1024, 256, },

                                     ^^^ wrong values

 +     { mx25l6405d, 0xc22017, 0, 64 * 1024, 128, },
 +     { mx25l12805d, 0xc22018, 0, 64 * 1024, 256, },
 +     { mx25l12855e, 0xc22618, 0, 64 * 1024, 256, },
 +
       /* Spansion -- single (large) sector size only, at least
        * for the chips listed here (without boot sectors).
        */
 ___
 openwrt-devel mailing list
 openwrt-devel@lists.openwrt.org
 https://lists.openwrt.org/mailman/listinfo/openwrt-devel






-- 
Best regards,
Macpaul Lin
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] compression mode of jffs2

2010-02-08 Thread Bas Mevissen
On Sun, 2010-02-07 at 18:00 +0100, Matthias Buecher / Germany wrote:
 How will this affect performance (the opposite side of compression)?
 If it does, then it would be great if this would be selectable and not
 hardcoded.
 
 Just my two cents
 Maddes
 
 On 07.02.2010 17:44, edgar.sol...@web.de wrote:
  I discovered a currently not used option of jffs2. It allows the setting
  of a compression mode. Because size matters on embedded devices I wonder
  why this is not enabled. Attached a patch that does that. I tried it and
  it works.
  

My 2 cents: compare the boot time between the jffs2 with and without the
patch. Can you also give an example in the actual flash space saved by
the patch?

Bas.


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] compression mode of jffs2

2010-02-08 Thread edgar . soldin

Any idea how to measure boot time? I don't have serial console access. ede

On 08.02.2010 11:14, Bas Mevissen wrote:

On Sun, 2010-02-07 at 18:00 +0100, Matthias Buecher / Germany wrote:

How will this affect performance (the opposite side of compression)?
If it does, then it would be great if this would be selectable and not
hardcoded.

Just my two cents
Maddes

On 07.02.2010 17:44, edgar.sol...@web.de wrote:

I discovered a currently not used option of jffs2. It allows the setting
of a compression mode. Because size matters on embedded devices I wonder
why this is not enabled. Attached a patch that does that. I tried it and
it works.



My 2 cents: compare the boot time between the jffs2 with and without the
patch. Can you also give an example in the actual flash space saved by
the patch?

Bas.


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] compression mode of jffs2

2010-02-08 Thread Bastian Bittorf
* Bas Mevissen ab...@basmevissen.nl [08.02.2010 11:20]:
 
 My 2 cents: compare the boot time between the jffs2 with and without the
 patch. Can you also give an example in the actual flash space saved by
 the patch?

boottime should'nt be affected, because bootpartition is squashfs,
only the writeable partition is jffs2. In theory i vote for default to
size-optimization and make it menuconfig-selectable to switch to old mode.

bye, Bastian


signature.asc
Description: Digital signature
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] compression mode of jffs2

2010-02-08 Thread Bas Mevissen
On Mon, 2010-02-08 at 11:25 +0100, edgar.sol...@web.de wrote:
 Any idea how to measure boot time? I don't have serial console access. ede
 

some LED changing state, first respond to ping or wait for first
broadcast packet from ethernet (e.g. arp, dhcp) with wireshark.

Bas.


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 2/5] SPI: Make sure that there always is a falling edge.

2010-02-08 Thread Jonas Gorski
Make sure that at the end of any transmit is a falling edge on the clock.
---
 target/linux/ar71xx/files/drivers/spi/ar71xx_spi.c |1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/target/linux/ar71xx/files/drivers/spi/ar71xx_spi.c 
b/target/linux/ar71xx/files/drivers/spi/ar71xx_spi.c
index 3559905..cb6e1b7 100644
--- a/target/linux/ar71xx/files/drivers/spi/ar71xx_spi.c
+++ b/target/linux/ar71xx/files/drivers/spi/ar71xx_spi.c
@@ -175,6 +175,7 @@ static u32 ar71xx_spi_txrx_mode0(struct spi_device *spi, 
unsigned nsecs,
}
 
 #ifndef PER_BIT_READ
+   __raw_writel(ioc, base + SPI_REG_IOC);
ret = __raw_readl(base + SPI_REG_RDS);
 #endif
return ret;
-- 
1.6.5

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 4/5] Add support for the RTC on the Routerstation Pro.

2010-02-08 Thread Jonas Gorski
The RTC on the Routerstation Pro is connected through SPI and shares
its line with the flash. Linux' SPI driver does not allow more than
one device per CS, so create special handling so CS1 high is handled
internally as CS0 high.
---
 .../ar71xx/files/arch/mips/ar71xx/mach-ubnt.c  |   54 +++-
 1 files changed, 53 insertions(+), 1 deletions(-)

diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ubnt.c 
b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ubnt.c
index 5b1c504..bcdbc5a 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ubnt.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ubnt.c
@@ -122,6 +122,49 @@ static struct gpio_button ubnt_m_gpio_buttons[] __initdata 
= {
}
 };
 
+
+static struct spi_board_info ubnt_rspro_spi_devices[] = {
+{
+.bus_num= 0,
+.chip_select= 0,
+.max_speed_hz   = 2500,
+.modalias   = m25p80,
+},
+   {
+   .bus_num= 0,
+   .chip_select= 1,
+   .max_speed_hz   = 100,
+   .modalias   = rtc-pcf2123,
+   .mode   = SPI_CS_HIGH,
+   }
+};
+
+/* Linux does not allow devices sharing a cs, fake cs 0 high to be cs 1 high */
+static u32 ubnt_rspro_get_ioc_base(u8 chip_select, int cs_high, int is_on)
+{
+u32 ret;
+
+/* ugly workaround */
+if (cs_high  chip_select == 1)
+chip_select = 0;
+
+if ((is_on == AR71XX_SPI_CS_INACTIVE  !cs_high)
+   || (is_on == AR71XX_SPI_CS_ACTIVE  cs_high))
+ret = SPI_IOC_CS_ALL;
+else
+ret = SPI_IOC_CS_ALL  ~SPI_IOC_CS(chip_select);
+
+return ret;
+}
+
+static struct ar71xx_spi_platform_data ubnt_rspro_spi_master = {
+.bus_num   = 0,
+.num_chipselect= 3,
+   .mode_bits  = SPI_CS_HIGH,
+.get_ioc_base  = ubnt_rspro_get_ioc_base,
+};
+
+
 static void __init ubnt_generic_setup(void)
 {
ar71xx_add_device_m25p80(NULL);
@@ -171,7 +214,16 @@ MIPS_MACHINE(AR71XX_MACH_UBNT_AR71XX, Ubiquiti 
AR71xx-based board,
 
 static void __init ubnt_rspro_setup(void)
 {
-   ubnt_generic_setup();
+
+   ar71xx_add_device_spi(ubnt_rspro_spi_master,
+   ubnt_rspro_spi_devices,
+   ARRAY_SIZE(ubnt_rspro_spi_devices));
+
+   ar71xx_add_device_gpio_buttons(-1, UBNT_BUTTONS_POLL_INTERVAL,
+   ARRAY_SIZE(ubnt_gpio_buttons),
+   ubnt_gpio_buttons);
+
+   pb42_pci_init();
 
ar71xx_add_device_mdio(~(UBNT_RSPRO_WAN_PHYMASK | 
UBNT_RSPRO_LAN_PHYMASK));
 
-- 
1.6.5

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] compression mode of jffs2

2010-02-08 Thread Bas Mevissen
On Mon, 2010-02-08 at 11:32 +0100, Bastian Bittorf wrote:
 
 boottime should'nt be affected, because bootpartition is squashfs,

Ah, I use jffs2 as root (and only) fs on my dev boards.

 only the writeable partition is jffs2. In theory i vote for default to
 size-optimization and make it menuconfig-selectable to switch to old
 mode.
 

That sounds like a good plan.

Bas.


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] compression mode of jffs2

2010-02-08 Thread edgar . soldin
On second thought I actually think it would make sense to clarify the 
following points before taking any action. Not that I expected  anything 
to happen soon ;)


1. How is the compression evaluated. On per file or per file system 
basis. I couldn't really find docs telling this. Any hint appreciated.
2. Jffs2 compression seems to be in kernel from 2.6.15 on. Therefor it 
will probably not work on 2.4 ... I actually don't remember to have this 
tested. Hence I will have to.


Will dig a little more and come back with results.

regards ede



On 08.02.2010 11:32, Bastian Bittorf wrote:

* Bas Mevissenab...@basmevissen.nl  [08.02.2010 11:20]:


My 2 cents: compare the boot time between the jffs2 with and without the
patch. Can you also give an example in the actual flash space saved by
the patch?


boottime should'nt be affected, because bootpartition is squashfs,
only the writeable partition is jffs2. In theory i vote for default to
size-optimization and make it menuconfig-selectable to switch to old mode.

bye, Bastian



___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] syslog-ng: fix parallel build

2010-02-08 Thread Raphaël HUCK
Hi all,

this patch fixes parallel build for syslog-ng package.

-Raphaeldiff -pruN syslog-ng.orig/Makefile syslog-ng/Makefile
--- syslog-ng.orig/Makefile	2010-02-08 17:03:19.350660971 +0100
+++ syslog-ng/Makefile	2010-02-08 17:03:51.022918775 +0100
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2006-2009 OpenWrt.org
+# Copyright (C) 2006-2010 OpenWrt.org
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=syslog-ng
 PKG_VERSION:=1.6.12
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 PKG_MD5SUM:=a3cbfdb6e1e5beea181a7349749719f3
 
 PKG_SOURCE_URL:= \
@@ -17,6 +17,8 @@ PKG_SOURCE_URL:= \
 	http://www.balabit.com/downloads/files/syslog-ng/stable/src
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 
+PKG_INSTALL:=1
+
 include $(INCLUDE_DIR)/package.mk
 
 define Package/syslog-ng
@@ -49,10 +51,6 @@ define Build/Configure
 	)
 endef
 
-define Build/Compile
-	$(call Build/Compile/Default,DESTDIR=$(PKG_INSTALL_DIR) all install)
-endef
-
 define Package/syslog-ng/install
 	$(INSTALL_DIR) $(1)/usr/sbin
 	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/syslog-ng $(1)/usr/sbin/
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] New package powertop 1.11

2010-02-08 Thread Raphaël HUCK
Hi all,

this patch adds powertop:


http://www.lesswatts.org/projects/powertop/

Computer programs can make your computer use more power. PowerTOP is a
Linux tool that helps you find those programs that are misbehaving
while your computer is idle. The application that misbehaved the most
was the Linux kernel. However, as of version 2.6.21, the Linux kernel
went tickless, and no longer has a fixed 1000Hz timer tick. The result
(in theory) is huge power savings because the CPU stays in low power
mode for longer periods during system idle.


-Raphael

PS: this closes https://dev.openwrt.org/ticket/6570diff -pruN utils.orig/powertop/Makefile utils/powertop/Makefile
--- utils.orig/powertop/Makefile	1970-01-01 01:00:00.0 +0100
+++ utils/powertop/Makefile	2010-01-27 17:17:22.920970066 +0100
@@ -0,0 +1,39 @@
+#
+# Copyright (C) 2006-2010 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=powertop
+PKG_VERSION:=1.11
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=http://www.lesswatts.org/projects/powertop/download/
+PKG_MD5SUM:=3498f5983c683c3a57dce7379a722082
+
+PKG_INSTALL:=1
+PKG_FIXUP:=libtool
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/powertop
+  SECTION:=utils
+  CATEGORY:=Utilities
+  TITLE:=PowerTOP
+  DEPENDS:=+libncurses
+  KCONFIG:=CONFIG_DEBUG_KERNEL=y CONFIG_TIMER_STATS=y
+  URL:=http://www.lesswatts.org/
+endef
+
+define Package/powertop/description
+  PowerTOP is a Linux tool that helps you find those programs that are misbehaving while your computer is idle.
+endef
+
+define Package/powertop/install
+	$(CP) $(PKG_INSTALL_DIR)/* $(1)
+endef
+
+$(eval $(call BuildPackage,powertop))
diff -pruN utils.orig/powertop/patches/100-no-wide-ncurses.patch utils/powertop/patches/100-no-wide-ncurses.patch
--- utils.orig/powertop/patches/100-no-wide-ncurses.patch	1970-01-01 01:00:00.0 +0100
+++ utils/powertop/patches/100-no-wide-ncurses.patch	2010-01-27 17:15:20.001469193 +0100
@@ -0,0 +1,12 @@
+diff -pruN powertop-1.11.orig/Makefile powertop-1.11/Makefile
+--- powertop-1.11.orig/Makefile	2010-01-25 18:15:58.136730412 +0100
 powertop-1.11/Makefile	2010-01-25 18:17:52.114555881 +0100
+@@ -20,7 +20,7 @@ OBJS = powertop.o config.o process.o mis
+ 	
+ 
+ powertop: $(OBJS) Makefile powertop.h
+-	$(CC) ${CFLAGS}  $(OBJS) -lncursesw -o powertop
++	$(CC) ${LDFLAGS}  $(OBJS) -lncurses -o powertop
+ 	@(cd po/  $(MAKE))
+ 
+ powertop.1.gz: powertop.1
diff -pruN utils.orig/powertop/patches/200-no-gettext.patch utils/powertop/patches/200-no-gettext.patch
--- utils.orig/powertop/patches/200-no-gettext.patch	1970-01-01 01:00:00.0 +0100
+++ utils/powertop/patches/200-no-gettext.patch	2010-01-27 17:13:50.645223581 +0100
@@ -0,0 +1,50 @@
+diff -pruN powertop-1.11.orig/powertop.c powertop-1.11/powertop.c
+--- powertop-1.11.orig/powertop.c	2010-01-25 18:15:58.136730412 +0100
 powertop-1.11/powertop.c	2010-01-25 18:26:00.752868032 +0100
+@@ -30,7 +30,9 @@
+ #include stdint.h
+ #include sys/types.h
+ #include dirent.h
++#ifdef ENABLE_GETTEXT
+ #include libintl.h
++#endif
+ #include ctype.h
+ #include assert.h
+ #include locale.h
+@@ -783,9 +785,11 @@ int main(int argc, char **argv)
+ 	uint64_t cur_usage[8], cur_duration[8];
+ 	double wakeups_per_second = 0;
+ 
++#ifdef ENABLE_GETTEXT
+ 	setlocale (LC_ALL, );
+ 	bindtextdomain (powertop, /usr/share/locale);
+ 	textdomain (powertop);
++#endif
+ 
+  	while (1) {
+  		static struct option opts[] = {
+diff -pruN powertop-1.11.orig/powertop.h powertop-1.11/powertop.h
+--- powertop-1.11.orig/powertop.h	2010-01-25 18:15:58.136730412 +0100
 powertop-1.11/powertop.h	2010-01-25 18:24:03.928723362 +0100
+@@ -26,7 +26,9 @@
+ #ifndef __INCLUDE_GUARD_POWERTOP_H_
+ #define __INCLUDE_GUARD_POWERTOP_H_
+ 
++#ifdef ENABLE_GETTEXT
+ #include libintl.h
++#endif
+ 
+ struct line {
+ 	char	*string;
+@@ -86,7 +88,11 @@ extern suggestion_func *suggestion_activ
+ _x  _y ? _x : _y; })
+ 
+ 
++#ifdef ENABLE_GETTEXT
+ #define _(STRING)gettext(STRING)
++#else
++#define _(STRING)STRING
++#endif
+ 
+ 
+ #define PT_COLOR_DEFAULT1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] Fix tcpdump parallel build

2010-02-08 Thread Raphaël HUCK
Hi again,

this patch fixes tcpdump parallel build.

-Raphaeldiff -pruN tcpdump.orig/Makefile tcpdump/Makefile
--- tcpdump.orig/Makefile	2010-02-08 17:24:06.778911003 +0100
+++ tcpdump/Makefile	2010-02-08 17:24:35.694573060 +0100
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2007-2009 OpenWrt.org
+# Copyright (C) 2007-2010 OpenWrt.org
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=tcpdump
 PKG_VERSION:=4.0.0
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://www.tcpdump.org/release/ \
@@ -20,6 +20,8 @@ PKG_MD5SUM:=b22ca72890df2301d922c9f2d178
 
 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
 
+PKG_INSTALL:=1
+
 include $(INCLUDE_DIR)/package.mk
 
 define Package/tcpdump/default
@@ -48,22 +50,15 @@ CONFIGURE_VARS += \
 	HOSTCC=$(HOSTCC) \
 	td_cv_buggygetaddrinfo=no
 
+MAKE_FLAGS := \
+	CCOPT=$(TARGET_CFLAGS) INCLS=-I. $(TARGET_CPPFLAGS)
+
 ifeq ($(BUILD_VARIANT),mini)
   TARGET_CFLAGS += -DTCPDUMP_MINI
   CONFIGURE_ARGS += --disable-smb
-  MAKE_FLAGS := TCPDUMP_MINI=1
-else
-  MAKE_FLAGS :=
+  MAKE_FLAGS += TCPDUMP_MINI=1
 endif
 
-define Build/Compile
-	$(MAKE) -C $(PKG_BUILD_DIR) \
-		CCOPT=$(TARGET_CFLAGS) INCLS=-I. $(TARGET_CPPFLAGS) \
-		DESTDIR=$(PKG_INSTALL_DIR) \
-		$(MAKE_FLAGS) \
-		all install
-endef
-
 define Package/tcpdump/install
 	$(INSTALL_DIR) $(1)/usr/sbin
 	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/tcpdump $(1)/usr/sbin/
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] OpenWRT way of adding a new interface

2010-02-08 Thread Roberto Riggio

Hi,

i'm using the click modular router to create a wireless mesh netrwork.
What I'm doing at the moment is putting my init script in /etc/init.d/.

I was wondering what would be the openwrt way of doing it. what
my script does is launching a daemon which creates a tun interface.

where in openwrt the various interface are created and configured.

I.e. what i would like have at the end is a new entry in the 
/etc/config/network

with a new value for the field proto.

Could you give me a few pointer about where I should plug my new code?

--


Roberto Riggio, PhD
CREATE-NET
Pervasive Area
Researcher
Via alla Cascata 56/D - 38123 Povo Trento (Italy)
e-mail: roberto.rig...@create-net.org
Tel: (+39) 0461 408400 - interno/extension 708
Fax: (+39) 0461 421157
http://www.create-net.org/


The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited according to
the Italian Law 196/2003 of the Legislature. If you received this in
error, please contact the sender and delete the material from any
computer.

Le informazioni contenute in questo messaggio di posta elettronica e
nei file allegati sono da considerarsi strettamente riservate. Il loro
utilizzo e' consentito esclusivamente al destinatario del messaggio,
per le finalita' indicate nel messaggio stesso. Qualora riceveste questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla cancellazione del
messaggio stesso dal Vostro sistema. Trattenere il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo,
od utilizzarlo per finalita' diverse, costituisce comportamento
contrario ai principi dettati dal D. Lgs. 196/2003.

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] ath9k in openwrt

2010-02-08 Thread Otto Solares
On Mon, Feb 08, 2010 at 04:24:34PM +0800, Michael Geddes wrote:
 The drivers work pretty well.. .though  not entirely stable.  Every few days 
 I 
 have to run a script that will ifdown wlan,  rmmod the modules, insert the 
 modules back and ifup wlan... and every now and again, the server reboots 
 itself, I believe because of ath9k drivers.. and even rarer, I get a crashed 
 kernel on occasions.

Same here, just that in many cases a simple 'wifi' command will reset
and fix the situation but rarely I have to rmmod and insmod the ath9k
driver as you said.
-
 Otto
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] b43 driver

2010-02-08 Thread Stefan Monnier
 Note: The brcm47xx still won't work for those of you needing broadcom
 wifi, stick to brcm-2.4.  We will tell you when it does work.

 I need to know. How much may take time before we can use the b43 driver?
 One month? Half year?

IIUC the above note is conservative: the b43 driver in brcm47xx works
fine in many circumstances.  And that's been true for a while now.
E.g. it works fine in client mode (at least with WPA and without
encryption), and IIUC it may also work fine in master mode (i.e. as an
AP) without encryption, but not as an AP with WPA (not sure if it just
plain doesn't work, or simply suffers from serious performance bugs).

Also, last I heard, there is very little hope for improvement in the
foreseeable future: the b43 driver is actively maintained and improved,
but mostly to support more recent cards.  For older cards, there is
little interest, especially because it would require a fair bit of
reverse engineering (IIUC).

The above is mostly hearsay (except I can personally vouch for the fact
that the b43 drivers works fine as WPA-client with a WL-700gE) and vague
understandings, so take it with a grain of salt.


Stefan

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] How to add additional uci settings to system?

2010-02-08 Thread Matthias Buecher / Germany
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I want to add the following setup to /etc/config/system for the Orion
router WRT350Nv2:

config led
option sysfs'wrt350nv2:green:power'
option default  1

config led
option dev  wlan0
option sysfs'wrt350nv2:green:wireless'
option mode 'link tx rx'
option trigger  netdev

How to add this correctly to the trunk?
Are files from /trunk/package/base-files and
/trunk/target/linux/orion/base-files merged?
Or should I use /trunk/target/linux/orion/base-files/etc/uci-defaults?
Can this be added just for WRT350Nv2 only or will it be set for all
devices with Orion boards?

Direct help or links are greatly appreciated
Maddes

- --
http://www.maddes.net/
Home: Earth / Germany / Ruhr-Area
-BEGIN PGP SIGNATURE-
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAktwhN0ACgkQUXXT+9wZdbXZegCdECjisWAFB6wkipTjX4ROj+IB
cAsAnjT6bTBJh6PfwT8j9+QYrXFn+Yz0
=ehd7
-END PGP SIGNATURE-
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] nfsd-kernel-server umount problem

2010-02-08 Thread Peter Wagner
Hi

i found following problem:

/dev/sda4 5.3G  2.9G  2.1G  58% /mnt/data

this disk is mounted and shared to the local network... this share is also 
mounted on a pc in the local network.
now alltough the share is still mounted i do this:

server /root # /etc/init.d/nfsd stop
server /root # umount  /mnt/data
umount: can't umount /mnt/data: Device or resource busy
server /root # lsof |grep data
server /root #

the device is not umount able - nfsd has to be killed this way, then it works
server /root # rpc.nfsd 0
server /root # umount  /mnt/data
server /root #


after rpc.nfsd 0 is called this message is in dmesg:

nfsd: last server has exited, flushing export cache


patch attached please apply
i dont know if this is also needed for nfs-server

greets
diff --git a/net/nfs-kernel-server/files/nfsd.init b/net/nfs-kernel-server/files/nfsd.init
index 11db03d..6130bec 100644
--- a/net/nfs-kernel-server/files/nfsd.init
+++ b/net/nfs-kernel-server/files/nfsd.init
@@ -20,7 +20,7 @@ start() {
 
 stop() {
 	killall rpc.mountd 2 /dev/null
-	killall -9 rpc.nfsd 2 /dev/null
+	rpc.nfsd 0 2 /dev/null
 	/usr/sbin/exportfs -au
 	killall rpc.statd 2 /dev/null
 }
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] nfsd-kernel-server umount problem

2010-02-08 Thread Lars-Peter Clausen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Peter Wagner wrote:
 Hi

 i found following problem:

 /dev/sda4 5.3G  2.9G  2.1G  58% /mnt/data

 this disk is mounted and shared to the local network... this share
 is also mounted on a pc in the local network. now alltough the
 share is still mounted i do this:

 server /root # /etc/init.d/nfsd stop server /root # umount
 /mnt/data umount: can't umount /mnt/data: Device or resource busy
 server /root # lsof |grep data server /root #

 the device is not umount able - nfsd has to be killed this way,
 then it works server /root # rpc.nfsd 0 server /root # umount
 /mnt/data server /root #


 after rpc.nfsd 0 is called this message is in dmesg:

 nfsd: last server has exited, flushing export cache


 patch attached please apply i dont know if this is also needed for
 nfs-server

 greets

 --


 ___ openwrt-devel
 mailing list openwrt-devel@lists.openwrt.org
 https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Thanks, applied :)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAktwqbwACgkQBX4mSR26RiOfdgCfbydGLWGdFq/fCNXuxWLs3mLd
028An0RpAzhBm8r4HOdhgPTd/jftz9px
=3b/S
-END PGP SIGNATURE-

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] Automount enhanced/fixed, also fstab

2010-02-08 Thread Daniel Dickinson
On Sun, 2010-02-07 at 16:26 +0100, edgar.sol...@web.de wrote:
 What do you think of packaging hotplug automount separately? Now that
 it's that sophisticated it takes several kilobytes of space. Space that
 is valuable to users without non-usb-routers.

I think adding hotplugd-autmount (5K), plus a new package block-common
(for the things used by fstab, hotplug and soon external rootfs) (8K),
is not a good use of time and infrastracture.  It could be done and I'll
do it if the core devs want it, but honestly 13K is pretty miniscule and
it greatly complicates life for the many with USB devices if it
separate.

-- 
And that's my crabbing done for the day.  Got it out of the way early, 
now I have the rest of the afternoon to sniff fragrant tea-roses or 
strangle cute bunnies or something.   -- Michael Devore
GnuPG Key Fingerprint 86 F5 81 A5 D4 2E 1F 1C  http://gnupg.org
The C Shore (Daniel Dickinson's Website) http://cshore.is-a-geek.com


signature.asc
Description: This is a digitally signed message part
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] Automount enhanced/fixed, also fstab

2010-02-08 Thread Daniel Dickinson
On Sun, 2010-02-07 at 22:32 +0100, edgar.sol...@web.de wrote:
 The swap parts should be part of base files. The needed swapon/off could
 come from util-linux or busybox.

The idea was to have swap automount functionality only if swapon/of was
actually present.  I don't think that swapon/off from busybox is a
supported configuration since it required manual hacking of the busybox
config, but the core devs want me to make a separate package so that the
automount swap can be used with busybox swapon/off then I will.

Regards,

Daniel

-- 
And that's my crabbing done for the day.  Got it out of the way early, 
now I have the rest of the afternoon to sniff fragrant tea-roses or 
strangle cute bunnies or something.   -- Michael Devore
GnuPG Key Fingerprint 86 F5 81 A5 D4 2E 1F 1C  http://gnupg.org
The C Shore (Daniel Dickinson's Website) http://cshore.is-a-geek.com


signature.asc
Description: This is a digitally signed message part
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel