Re: [OpenWrt-Devel] Warnung vor Lötwasser beim TL-WDR4900

2013-09-12 Thread Vasilis Tsiligiannis
Στις Πεμ 12 Σεπτ 2013 09:34:34 Bastian Bittorf έγραψε:
> * Alina Friedrichsen  [12.09.2013 09:14]:
> > Könnt ihr bitte einen Warnung im Wiki anbringen, dass der Router extrem
> > empfindlich gegenüber Lötwasser ist? Mir sind dutzende Router
> > abgeraucht, weil ich zu viel Lötwasser aufgetragen habe. Nur ein ganz
> > feiner Strich von unten über die Pins. Bei mehr raucht der Router sofort
> > ab.
> 
> Yes, will do this. For the non-germans here:
> 
> Be extremely careful when soldering a serial console on
> TP-Link TL-WDR4900 - the design of the PCB is somehow
> not suited and important connection/parts are near
> the soldering points. We have now 3 Routers which are
> dead, just because we used too much soldering-water...
> 
> bye, bastian

Thanks

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


Re: [OpenWrt-Devel] [PATCH] Add RouterBOARD 951Ui-2HnD Support

2013-08-26 Thread Vasilis Tsiligiannis
Στις Δευ 26 Αυγ 2013 11:02:54 David Hutchison έγραψε:
> This patch enables OpenWRT to be ran on the RouterBOARD 951Ui-2HnD.
> GPIO 2 enables or disables the POE on port 5. By default we enable
> GPIO2. GPIO 20 controls the USB Power, by default it enables the USB
> port.
> 
> GPIO 20 is also exposed on the RouterBOARD 951G if anyone was curious.
> I did not include that in this patch.
> 
> I need some assistance creating a proper patch for the RouterBOARD
> 951U. I have the RouterBOARD 951U working, and will include all of the
> code necessary.
> 
> First the architecture:
> 
> --- target/linux/ar71xx/files/arch/mips/ath79/mach-rb95x.c
> +++ target/linux/ar71xx/files/arch/mips/ath79/mach-rb95x.c
> @@ -37,6 +37,7 @@
>  #include "dev-wmac.h"
>  #include "machtypes.h"
>  #include "routerboot.h"
> +#include "dev-leds-gpio.h"
> 
>  #define RB95X_GPIO_NAND_NCE14
> 
> @@ -86,6 +95,39 @@
> 
> +
> +static struct gpio_led rb951ui_leds_gpio[] __initdata = {
> +{
> +.name= "rb951ui:wlan",
> +.gpio= 11,
> +.active_low= 1,
> +}, {
> +.name= "rb951ui:act",
> +.gpio= 3,
> +.active_low= 1,
> +}, {
> +.name= "rb951ui:lan:port1",
> +.gpio= 13,
> +.active_low= 1,
> +}, {
> +.name= "rb951ui:lan:port2",
> +.gpio= 12,
> +.active_low= 1,
> +}, {
> +.name= "rb951ui:lan:port3",
> +.gpio= 4,
> +.active_low= 1,
> +}, {
> +.name= "rb951ui:lan:port4",
> +.gpio= 21,
> +.active_low= 1,
> +}, {
> +.name= "rb951ui:lan:port5",
> +.gpio= 16,
> +.active_low= 1,
>  }
>  };
> 
> @@ -212,3 +254,35 @@
> 
>  MIPS_MACHINE(ATH79_MACH_RB_951G, "951G", "MikroTik RouterBOARD 951G-2HnD",
>   rb951g_setup);
> +
> +static void __init rb951ui_setup(void)
> +{
> +rb95x_gpio_init();
> +rb95x_nand_init();
> +
> +ath79_setup_ar934x_eth_cfg(AR934X_ETH_CFG_SW_ONLY_MODE);
> +
> +ath79_register_mdio(1, 0x0);
> +
> +ath79_init_mac(ath79_eth0_data.mac_addr, ath79_mac_base, 0);
> +ath79_init_mac(ath79_eth1_data.mac_addr, ath79_mac_base, 1);
> +
> +ath79_switch_data.phy4_mii_en = 1;
> +ath79_switch_data.phy_poll_mask = BIT(4);
> +ath79_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_MII;
> +ath79_eth0_data.phy_mask = BIT(4);
> +ath79_eth0_data.mii_bus_dev = &ath79_mdio1_device.dev;
> +ath79_register_eth(0);
> +
> +ath79_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_GMII;
> +ath79_register_eth(1);
> +
> +gpio_request_one(20,
> +   GPIOF_OUT_INIT_HIGH | GPIOF_EXPORT_DIR_CHANGEABLE,
> +   "USB power");
> +
> +gpio_request_one(2,
> +GPIOF_OUT_INIT_HIGH | GPIOF_EXPORT_DIR_CHANGEABLE,
> +"POE power");

I think you might have some whitespace or formatting errors above

> +
> +rb95x_wlan_init();
> +ath79_register_usb();
> +
> +ath79_register_leds_gpio(-1, ARRAY_SIZE(rb951ui_leds_gpio),
> + rb951ui_leds_gpio);
> +}
> +
> +MIPS_MACHINE(ATH79_MACH_RB_951U, "951HnD", "MikroTik RouterBOARD
> 951Ui-2HnD", + rb951ui_setup);
> 
> Here is the part I am confused on. There are two files "machtypes.h"
> and "prom.c". We need to add "ATH79_MACH_RB_951U" to "machtypes.h".
> I'm not sure where in the target directory "machtypes.h" is. It
> appears that both files are managed by a *.patch file in the patches
> directory. Does the PATCH submitted need to be a patch of a patch
> file? or a new patch? Should
> target/linux/ar71xx/ath79/patches/610-MIPS-ath79-openwrt-machines.patch
> be modified, or add a 612-MIPS-ath79-openwrt-rb951u.patch ?

I beleive it should be a patch of 610-MIPS-ath79-openwrt-machines.patch

 
> Here are the changes that need to happen:
> 
> +++ machtypes.h
> @@ -74,6 +74,7 @@
>  ATH79_MACH_RB_751,/* MikroTik RouterBOARD 751 */
>  ATH79_MACH_RB_751G,/* Mikrotik RouterBOARD 751G */
>  ATH79_MACH_RB_951G,/* Mikrotik RouterBOARD 951G */
> +ATH79_MACH_RB_951U,/* Mikrotik RouterBOARD 951U */
>  ATH79_MACH_RB_2011G,/* Mikrotik RouterBOARD 2011UAS-2HnD */
>  ATH79_MACH_RB_2011L,/* Mikrotik RouterBOARD 2011L */
>  ATH79_MACH_RB_2011US,/* Mikrotik RouterBOARD 2011UAS */
> 
> Now to enable serial:
> 
> +++ prom.c
> @@ -183,6 +183,7 @@
> 
>  if (strstr(arcs_cmdline, "board=750Gr3") ||
>  strstr(arcs_cmdline, "board=951G") ||
> +strstr(arcs_cmdline, "board=951HnD") ||
>  strstr(arcs_cmdline, "board=2011L"))
>  ath79_prom_append_cmdline("console", "ttyS0,115200");
>  }
> 
> 
> Signed-off-by: Davey Hutchison 


signature.asc
Description: This is a digitally signed message part.
_

Re: [OpenWrt-Devel] [Patch][packages] umurmur: update to 0.2.13

2013-08-13 Thread Vasilis Tsiligiannis
Hello,

Στις Δευ 12 Αυγ 2013 12:02:04 Dirk Neukirchen έγραψε:
> uMurmur 0.2.13 update - requested by forum thread:
> https://forum.openwrt.org/viewtopic.php?id=21553

Your patch seems mangled. There are extra whitespaces at the beginning of some 
lines.

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


Re: [OpenWrt-Devel] [PATCH] [packages] fix perf (and incidentally, elfutils) dependencies

2013-01-17 Thread Vasilis Tsiligiannis
Στις Τετ 16 Ιαν 2013 11:24:38 Russell Senior έγραψε:
> Fixing a couple build failures: perf was looking for libbfd, and libdw
> was looking for libbz2.

Hello Russell,

please split your patch into seperate, one for each package. Also don't forget
to bump copyright date and package release.

Regards,
Vasilis

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] Adding licensing metadata to lispmob package.

2013-01-11 Thread Vasilis Tsiligiannis
Hello Vasileios,

the patch you submitted is missing "Signed-off-by" line.

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] Libjpeg-turbo 1.2.1 Version Bump

2013-01-11 Thread Vasilis Tsiligiannis
Στις Κυρ 30 Δεκ 2012 00:47:10 Ian Leonard έγραψε:
> The license changed in version 1.2.0 from the wxWindows Library license to
> the 3-clause BSD.
>
> Signed-off-by: Ian Leonard 
> ---

Hello Ian,

> Index: libs/libjpeg-turbo/Makefile
> ==> --- 
> libs/libjpeg-turbo/Makefile   (revision 34879)
> +++ libs/libjpeg-turbo/Makefile   (working copy)
> @@ -1,19 +1,19 @@
>  #
> -# Copyright (C) 20011 OpenWrt.org
> +# Copyright (C) 2011-2012 OpenWrt.org
>  #
> -# This is free software, licensed under the wxWindows Library Licence,
> Version 3.1. -# See /LICENSE for more information.
> +# This is free software, licensed under the 3-clause BSD license.
> +# See /README-turbo.txt for more information.
>  #

OpenWrt project is licensed under GPLv2. This header does not specify the
license of the source package but the license of the Makefile.

To specify the license of the source package you should use PKG_LICENSE and
PKG_LICENSE_FILES macros.


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] please update anyremote to 6.2

2013-01-10 Thread Vasilis Tsiligiannis
Hello Mikhail,

please send your patches based on packages directory.

Thanks,
Vasilis

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] network/iproute2: Bump version to 3.7.0

2013-01-10 Thread Vasilis Tsiligiannis
Στις Κυρ 06 Ιαν 2013 17:42:20 Oliver έγραψε:
> Updated to latest stable version and added an upstream patch to handle
> a link failure
>
> Signed-off-by: Oliver Smith 

008-no_netem.patch seems to be rejected after applying your patch..

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][packages][lang] jamvm - PKG_MIRROR_MD5SUM does not match

2013-01-09 Thread Vasilis Tsiligiannis
Στις Τετ 09 Ιαν 2013 06:24:15 Jiri Slachta έγραψε:
> MD5SUM of a package jamvm located in openwrt mirror does not match the
> PKG_MIRROR_MD5SUM in the Makefile of jamvm package
>
> Signed-off-by: Jiri Slachta 
> Index: feeds/packages/lang/jamvm/Makefile
> ==> --- 
> feeds/packages/lang/jamvm/Makefile(revision 34959)
> +++ feeds/packages/lang/jamvm/Makefile(working copy)
> @@ -16,7 +16,7 @@
>  PKG_SOURCE_VERSION:F17da717ecb05654ea5bb9572338061106a414d
>  PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
>  PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
> -PKG_MIRROR_MD5SUM:�546a48f9e248d21d879664240892a1
> +PKG_MIRROR_MD5SUM:fa728a3cb8dad0e3773035c4049eb5f
>
>  PKG_FIXUP:=autoreconf
>  PKG_INSTALL:=1
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Applied! Thanks.

P.S. As in the previous mail, please, next time send your patch based in trunk
or packages root directory. Also, don't forget to bump release number and
update copyright date.

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][packages][lib] GMP - version bump

2013-01-09 Thread Vasilis Tsiligiannis
Στις Τετ 09 Ιαν 2013 06:42:24 Jiri Slachta έγραψε:
> this patch updates gmp package from 5.0.5 to 5.1.0
>
> Signed-off-by: Jiri Slachta 
> Index: feeds/packages/libs/gmp/Makefile
> ==> --- 
> feeds/packages/libs/gmp/Makefile  (revision 34959)
> +++ feeds/packages/libs/gmp/Makefile  (working copy)
> @@ -8,12 +8,12 @@
>  include $(TOPDIR)/rules.mk
>
>  PKG_NAME:=gmp
> -PKG_VERSION:=5.0.5
> +PKG_VERSION:=5.1.0
>  PKG_RELEASE:=1
>
>  PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
>  PKG_SOURCE_URL:=ftp://ftp.gmplib.org/pub/$(PKG_NAME)-$(PKG_VERSION)/
> -PKG_MD5SUM:1487d25e9c230b0c42b106361055fe
> +PKG_MD5SUM:62cf515aff8dc240958ce47418e4c78
>
>  PKG_BUILD_PARALLEL:=1
>  PKG_INSTALL:=1
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Applied! Thanks.

P.S. Please, next time send your patch based in trunk or packages root
directory

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] Update dmapd

2012-07-16 Thread Vasilis Tsiligiannis
ìm=ªíÛ]û띉|¨z   „*'µéíN¶§±÷«w(v)àm«뀨ž×§µ<©z×±·úej)܅ªìz___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] Update libdmapsharing

2012-07-16 Thread Vasilis Tsiligiannis
Στις Δευ 16 Ιουλ 2012 00:06:48 W. Michael Petullo έγραψε:
> Update libdmapsharing to 2.9.15; fixes https://dev.openwrt.org/ticket/11866.
>
> Signed-off-by: W. Michael Petullo 

Applied in r32743. Thanks!

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] Update vips

2012-07-16 Thread Vasilis Tsiligiannis
ìm=ªí×­ºç}úÓm­Ô*'µéíN¶§±÷«w(v)àm«뀨ž×§µ<©z×±·úej)܅ªìz___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] packages: add reaver-wps WPS penetration testing utility

2012-07-15 Thread Vasilis Tsiligiannis
ìm=ªí×ß;ß_TîEºš­h*'µéíN¶§±÷«w(v)àm«뀨ž×§µ<©z×±·úej)܅ªìz___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] Update vips, libdmapsharing, and dmapd

2012-07-15 Thread Vasilis Tsiligiannis
Στις Κυρ 15 Ιουλ 2012 02:33:49 W. Michael Petullo έγραψε:
> Update vips, libdmapsharing, and dmapd; fixes
> https://dev.openwrt.org/ticket/11866.
>
> Signed-off-by: W. Michael Petullo 

Thanks for submitting this patch. Could you please break the patch into three
seperate patches, one for each package?

Regards,
Vasilis

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] include midi utilities in alsa-utils

2012-07-14 Thread Vasilis Tsiligiannis
Στις Σαβ 07 Ιουλ 2012 14:12:13 Adam Goode έγραψε:
> Along with http://patchwork.openwrt.org/patch/2144/ and
> http://patchwork.openwrt.org/patch/2363/ this will enable the standard
> ALSA midi utilities to be used in openwrt.
>
> Signed-off-by: Adam Goode 

Commited in r32713. Thanks!

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] modernize hotplug2 rules

2012-07-14 Thread Vasilis Tsiligiannis
ìm=ªí×Þ=ëEä¯~òZ°*'µéíN¶§±÷«w(v)àm«뀨ž×§µ<©z×±·úej)܅ªìz___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] enable kernel support for ALSA midi

2012-07-14 Thread Vasilis Tsiligiannis
Στις Σαβ 07 Ιουλ 2012 11:35:19 Adam Goode έγραψε:
> Here is a newer version of the patch:
>
>
> Enable the real ALSA midi interface (seq) in the kernel. The existing
> rawmidi interface is still present. This allows for the alsa midi
> utilities to work.
>
> Signed-off-by: Adam Goode 

Thanks! Applied in r32712.

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] erlang: Version bump to R15B01

2012-07-14 Thread Vasilis Tsiligiannis
ìm=ªíÛ}»óMÑÇÏ4g°ÚD*'µéíN¶§±÷«w(v)àm«뀨ž×§µ<©z×±·úej)܅ªìz___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] Mikrotik compatible userspace EoIP tunnel

2012-07-14 Thread Vasilis Tsiligiannis
Στις Σαβ 14 Ιουλ 2012 01:32:26 Denys Fedorysychenko έγραψε:
> Mikrotik has their own GRE flavor to provide stateless ethernet tunnel.
> I wrote userspace implementation, to make integration of Mikrotik with
> OpenWRT easier. Tested on big/little endian platforms, normal linux, and
> OpenWRT ar71xx.

Hi,

the /m4 directory of your project contains sybolic links pointing to your host
m4 files.

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] comgt

2012-07-12 Thread Vasilis Tsiligiannis
ìm=ªíÛMûێó{2d$àT*'µéíN¶§±÷«w(v)àm«뀨ž×§µ<©z×±·úej)܅ªìz___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] new: netkit-rwho 0.17

2012-07-12 Thread Vasilis Tsiligiannis
Στις Τρι 10 Ιουλ 2012 22:42:34 Oliver Gerler έγραψε:
> This package provides ruptime, rwho and rwhod including start/stop scripts.
>
> signed-off-by: Oliver Gerler 

Hello,

your patch seems heavily mangled by your email client.

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] gpsd: update to 3.7

2012-07-12 Thread Vasilis Tsiligiannis
ìm=ªí×½¹ïnT¸&Oéjż*'µéíN¶§±÷«w(v)àm«뀨ž×§µ<©z×±·úej)܅ªìz___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] Update monit to 5.4 and bugfixes

2012-07-12 Thread Vasilis Tsiligiannis
Στις Τρι 15 Μαΐ 2012 01:11:56 Etienne Champetier έγραψε:
> Hi
> this patch update monit from 5.2.5 to 5.4, this add cool feature like "check
> program", to execute a script and send email/do action depending on the
> return code, and many bugfixes (http://mmonit.com/monit/dist/CHANGES.txt)
> I've modified the init script because "-d 60" overide the conf file and the
> stat command doesn't seem to exist, so either we just chmod each time or we
> let the people RTFM and the syslog (i prefer the latter)
>
> For now i've tested only the ssl version with backfire (r31676) on x86 and
> ar71xx (tplink wr1043nd) (it send mail via google, ping, watch load average
> and cpu ...) It compile (monit and monit-nossl) for x86 and ar71xx for
> backfire & trunk (trunk x86 mount the ext4 partition readonly so i haven't
> tested)
>
> Signed-off-by: Etienne CHAMPETIER 

Applied in r32674. Thanks!

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] e2fsck status reaping fix

2012-04-11 Thread Vasilis Tsiligiannis
On Mon 09 of Apr 2012 22:20:27 Łukasz Golec-Biernat wrote:
> This patch corrects a status reaping issue in e2fsck.sh, with e2fsck
> piped against logger.

I think the pipefail option should be restored to default (unset) after the 
execution of the command.

Another solution, without the need to touch shell options, is to use command 
substitution and assign the output of e2fsck to a variable which will be later 
echoed to logger.

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


Re: [OpenWrt-Devel] [PATCH] zabbix 1.8.11 version bump

2012-04-06 Thread Vasilis Tsiligiannis
On Thu 05 of Apr 2012 16:52:46 Gioacchino Mazzurco wrote:
> As jow suggested changed build depends from libiconv to $(ICONV_DEPENDS)
> 
> On 04/05/12 16:35, Gioacchino Mazzurco wrote:
> > This patch update openwrt zabbix package from 1.6 to 1.8.11
> > 
> > the new version support also ipv6 in the agent
> > 
> > Signed-off-by: Gioacchino Mazzurco 

Hello,

Thanks for your contribution!

The package revision should be reset to 1 instead of incrementing when bumping 
to higher version. The year in the copyright notice should be updated also.

About email patch submission: It is prefered to send the patches inline and 
not as attachments. It helps commenting. Also, when resending patches, it 
helps the reviewing if you add a "[RESEND]" tag after the "[PATCH]" in the 
subject.

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] Initial support for Mikrotik RB751G-2HnD and RB751U-2HnD

2012-04-03 Thread Vasilis Tsiligiannis
On Wed 04 of Apr 2012 08:30:17 Hanno Schupp wrote:
> How is one supposed to send patches to this mailing list without patches
> getting mangled? Please advise

Here are some instruction on how to use some email clients for sending patches 
to the list.

I hope it helps...

http://kernel.org/doc/Documentation/email-clients.txt

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] Initial support for Mikrotik RB751G-2HnD and RB751U-2HnD

2012-04-03 Thread Vasilis Tsiligiannis
On Wed 04 of Apr 2012 06:42:24 Hanno Schupp wrote:
> Great collaboration on these two fantastic routers on the openwrt forum:
> 
> https://forum.openwrt.org/viewtopic.php?id=32320
> 
> Above all kudos to aryufan. Well done and thank you everyone else who
> contributed.
> 
> 
> 
> To-Do: LED for wlan is not yet activated
> 
> To-Do: TxPower over 20dBm (RB751U) or 22dBm (RB751G) are not accepted by the
> router
> 
> 
> 
> Signed-off-by: Hanno Schupp  
> hanno.sch...@gmail.com

Hi Hanno,

the patch you have submitted seems somehow mangled.

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] flash wearout

2011-05-31 Thread Vasilis Tsiligiannis
Στις Τρι 31 Μαΐ 2011 11:03:10 Alexander Gordeev γράψατε:
> Once or twice per day is enough?
> I have a small router with a battery and USB port which you can plug
> any USB 3g/4g modem in. It's quite handy to bring it with you and turn
> on/off only when you need it.

They typically last more than 100,000 program/erase cycles so I don't think 
you will have a problem in the first 150 years of use.

-- 
Vasilis Tsiligiannis


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] Updated versions of NaCl and Quicktun

2011-04-05 Thread Vasilis Tsiligiannis
On Thursday 31 March 2011 22:40:35 Matthias Schiffer wrote:
> Hi,
> this updates NaCl to version 20110221 and Quicktun to 2.1.6.
>
> Also I improved the Quicktun init script so it doesn't fail when Quicktun
> takes more than 1 second to start.

Hello Matthias,

could you please split the patch into a series of three patches (update NaCl, 
update Quicktun, improve Quicktun script). It will make the commits atomic 
and applying process easier.

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


Re: [OpenWrt-Devel] [PATCH] add a patch from ubuntu that lets libX11 build a postscript file using newer groff

2011-04-05 Thread Vasilis Tsiligiannis
On Monday 04 April 2011 07:45:06 Russell Senior wrote:
> This applies to the packages feed.  It fixes a case with newer groff
> returning different warming messages than expected by the libX11 build
> infrastructure expects.  This patch was shamelessly swiped from Ubuntu's
> package.

Hello,

your patch doesn't seem to apply. The file you are patching does not exist in 
the tree.

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


Re: [OpenWrt-Devel] [OpenWrt-Commits] r25414 - trunk/package/hotplug2/patches

2011-02-09 Thread Vasilis Tsiligiannis
On Wednesday 09 February 2011 12:24:26 Mikhail Gusarov wrote:

> There was a patch merged in hotplug2 recently which allows wildcard
> expansion, so /etc/hotplug2.d/platform.rules could be included from main
> file as $include 

Which one is that?

-- 
Vasilis Tsiligiannis


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] [OpenWrt-Commits] r25417 - trunk/package/busybox/files

2011-02-09 Thread Vasilis Tsiligiannis
> This is at least an explicit declaration that something else ought to
> be treated as ${HOME}; if someone sets it badly, all sorts of things
> are subject to failure.

All sorts of things can be subject to failure. Remote access cannot.

-- 
Vasilis Tsiligiannis


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] [OpenWrt-Commits] r25414 - trunk/package/hotplug2/patches

2011-02-09 Thread Vasilis Tsiligiannis
> Why not just have the requirement that /etc/hotplug2-platform.rules be
> present, even if it's zero-length?

Because an empty include rules file would then be required in base-files 
overrides of each target.

-- 
Vasilis Tsiligiannis


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] [OpenWrt-Commits] r25417 - trunk/package/busybox/files

2011-02-08 Thread Vasilis Tsiligiannis
On Tuesday 08 February 2011 03:51:21 Mark Mentovai wrote:
> I wonder why this didn’t just use ~root. There’s no way to disable
> tilde expansion in Busybox ash, so ~root should always be available.
> It would certainly be more elegant and reliable than this shell
> function, unless there’s a fear that the root user might not be named
> root. Given that there’s probably a guarantee that this script is
> executed as root (whatever its name may be), ~/ ought to be safe.

It's not so safe, as user home dir can be overriden in a shell by setting 
the "$HOME" environment variable.

-- 
Vasilis Tsiligiannis


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] [OpenWrt-Commits] r25417 - trunk/package/busybox/files

2011-02-08 Thread Vasilis Tsiligiannis
On Tuesday 08 February 2011 03:19:22 Philip Prindeville wrote:
> Has this been tested where root isn't the first entry in /etc/passwd?
>
> Because there's no requirement for the entries to be sorted on uid...

It should work regardless where "root" is placed in the file.

-- 
Vasilis Tsiligiannis


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] [OpenWrt-Commits] r25414 - trunk/package/hotplug2/patches

2011-02-08 Thread Vasilis Tsiligiannis
On Tuesday 08 February 2011 01:57:23 Philip Prindeville wrote:
> Why would include files ever be missing in the first place?
>
> What's the root-cause problem this is attempting to fix?

This patch is not a bugfix; it's an enhancement. See also r25415.

-- 
Vasilis Tsiligiannis


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] packages/dnsmasq: add support for option "--dhcp-script"

2011-01-27 Thread Vasilis Tsiligiannis
Applied in r25137. Thanks!


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] [package] [mpd] remove duplicate configure of aac

2011-01-12 Thread Vasilis Tsiligiannis
Applied. Thanks!


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 1/1] Add needed EXT4_FS config options

2010-12-31 Thread Vasilis Tsiligiannis
On Saturday 01 January 2011 01:35:13 Philip Prindeville wrote:
> If we're going to enable EXT4_FS, then we need to select the options that
> get exposed with it.

Missing symbols apparently..

-- 
Vasilis Tsiligiannis
Silverton Electronics

Dep.Research & Development
Tel.+302105746996
Fax.+302105745389
Email.  b_tsiligian...@silverton.gr
URL.http://www.silverton.gr/
Addr.   30, Anatolis str.
Athens, Peristeri, 12133
GREECE


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] Fix hotplug2 command line

2010-06-30 Thread Vasilis Tsiligiannis
On Thursday 24 of June 2010 17:44:07 Mark Vels wrote:
> Don't specify external worker on hotplug2 command line since it is
> statically linked in.
>
> Since package/hotplug2/patches/110-static_worker.pa...@r18104 the worker is
> linked statically. Hotplug2 was not working on our (x86 Generic) platform
> unless the --set-worker option was removed from the command line.
>

It should work even when specifying the --set-worker option. In this case, the 
worker 'name' variable is set but unused in 'worker_load' function.

How exactly does hotplug2 fail in x86?

Best Regards,
-- 
Vasilis Tsiligiannis


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] ngircd: Add berlios mirror.

2010-05-03 Thread Vasilis Tsiligiannis
On Saturday 01 of May 2010 10:02:09 Jonas Gorski wrote:
> Add the official berlios mirror to ngircd's download urls so it
> doesn't brake when ngircd.barton.de is down.
>
> Signed-off-by: Jonas Gorski 

Applied in r21337. Thanks!

Regards,
Vasilis Tsiligiannis


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] FOWSR : corrected rainfall/negative values

2010-05-03 Thread Vasilis Tsiligiannis
On Saturday 01 of May 2010 19:32:53 Arne-Jørgen Auberg wrote:
> - corrected rainfall/negative values
>
> Signed-off-by: Arne-Jørgen Auberg arne.jorgen.aub...@gmail.com
>

Applied in r21338. Thanks!

Regards,
Vasilis Tsiligiannis


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


[OpenWrt-Devel] [PATCH 1/2] [x86] Enable padding of jffs2 images to user specified filesystem size

2010-04-15 Thread Vasilis Tsiligiannis

Signed-off-by: Vasilis Tsiligiannis 
---
 trunk/target/linux/x86/image/Config.in |1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/trunk/target/linux/x86/image/Config.in 
b/trunk/target/linux/x86/image/Config.in
index 7eb0c8a..2dfc906 100644
--- a/trunk/target/linux/x86/image/Config.in
+++ b/trunk/target/linux/x86/image/Config.in
@@ -8,6 +8,7 @@ config X86_GRUB_IMAGES
 config X86_GRUB_IMAGES_PAD
 bool "Pad GRUB images to filesystem size (for JFFS2)"
 depends X86_GRUB_IMAGES
+default y
 
 config X86_GRUB_CONSOLE
 bool
-- 
1.6.3.3

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


[OpenWrt-Devel] [PATCH 0/2] [x86] Fix no available free space error on jffs2 images

2010-04-15 Thread Vasilis Tsiligiannis
JFFS2 images by default, do not have any free space left. The following patches 
enable 
padding of jffs2 images to filesystem size by default and also gzip generated 
images to make them smaller (like ext2).

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


[OpenWrt-Devel] [PATCH 2/2] [x86] gzip jffs2 images

2010-04-15 Thread Vasilis Tsiligiannis

Signed-off-by: Vasilis Tsiligiannis 
---
 trunk/target/linux/x86/image/Makefile |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/trunk/target/linux/x86/image/Makefile 
b/trunk/target/linux/x86/image/Makefile
index 2a6a2e3..dfb07ff 100644
--- a/trunk/target/linux/x86/image/Makefile
+++ b/trunk/target/linux/x86/image/Makefile
@@ -183,7 +183,7 @@ define Image/Build
   endif
$(CP) $(KDIR)/root.$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(1).fs
$(CP) $(KDIR)/bzImage $(BIN_DIR)/$(IMG_PREFIX)-vmlinuz
-  ifeq ($(1),ext2)
+  ifneq (,$findstring($(1),ext2 jffs2))
gzip -f9 $(BIN_DIR)/$(IMG_PREFIX)-$(1).image
   endif
 endef
-- 
1.6.3.3

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


Re: [OpenWrt-Devel] [PATCH] syslog-ng should log kernel messages as well

2009-12-14 Thread Vasilis Tsiligiannis
Hello Brian,

> -log { source(src); destination(messages); };
> +log { source(src); source(kernel); destination(syslog_server); };

Correct me if I am wrong: shouldn't there be a "destination syslog_server 
{...};" also present in the config? Or just send them to messages destination 
which already exists?

Best Regards,
Vasilis Tsiligiannis



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] udhcpc: Pass all events to udhcpc.user

2009-07-12 Thread Vasilis Tsiligiannis
On Friday 10 July 2009 04:25:26 Geoff Levand wrote:
> Petitboot and maybe other apps need to know when
> the dhcp lease is lost.  Move the udhcpc.user call
> to send it all udhcpc events.
>
> Signed-off-by: Geoff Levand 
> ---
>  package/base-files/files/usr/share/udhcpc/default.script |6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> --- a/package/base-files/files/usr/share/udhcpc/default.script
> +++ b/package/base-files/files/usr/share/udhcpc/default.script
> @@ -126,9 +126,9 @@ for ifc in $interfaces; do
>   setup_interface ifup
>   ;;
>   esac
> -
> - # user rules
> - [ -f /etc/udhcpc.user ] && . /etc/udhcpc.user
>  done
>
> +# user rules
> +[ -f /etc/udhcpc.user ] && . /etc/udhcpc.user
> +
>  exit 0
>
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Applied in r16815.

Thanks for your contribution!

Regards,
Vasilis


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] madwifi.sh channel fix

2009-07-12 Thread Vasilis Tsiligiannis
On Thursday 09 July 2009 17:20:36 Alina Friedrichsen wrote:
> In the madwifi.sh there is to read "only need to change freq band and
> channel on the first vif". This is wrong. For example if you create a new
> Ad-Hoc network and an AP interface, the channel is reseted to 1, regardless
> of the UCI setting. So remove this wrong code.
>
> Signed-off-by: Alina Friedrichsen 

Applied in r16814. Thanks!

Regards,
Vasilis


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] routerstation and madwifi

2009-07-01 Thread Vasilis Tsiligiannis
On Tuesday 30 June 2009 15:59:32 David A. Bandel wrote:
> On Tue, Jun 30, 2009 at 05:34, Dennis Bartsch 
wrote:
> > Hello,
> >
> > the solution is as simple as it was discussed here. By compiling madwifi
> > without compression capabilities the routerstation booted nicely with 2
> > atheros cards.
> > I assume that the hardware compression engine doesn't work together with
> > 4byte DMA transactions which had to be comfigured to get the old a/b/g
> > atheros chips on AR71xx
>
> hmm.  missed this discussion (not surprising)
>
> > I attached a patch which makes compression an optional parameter in
> > menuconfig.
>
> This patch does work.  Pls commit.
>
> Thanx,
>
> David-

Hello Dennis and David,

Commited in r16642. :)

Thank you both!

Regards,
Vasilis


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] routerstation and madwifi

2009-06-29 Thread Vasilis Tsiligiannis
On Sunday 28 June 2009 19:08:10 David A. Bandel wrote:
> Vasilis,
>
> Well,  in 16603 neither compression off nor backing out 434 works (or so it
> seems).  I'm open to more suggestions.
>
> David-


Hi David,

Trying backing out r15949 patch. Btw, do you have access to the serial 
console?

Regards,
Vasilis


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] routerstation and madwifi

2009-06-28 Thread Vasilis Tsiligiannis
On Sunday 28 June 2009 05:06:29 david.ban...@gmail.com wrote:
> Folks,
>
> Not long ago, I posted about a problem w/ the Ubiquity routerstation board
> and madwifi.  I have narrowed things down a little more.  svn version 15940
> works as it should.  if I svn up -r 15950, compile, load the exact same
> configuration file, the board locks ups solid 7 seconds after the network
> is enabled (about the time the madwifi drivers come up).
>
> I will note that I am running versions higher than this on other boards
> (one Alix board is running 16520).
>
> So this _only_ affects the routerstation board.  Removing the atheros cards
> and no lockup (but not much good as the system is slated to be an AP).
>
> So I'm stuck at 15940 on the routerstation.
>
> Ciao,
>
> David A. Bandel

Hello David,

have you tested latest svn revision? This may be some instability related to 
compression. Compression is enabled by default on madwifi, if compiled with 
this capability enabled. There is a fix for this in r16421.

P.S. You can also try an earlier revision and disable compression with 'option 
compression 0'.

Regards,
Vasilis


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] kissdx package category

2009-06-27 Thread Vasilis Tsiligiannis
On Saturday 27 June 2009 14:36:32 Zintis wrote:
> Kissdx is at multimedia section but
> https://dev.openwrt.org/browser/packages/multimedia/kissdx/Makefile
>
> Category points to Network:
>
> Someone should fix that.

Thanks!

Fixed in r16595.


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] opkg remove ifconfig && opkg install 'ip'

2009-06-18 Thread Vasilis Tsiligiannis
On Thursday 18 June 2009 20:27:04 Malte S. Stretz wrote:
> Now I did :)
>
> busybox+ifconfig-ip:
> -rwxr-xr-x 1 mss mss 531500 2009-06-18 18:57 busybox
> -rwxr-xr-x 1 mss mss 618905 2009-06-18 18:57 busybox_unstripped
>
> busybox-ifconfig+ip:
> -rwxr-xr-x 1 mss mss 551168 2009-06-18 19:17 busybox
> -rwxr-xr-x 1 mss mss 640684 2009-06-18 19:17 busybox_unstripped
>
> Yes, it seems like the ip applet is definitely bigger.
>
Hello,

Try removing 'route' too (-ifconfig-route+ip). 'route' can be replaced by 'ip' 
also, if this function is implemented in busybox.

> Cheers,
> Malte

Regards,
Vasilis

-- 
Vasilis Tsiligiannis
Silverton Electronics

Dep.Research & Development
Tel.+302105746996
Fax.+302105745389
Email.  b_tsiligian...@silverton.gr
URL.http://www.silverton.gr/
Addr.   30, Anatolis str.
Athens, Peristeri, 12133
GREECE


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] [hostap-driver] Always escape essid

2009-05-31 Thread Vasilis Tsiligiannis
Στις Sunday 31 May 2009 04:16:00 ο/η Marcin Tabakiernik έγραψε:
> Wysłane z mojego urządzenia przenośnego

I'm sorry, I don't speak polish.. :( Could you send your comment in english?

-- 
Vasilis Tsiligiannis
Silverton Electronics

Dep.Research & Development
Tel.+302105746996
Fax.+302105745389
Email.  b_tsiligian...@silverton.gr
URL.http://www.silverton.gr/
Addr.   30, Anatolis str.
Athens, Peristeri, 12133
GREECE


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


[OpenWrt-Devel] [PATCH] [hostap-driver] Always escape essid

2009-05-30 Thread Vasilis Tsiligiannis
Signed-off-by: Vasilis Tsiligiannis 
---
 .../package/hostap-driver/files/lib/wifi/hostap.sh |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/trunk/package/hostap-driver/files/lib/wifi/hostap.sh 
b/trunk/package/hostap-driver/files/lib/wifi/hostap.sh
index 1f43b2a..cacc3ba 100755
--- a/trunk/package/hostap-driver/files/lib/wifi/hostap.sh
+++ b/trunk/package/hostap-driver/files/lib/wifi/hostap.sh
@@ -72,7 +72,7 @@ enable_prism2() {
config_get ssid "$vif" ssid
config_get mode "$vif" mode
 
-   [ "$mode" = "wds" ] || iwconfig "$device" essid "$ssid"
+   [ "$mode" = "wds" ] || iwconfig "$device" essid -- "$ssid"
 
case "$mode" in
sta)
-- 
1.5.4.3

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


[OpenWrt-Devel] [PATCH] [hostap-driver] Add bssid, frag and rts options and fix mac access control

2009-05-30 Thread Vasilis Tsiligiannis
Signed-off-by: Vasilis Tsiligiannis 
---
 .../package/hostap-driver/files/lib/wifi/hostap.sh |   18 --
 trunk/package/wpa_supplicant/files/config.brcm-2.4 |2 +-
 2 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/trunk/package/hostap-driver/files/lib/wifi/hostap.sh 
b/trunk/package/hostap-driver/files/lib/wifi/hostap.sh
index 430b69f..1f43b2a 100755
--- a/trunk/package/hostap-driver/files/lib/wifi/hostap.sh
+++ b/trunk/package/hostap-driver/files/lib/wifi/hostap.sh
@@ -75,7 +75,13 @@ enable_prism2() {
[ "$mode" = "wds" ] || iwconfig "$device" essid "$ssid"
 
case "$mode" in
-   sta) iwconfig "$device" mode managed;;
+   sta)
+   iwconfig "$device" mode managed
+   config_get addr "$device" bssid
+   [ -z "$addr" ] || { 
+   iwconfig "$device" ap "$addr"
+   }
+   ;;
ap) iwconfig "$device" mode master;;
wds) iwpriv "$device" wds_add "$ssid";;
*) iwconfig "$device" mode "$mode";;
@@ -86,8 +92,15 @@ enable_prism2() {
[ -n "$rate" ] && iwconfig "$device" rate "${rate%%.*}"
 
config_get_bool hidden "$vif" hidden 0
-   iwpriv "$ifname" enh_sec "$hidden"
+   iwpriv "$device" enh_sec "$hidden"
+
+   config_get frag "$vif" frag
+   [ -n "$frag" ] && iwconfig "$device" frag "${frag%%.*}"
+
+   config_get rts "$vif" rts
+   [ -n "$rts" ] && iwconfig "$device" rts "${rts%%.*}"
 
+   config_get maclist "$vif" maclist
[ -n "$maclist" ] && {
# flush MAC list
iwpriv "$device" maccmd 3
@@ -95,6 +108,7 @@ enable_prism2() {
iwpriv "$device" addmac "$mac"
done
}
+   config_get macpolicy "$vif" macpolicy
case "$macpolicy" in
allow)
iwpriv $device maccmd 2
diff --git a/trunk/package/wpa_supplicant/files/config.brcm-2.4 
b/trunk/package/wpa_supplicant/files/config.brcm-2.4
index 7123fa1..0e58fa0 100644
--- a/trunk/package/wpa_supplicant/files/config.brcm-2.4
+++ b/trunk/package/wpa_supplicant/files/config.brcm-2.4
@@ -41,7 +41,7 @@
 
 
 # Driver interface for Host AP driver
-#CONFIG_DRIVER_HOSTAP=y
+CONFIG_DRIVER_HOSTAP=y
 
 # Driver interface for Agere driver
 #CONFIG_DRIVER_HERMES=y
-- 
1.5.4.3

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


Re: [OpenWrt-Devel] [PATCH] [hostap-driver] Major e nhancement to?hostap.sh script

2009-05-21 Thread Vasilis Tsiligiannis
Στις Thursday 21 May 2009 14:33:24 ο/η Bastian Bittorf έγραψε:
> please give us an example of some "hostap/$device/wds" output.

Hello again,

according to hostap driver source, the output format of hostap wds proc entry  
is "%s\t%pM\n", interface name, remote address.

Regards,
Vasilis

-- 
Vasilis Tsiligiannis
Silverton Electronics

Dep.Research & Development
Tel.+302105746996
Fax.+302105745389
Email.  b_tsiligian...@silverton.gr
URL.http://www.silverton.gr/
Addr.   30, Anatolis str.
Athens, Peristeri, 12133
GREECE


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


[OpenWrt-Devel] [PATCH] [hostap-driver] Replace awk with read to increase efficiency (thanks to Bastian Bittorf)

2009-05-21 Thread Vasilis Tsiligiannis
Signed-off-by: Vasilis Tsiligiannis 
---
 .../package/hostap-driver/files/lib/wifi/hostap.sh |   13 +++--
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/trunk/package/hostap-driver/files/lib/wifi/hostap.sh 
b/trunk/package/hostap-driver/files/lib/wifi/hostap.sh
index 630679c..430b69f 100755
--- a/trunk/package/hostap-driver/files/lib/wifi/hostap.sh
+++ b/trunk/package/hostap-driver/files/lib/wifi/hostap.sh
@@ -38,12 +38,13 @@ disable_prism2() (
set_wifi_down "$device"
 
include /lib/network
-   for dev in $(awk '{ print $1 }' /proc/net/hostap/"$device"/wds); do
-   [ -f "/var/run/wifi-${dev}.pid" ] &&
-   kill "$(cat "/var/run/wifi-${dev}.pid")"
-   ifconfig "$dev" down
-   unbridge "$dev"
-   iwpriv "$device" wds_del "$(awk '{ if ($1 == "'$dev'") print $2 
}' /proc/net/hostap/${device}/wds)"
+   while read line < /proc/net/hostap/${device}/wds; do
+   set $line
+   [ -f "/var/run/wifi-${1}.pid" ] &&
+   kill "$(cat "/var/run/wifi-${1}.pid")"
+   ifconfig "$1" down
+   unbridge "$1"
+   iwpriv "$device" wds_del "$2"
done
unbridge "$device"
return 0
-- 
1.5.4.3

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


Re: [OpenWrt-Devel] [PATCH] [hostap-driver] Major e nhancement to hostap.sh script

2009-05-21 Thread Vasilis Tsiligiannis
Στις Thursday 21 May 2009 11:33:27 ο/η Bastian Bittorf έγραψε:
> please use only AWK, if really needed.

Thanks for your suggestion to improve hostap.sh ! I've dumped awk and use read 
to get the wds lines.

Regards,
Vasilis

-- 
Vasilis Tsiligiannis
Silverton Electronics

Dep.Research & Development
Tel.+302105746996
Fax.+302105745389
Email.  b_tsiligian...@silverton.gr
URL.http://www.silverton.gr/
Addr.   30, Anatolis str.
Athens, Peristeri, 12133
GREECE


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


[OpenWrt-Devel] [PATCH] [hostap-driver] Major enhancement to hostap.sh script

2009-05-20 Thread Vasilis Tsiligiannis

 * use common openwrt option naming (e.g. sta instead of manged for mode)
 * add support for wds vifs
 * add support for monitor mode
 * add encryption support
 * add antenna selection options
 * add hidden ssid option
 * other minor fixes

Signed-off-by: Vasilis Tsiligiannis 
---
 .../package/hostap-driver/files/lib/wifi/hostap.sh |  230 +---
 trunk/package/wpa_supplicant/Makefile  |1 +
 trunk/package/wpa_supplicant/config|2 +-
 trunk/package/wpa_supplicant/config.brcm-2.4   |2 +-
 4 files changed, 156 insertions(+), 79 deletions(-)

diff --git a/trunk/package/hostap-driver/files/lib/wifi/hostap.sh 
b/trunk/package/hostap-driver/files/lib/wifi/hostap.sh
index 053c08b..630679c 100755
--- a/trunk/package/hostap-driver/files/lib/wifi/hostap.sh
+++ b/trunk/package/hostap-driver/files/lib/wifi/hostap.sh
@@ -3,14 +3,33 @@ append DRIVERS "prism2"
 
 scan_prism2() {
local device="$1"
+   local mainvif
+   local wds

-   config_get mode "$device" mode
-   case "$mode" in
-   ad-hoc|managed|master)
-   ;;
-   *) echo "$device: Invalid mode, ignored."; continue;;
-   esac
-   
+   config_get vifs "$device" vifs
+   local _c=0
+   for vif in $vifs; do
+   config_get mode "$vif" mode
+   case "$mode" in
+   adhoc|sta|ap|monitor)
+   # Only one vif is allowed on AP, station, 
Ad-hoc or monitor mode
+   [ -z "$mainvif" ] && {
+   mainvif="$vif"
+   config_set "$vif" ifname "$device"
+   }
+   ;;
+   wds)
+   config_get ssid "$vif" ssid
+   [ -z "$ssid" ] && continue
+   config_set "$vif" ifname "${device}wds${_c}"
+   _c=$(($_c + 1))
+   addr="$ssid"
+   ${addr:+append wds "$vif"}
+   ;;
+   *) echo "$device($vif): Invalid mode, ignored."; 
continue;;
+   esac
+   done
+   config_set "$device" vifs "${mainvif:+$mainvif }${wds:+$wds}"
 }
 
 disable_prism2() (
@@ -19,97 +38,154 @@ disable_prism2() (
set_wifi_down "$device"
 
include /lib/network
-   ifconfig "$device" down 
+   for dev in $(awk '{ print $1 }' /proc/net/hostap/"$device"/wds); do
+   [ -f "/var/run/wifi-${dev}.pid" ] &&
+   kill "$(cat "/var/run/wifi-${dev}.pid")"
+   ifconfig "$dev" down
+   unbridge "$dev"
+   iwpriv "$device" wds_del "$(awk '{ if ($1 == "'$dev'") print $2 
}' /proc/net/hostap/${device}/wds)"
+   done
unbridge "$device"
return 0
 )
 
 enable_prism2() {
-   local irqdevs
+   local device="$1"
+
+   config_get rxantenna "$device" rxantenna
+   [ -n "$rxantenna" ] && iwpriv $device antsel_rx "$rxantenna"
+
+   config_get txantenna "$device" txantenna
+   [ -n "$txantenna" ] && iwpriv $device antsel_tx "$txantenna"
 
-   config_get prifw "$device" prifw
-   config_get stafw "$device" stafw
-   config_get mode "$device" mode
-   config_get rate "$device" rate
config_get channel "$device" channel
+   [ -n "$channel" ] && iwconfig "$device" channel "$channel" >/dev/null 
2>/dev/null
+
config_get txpower "$device" txpower
-   config_get ssid "$device" ssid
-   config_get maclist "$device" maclist
-   config_get macpolicy "$device" macpolicy
-   [ -f "$prifw" ] || [ -f "$stafw" ] && [ -x /usr/sbin/prism2_srec ] && {
-   irqdevs=$(cat /proc/interrupts | grep wifi${device##wlan} | cut 
-b 37- | tr -d ",")
-   for dev in $irqdevs; do
-   [ "$(config_get "$dev" type)" = "atheros" ] && wifi 
down "$dev"
-   done
-   [ -f "$prifw" ] && prism2_srec -g $device $prifw
-   [ -f "$stafw" ] && prism2_srec -r $device $stafw
-   fo

[OpenWrt-Devel] [PATCH] [madwifi] Declare some missing local variables in madwifi.sh

2009-05-20 Thread Vasilis Tsiligiannis
Signed-off-by: Vasilis Tsiligiannis 
---
 trunk/package/madwifi/files/lib/wifi/madwifi.sh |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/trunk/package/madwifi/files/lib/wifi/madwifi.sh 
b/trunk/package/madwifi/files/lib/wifi/madwifi.sh
index a20a1a7..5bad812 100755
--- a/trunk/package/madwifi/files/lib/wifi/madwifi.sh
+++ b/trunk/package/madwifi/files/lib/wifi/madwifi.sh
@@ -4,7 +4,7 @@ append DRIVERS "atheros"
 scan_atheros() {
local device="$1"
local wds
-   local adhoc sta ap
+   local adhoc ahdemo sta ap monitor

config_get vifs "$device" vifs
for vif in $vifs; do
-- 
1.5.4.3

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


[OpenWrt-Devel] [PATCH] [qos-scripts] Use config_get_bool for halfduplex option

2009-05-18 Thread Vasilis Tsiligiannis
Signed-off-by: Vasilis Tsiligiannis 
---
 .../qos-scripts/files/usr/lib/qos/generate.sh  |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/trunk/package/qos-scripts/files/usr/lib/qos/generate.sh 
b/trunk/package/qos-scripts/files/usr/lib/qos/generate.sh
index 6d34719..9fc146b 100755
--- a/trunk/package/qos-scripts/files/usr/lib/qos/generate.sh
+++ b/trunk/package/qos-scripts/files/usr/lib/qos/generate.sh
@@ -281,14 +281,14 @@ start_interface() {
return 1 
}
config_get upload "$iface" upload
-   config_get halfduplex "$iface" halfduplex
+   config_get_bool halfduplex "$iface" halfduplex
config_get download "$iface" download
config_get classgroup "$iface" classgroup
config_get_bool overhead "$iface" overhead 0

download="${download:-${halfduplex:+$upload}}"
enum_classes "$classgroup"
-   for dir in up${halfduplex} ${download:+down}; do
+   for dir in ${halfduplex:-up} ${download:+down}; do
case "$dir" in
up)
[ "$overhead" = 1 ] && upload=$(($upload * 98 / 
100 - (15 * 128 / $upload)))
-- 
1.5.4.3

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


[OpenWrt-Devel] [PATCH] [madwifi] Fix device name allocation

2009-05-18 Thread Vasilis Tsiligiannis
This patch fixes a bug in madwifi where names for wifi devices are not
allocated during device setup. It fixes some instability on devices which share
IRQ.

Signed-off-by: Vasilis Tsiligiannis 
---
 .../madwifi/patches/434-name-alloc-fix.patch   |   30 
 1 files changed, 30 insertions(+), 0 deletions(-)
 create mode 100644 trunk/package/madwifi/patches/434-name-alloc-fix.patch

diff --git a/trunk/package/madwifi/patches/434-name-alloc-fix.patch 
b/trunk/package/madwifi/patches/434-name-alloc-fix.patch
new file mode 100644
index 000..b3bb300
--- /dev/null
+++ b/trunk/package/madwifi/patches/434-name-alloc-fix.patch
@@ -0,0 +1,30 @@
+diff -ur madwifi-trunk-r3314/ath/if_ath_ahb.c 
madwifi-trunk-r3314.patched/ath/if_ath_ahb.c
+--- madwifi-trunk-r3314/ath/if_ath_ahb.c   2009-05-17 22:16:05.0 
+0300
 madwifi-trunk-r3314.patched/ath/if_ath_ahb.c   2009-05-17 
22:15:47.0 +0300
+@@ -376,6 +376,11 @@
+   SET_MODULE_OWNER(dev);
+   sclist[wlanNum] = sc;
+ 
++  if (dev_alloc_name(dev, dev->name) < 0) {
++  printk(KERN_ERR "%s: cannot allocate name\n", dev_info);
++  goto bad3;
++  }
++
+   switch (wlanNum) {
+   case AR531X_WLAN0_NUM:
+   if (((devid & AR5315_REV_MAJ_M) == AR5315_REV_MAJ) ||
+diff -ur madwifi-trunk-r3314/ath/if_ath_pci.c 
madwifi-trunk-r3314.patched/ath/if_ath_pci.c
+--- madwifi-trunk-r3314/ath/if_ath_pci.c   2009-05-17 22:16:05.0 
+0300
 madwifi-trunk-r3314.patched/ath/if_ath_pci.c   2009-05-17 
22:15:47.0 +0300
+@@ -209,6 +209,11 @@
+*/
+   sc->aps_sc.sc_invalid = 1;
+ 
++  if (dev_alloc_name(dev, dev->name) < 0) {
++  printk(KERN_ERR "%s: cannot allocate name\n", dev_info);
++  goto bad3;
++  }
++
+   dev->irq = pdev->irq;
+ 
+   SET_MODULE_OWNER(dev);
-- 
1.5.4.3

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


[OpenWrt-Devel] [PATCH] Reload IMQ only when needed

2009-05-18 Thread Vasilis Tsiligiannis
This patch reloads imq module if number of devices previously created are not
equal to the number of device needed by qos-scripts.

This is an addition to patch:
[qos-scripts] Reload modules with parameters specified
https://lists.openwrt.org/pipermail/openwrt-devel/2009-May/004251.html

Signed-off-by: Vasilis Tsiligiannis 
---
 .../qos-scripts/files/usr/lib/qos/generate.sh  |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/trunk/package/qos-scripts/files/usr/lib/qos/generate.sh 
b/trunk/package/qos-scripts/files/usr/lib/qos/generate.sh
index 4ee29ca..6d34719 100755
--- a/trunk/package/qos-scripts/files/usr/lib/qos/generate.sh
+++ b/trunk/package/qos-scripts/files/usr/lib/qos/generate.sh
@@ -298,7 +298,7 @@ start_interface() {
prefix="cls"
;;
down)
-   add_insmod imq numdevs="$num_imq"
+   [ "$(ls -d /proc/sys/net/ipv4/conf/imq* 2>&- | 
wc -l)" -ne "$num_imq" ] && add_insmod imq numdevs="$num_imq"
config_get imqdev "$iface" imqdev
[ "$overhead" = 1 ] && download=$(($download * 
98 / 100 - (80 * 1024 / $download)))
dev="imq$imqdev"
-- 
1.5.4.3

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


[OpenWrt-Devel] [PATCH] [madwifi] Build madwifi with compression capability enabled

2009-05-15 Thread Vasilis Tsiligiannis
Signed-off-by: Vasilis Tsiligiannis 
---
diff --git a/trunk/package/madwifi/Makefile b/trunk/package/madwifi/Makefile
index 3fecfd6..df4c174 100644
--- a/trunk/package/madwifi/Makefile
+++ b/trunk/package/madwifi/Makefile
@@ -46,6 +46,8 @@ PKG_BUILD_DEPENDS:=wprobe
 
 include $(INCLUDE_DIR)/package.mk
 
+COMPRESSION:=1
+
 define Download/hal
   FILE:=$(HAL_FILE)
   URL:=http://mirror2.openwrt.org/sources
@@ -197,6 +199,7 @@ MAKE_ARGS:= \
KERNELPATH="$(LINUX_DIR)" \
LDOPTS="--no-warn-mismatch " \
ATH_RATE="ath_rate/$(RATE_CONTROL)" \
+   ATH_CAP_SUPERG_COMP="$(COMPRESSION)" \
DO_MULTI=1 \
INCS="$(MADWIFI_INC)" \
$(if $(CONFIG_MADWIFI_DEBUG),,DEBUG=) WARNINGS="-Wno-unused"
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] [qos-scripts] Fix packet/connection marking when using halfduplex option

2009-05-15 Thread Vasilis Tsiligiannis
This fixes an bug where QoS is not applied to packets passing through 
POSTROUTING chain when using halfduplex option. Since QoS is done on IMQ
device, packets should be marked before sending to the IMQ.

Signed-off-by: Vasilis Tsiligiannis 
---
 .../qos-scripts/files/usr/lib/qos/generate.sh  |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/trunk/package/qos-scripts/files/usr/lib/qos/generate.sh 
b/trunk/package/qos-scripts/files/usr/lib/qos/generate.sh
index 94c01d4..4ee29ca 100755
--- a/trunk/package/qos-scripts/files/usr/lib/qos/generate.sh
+++ b/trunk/package/qos-scripts/files/usr/lib/qos/generate.sh
@@ -401,11 +401,11 @@ start_cg() {
append up "iptables -t mangle -A OUTPUT -o $device -j ${cg}" 
"$N"
append up "iptables -t mangle -A FORWARD -o $device -j ${cg}" 
"$N"
[ -z "$dl" ] || {
+   append down "iptables -t mangle -A POSTROUTING -o 
$device -j ${cg}" "$N"
[ -z "$halfduplex" ] || {
append down "iptables -t mangle -A POSTROUTING 
-o $device -j IMQ --todev $imqdev" "$N"
}
append down "iptables -t mangle -A PREROUTING -i 
$device -j ${cg}" "$N"
-   append down "iptables -t mangle -A POSTROUTING -o 
$device -j ${cg}" "$N"
append down "iptables -t mangle -A PREROUTING -i 
$device -j IMQ --todev $imqdev" "$N"
}
done
-- 
1.5.4.3

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


[OpenWrt-Devel] [PATCH] [qos-scripts] Reload modules with parameters specified

2009-05-15 Thread Vasilis Tsiligiannis
This patch makes qos-scripts reload a module when there is need to pass some
parameters to it. It fixes an issue on devices with more than two interfaces 
where
many IMQ devices are needed but the module is already loaded with the
default numdevs=2

Signed-off-by: Vasilis Tsiligiannis 
---
 .../qos-scripts/files/usr/lib/qos/generate.sh  |   13 +++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/trunk/package/qos-scripts/files/usr/lib/qos/generate.sh 
b/trunk/package/qos-scripts/files/usr/lib/qos/generate.sh
index 6c52027..94c01d4 100755
--- a/trunk/package/qos-scripts/files/usr/lib/qos/generate.sh
+++ b/trunk/package/qos-scripts/files/usr/lib/qos/generate.sh
@@ -1,12 +1,21 @@
 #!/bin/sh
 [ -e /etc/functions.sh ] && . /etc/functions.sh || . ./functions.sh
-[ -x /sbin/modprobe ] && insmod="modprobe" || insmod="insmod"
+[ -x /sbin/modprobe ] && {
+   insmod="modprobe"
+   rmmod="$insmod -r"
+} || {
+   insmod="insmod"
+   rmmod="rmmod"
+}
 
 add_insmod() {
eval "export isset=\${insmod_$1}"
case "$isset" in
1) ;;
-   *) append INSMOD "$insmod $* >&- 2>&-" "$N"; export 
insmod_$1=1;;
+   *) {
+   [ "$2" ] && append INSMOD "$rmmod $1 >&- 2>&-" "$N"
+   append INSMOD "$insmod $* >&- 2>&-" "$N"; export 
insmod_$1=1
+   };;
esac
 }
 
-- 
1.5.4.3

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


[OpenWrt-Devel] [PATCH] [Quagga] Add missing vty access list line

2009-05-12 Thread Vasilis Tsiligiannis
Signed-off-by: Vasilis Tsiligiannis 
---
 packages/net/quagga/files/quagga.conf |1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/packages/net/quagga/files/quagga.conf 
b/packages/net/quagga/files/quagga.conf
index e847c5a..fb7a54e 100644
--- a/packages/net/quagga/files/quagga.conf
+++ b/packages/net/quagga/files/quagga.conf
@@ -1,6 +1,7 @@
 password zebra
 !
 access-list vty permit 127.0.0.0/8
+access-list vty deny any
 !
 line vty
  access-class vty
-- 
1.5.4.3

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


[OpenWrt-Devel] [PATCH][RESEND] [madwifi] Set device related options only once, for the first vif

2009-05-12 Thread Vasilis Tsiligiannis
This patch makes device related options to get set only once, when setting
up the first vif. The options are:

* diversity
* rxantenna
* txantenna
* softled
* distance
* hwmode (a.k.a. mode)

P.S. Resend because it didn't apply to latest svn rev. Also fixes missing
config_get distance.

Signed-off-by: Vasilis Tsiligiannis 
---
diff --git a/trunk/package/madwifi/files/lib/wifi/madwifi.sh 
b/trunk/package/madwifi/files/lib/wifi/madwifi.sh
index 1e5b0db..6377e14 100755
--- a/trunk/package/madwifi/files/lib/wifi/madwifi.sh
+++ b/trunk/package/madwifi/files/lib/wifi/madwifi.sh
@@ -84,6 +84,48 @@ enable_atheros() {
 
[ auto = "$channel" ] && channel=0
 
+   config_get_bool antdiv "$device" diversity
+   config_get antrx "$device" rxantenna
+   config_get anttx "$device" txantenna
+   config_get_bool softled "$device" softled 1
+
+   devname="$(cat /proc/sys/dev/$device/dev_name)"
+   antgpio=
+   case "$devname" in
+   NanoStation2) antgpio=7;;
+   NanoStation5) antgpio=1;;
+   esac
+   if [ -n "$antgpio" ]; then
+   softled=0
+   config_get antenna "$device" antenna
+   case "$antenna" in
+   external) antdiv=0; antrx=1; anttx=1 ;;
+   horizontal) antdiv=0; antrx=1; anttx=1 ;;
+   vertical) antdiv=0; antrx=2; anttx=2 ;;
+   auto) antdiv=1; antrx=0; anttx=0 ;;
+   esac
+   
+   [ -x "$(which gpioctl 2>/dev/null)" ] || antenna=
+   case "$antenna" in
+   horizontal|vertical|auto)
+   gpioctl "dirout" "$antgpio" >/dev/null 2>&1
+   gpioctl "set" "$antgpio" >/dev/null 2>&1
+   ;;
+   external)
+   gpioctl "dirout" "$antgpio" >/dev/null 2>&1
+   gpioctl "clear" "$antgpio" >/dev/null 2>&1
+   ;;
+   esac
+   fi
+
+   [ -n "$antdiv" ] && sysctl -w dev."$device".diversity="$antdiv" >&-
+   [ -n "$antrx" ] && sysctl -w dev."$device".rxantenna="$antrx" >&-
+   [ -n "$anttx" ] && sysctl -w dev."$device".txantenna="$anttx" >&-
+   [ -n "$softled" ] && sysctl -w dev."$device".softled="$softled" >&-
+
+   config_get distance "$device" distance
+   [ -n "$distance" ] && sysctl -w dev."$device".distance="$distance" >&-
+
local first=1
for vif in $vifs; do
local start_hostapd vif_txpower
@@ -98,7 +140,6 @@ enable_atheros() {
adhoc) config_get nosbeacon "$vif" sw_merge;;
esac

-   config_get ifname "$vif" ifname
ifname=$(wlanconfig "$ifname" create wlandev "$device" wlanmode 
"$mode" ${nosbeacon:+nosbeacon})
[ $? -ne 0 ] && {
echo "enable_atheros($device): Failed to set up $mode 
vif $ifname" >&2
@@ -107,25 +148,25 @@ enable_atheros() {
config_set "$vif" ifname "$ifname"
 
# only need to change freq band and channel on the first vif
+   [ "$first" = 1 ] && {
config_get hwmode "$device" hwmode
[ -z "$hwmode" ] && config_get hwmode "$device" mode
 
-   pureg=0
-   case "$hwmode" in
-   *b) hwmode=11b;;
-   *bg) hwmode=11g;;
-   *g) hwmode=11g; pureg=1;;
-   *gdt) hwmode=11gdt;;
-   *a) hwmode=11a;;
-   *adt) hwmode=11adt;;
-   *ast) hwmode=11ast;;
-   *fh) hwmode=fh;;
-   *) hwmode=auto;;
-   esac
-   iwpriv "$ifname" pureg "$pureg"
-
-   [ "$first" = 1 ] && {
+   pureg=0
+   case "$hwmode" in
+   *b) hwmode=11b;;
+   *bg) hwmode=11g;;
+   *g) hwmode=11g; pureg=1;;
+   *gdt) hwmode=11gdt;;
+   *a) hwmode=11a;;
+  

[OpenWrt-Devel] [PATCH] [madwifi] Detect every atheros device present

2009-05-12 Thread Vasilis Tsiligiannis
This patch is for boards with more than one atheros devices. It changes 
detect_atheros() function to continue with the detection of every device
present and don't return when just one is found

Signed-off-by: Vasilis Tsiligiannis 
---
diff --git a/trunk/package/madwifi/files/lib/wifi/madwifi.sh 
b/trunk/package/madwifi/files/lib/wifi/madwifi.sh
index 1e5b0db..1812e94 100755
--- a/trunk/package/madwifi/files/lib/wifi/madwifi.sh
+++ b/trunk/package/madwifi/files/lib/wifi/madwifi.sh
@@ -357,7 +357,7 @@ detect_atheros() {
 "
;;
esac
-   [ "$type" = atheros ] && return
+   [ "$type" = atheros ] && continue
cat <https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] [madwifi] Set device related options only once, for the first vif

2009-05-12 Thread Vasilis Tsiligiannis
This patch makes device related options to get set only once, when setting up
the first vif. The options are:

* diversity
* rxantenna
* txantenna
* softled
* distance
* hwmode (a.k.a. mode)

Signed-off-by: Vasilis Tsiligiannis 
---
diff --git a/trunk/package/madwifi/files/lib/wifi/madwifi.sh 
b/trunk/package/madwifi/files/lib/wifi/madwifi.sh
index 1e5b0db..1809462 100755
--- a/trunk/package/madwifi/files/lib/wifi/madwifi.sh
+++ b/trunk/package/madwifi/files/lib/wifi/madwifi.sh
@@ -84,6 +84,48 @@ enable_atheros() {
 
[ auto = "$channel" ] && channel=0
 
+   config_get_bool antdiv "$device" diversity
+   config_get antrx "$device" rxantenna
+   config_get anttx "$device" txantenna
+   config_get_bool softled "$device" softled 1
+
+   devname="$(cat /proc/sys/dev/$device/dev_name)"
+   antgpio=
+   case "$devname" in
+   NanoStation2) antgpio=7;;
+   NanoStation5) antgpio=1;;
+   esac
+   if [ -n "$antgpio" ]; then
+   softled=0
+   config_get antenna "$device" antenna
+   case "$antenna" in
+   external) antdiv=0; antrx=1; anttx=1 ;;
+   horizontal) antdiv=0; antrx=1; anttx=1 ;;
+   vertical) antdiv=0; antrx=2; anttx=2 ;;
+   auto) antdiv=1; antrx=0; anttx=0 ;;
+   esac
+   
+   [ -x "$(which gpioctl 2>/dev/null)" ] || antenna=
+   case "$antenna" in
+   horizontal|vertical|auto)
+   gpioctl "dirout" "$antgpio" >/dev/null 2>&1
+   gpioctl "set" "$antgpio" >/dev/null 2>&1
+   ;;
+   external)
+   gpioctl "dirout" "$antgpio" >/dev/null 2>&1
+   gpioctl "clear" "$antgpio" >/dev/null 2>&1
+   ;;
+   esac
+   fi
+
+   [ -n "$antdiv" ] && sysctl -w dev."$device".diversity="$antdiv" >&-
+   [ -n "$antrx" ] && sysctl -w dev."$device".rxantenna="$antrx" >&-
+   [ -n "$anttx" ] && sysctl -w dev."$device".txantenna="$anttx" >&-
+   [ -n "$softled" ] && sysctl -w dev."$device".softled="$softled" >&-
+
+   config_get distance "$device" distance
+   [ -n "$distance" ] && athctrl -i "$device" -d "$distance" >&-
+
local first=1
for vif in $vifs; do
local start_hostapd vif_txpower
@@ -98,7 +140,6 @@ enable_atheros() {
adhoc) config_get nosbeacon "$vif" sw_merge;;
esac

-   config_get ifname "$vif" ifname
ifname=$(wlanconfig "$ifname" create wlandev "$device" wlanmode 
"$mode" ${nosbeacon:+nosbeacon})
[ $? -ne 0 ] && {
echo "enable_atheros($device): Failed to set up $mode 
vif $ifname" >&2
@@ -107,25 +148,25 @@ enable_atheros() {
config_set "$vif" ifname "$ifname"
 
# only need to change freq band and channel on the first vif
+   [ "$first" = 1 ] && {
config_get hwmode "$device" hwmode
[ -z "$hwmode" ] && config_get hwmode "$device" mode
 
-   pureg=0
-   case "$hwmode" in
-   *b) hwmode=11b;;
-   *bg) hwmode=11g;;
-   *g) hwmode=11g; pureg=1;;
-   *gdt) hwmode=11gdt;;
-   *a) hwmode=11a;;
-   *adt) hwmode=11adt;;
-   *ast) hwmode=11ast;;
-   *fh) hwmode=fh;;
-   *) hwmode=auto;;
-   esac
-   iwpriv "$ifname" pureg "$pureg"
-
-   [ "$first" = 1 ] && {
+   pureg=0
+   case "$hwmode" in
+   *b) hwmode=11b;;
+   *bg) hwmode=11g;;
+   *g) hwmode=11g; pureg=1;;
+   *gdt) hwmode=11gdt;;
+   *a) hwmode=11a;;
+   *adt) hwmode=11adt;;
+   *ast) hwmode=11ast;;
+

[OpenWrt-Devel] [PATCH] [olsrd] Start olsrd after starting quagga

2009-05-07 Thread Vasilis Tsiligiannis
olsrd should be started after quagga so that zebra socket gets created and
olsrd quagga plugin can connect to and exchange routes.

Signed-off-by: Vasilis Tsiligiannis 
---
diff --git a/packages/net/olsrd/files/olsrd.init 
b/packages/net/olsrd/files/olsrd.init
index 52ab0ca..f719c45 100644
--- a/packages/net/olsrd/files/olsrd.init
+++ b/packages/net/olsrd/files/olsrd.init
@@ -1,7 +1,7 @@
 #!/bin/sh /etc/rc.common
 # Copyright (C) 2008  Alina Friedrichsen 
 # Special thanks to bittorf wireless ))
-START=50
+START=65
 
 OLSRD_OLSRD_SCHEMA='ignore:internal config_file:internal DebugLevel=0 
IpVersion=4 AllowNoInt:bool=1 Pollrate=0.025 TcRedundancy=2 MprCoverage=3 
LinkQualityFishEye=1 LinkQualityWinSize=100 
LinkQualityDijkstraLimit=0+9.0 LinkQualityLevel=2 UseHysteresis:bool=0 
FIBMetric=flat ClearScreen:bool=1 Willingness=3 LinkQualityAging=0.1 
LinkQualityAlgorithm=etx_fpm'
 OLSRD_IPCCONNECT_SCHEMA='ignore:internal Host:list Net:list2'
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] [Quagga] Fix typo when executing watchquagga

2009-05-07 Thread Vasilis Tsiligiannis
Signed-off-by: Vasilis Tsiligiannis 
---
diff --git a/packages/net/quagga/files/quagga b/packages/net/quagga/files/quagga
index 01f8d71..cf6855c 100644
--- a/packages/net/quagga/files/quagga
+++ b/packages/net/quagga/files/quagga
@@ -310,13 +310,13 @@ then
then
if [ "${d}" = "watchquagga" ]
then
-   $("${BINDIR}/${d}" \
+   "${BINDIR}/${d}" \
${WATCHQUAGGA_FLAGS} \
"${WATCHQUAGGA_CMD}" \
-   ${WATCHQUAGGA_DAEMONS})
+   ${WATCHQUAGGA_DAEMONS}
status=$?
else
-   $("${BINDIR}/${d}" ${DAEMON_FLAGS})
+   "${BINDIR}/${d}" ${DAEMON_FLAGS}
status=$?
fi
if [ $status -eq 0 ]
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] [Quagga] Ignore wireless netlink messages

2009-05-07 Thread Vasilis Tsiligiannis
This patch fixes a bug where zebra terminates randomly with SIGABRT. The 
problem originates from zebra trying to parse wireless netlink messages. The 
following patch makes zebra ignore these messages.

Signed-off-by: Acinonyx 
---
 .../patches/130-netlink_ignore_wireless.patch  |   40 
 1 files changed, 40 insertions(+), 0 deletions(-)
 create mode 100644 
packages/net/quagga/patches/130-netlink_ignore_wireless.patch

diff --git a/packages/net/quagga/patches/130-netlink_ignore_wireless.patch 
b/packages/net/quagga/patches/130-netlink_ignore_wireless.patch
new file mode 100644
index 000..27a271e
--- /dev/null
+++ b/packages/net/quagga/patches/130-netlink_ignore_wireless.patch
@@ -0,0 +1,40 @@
+diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c
+index 61b2505..e766259 100644
+--- a/zebra/rt_netlink.c
 b/zebra/rt_netlink.c
+@@ -487,6 +487,17 @@ netlink_interface (struct sockaddr_nl *snl, struct 
nlmsghdr *h)
+   /* Looking up interface name. */
+   memset (tb, 0, sizeof tb);
+   netlink_parse_rtattr (tb, IFLA_MAX, IFLA_RTA (ifi), len);
++  
++#ifdef IFLA_WIRELESS
++  /* check for wireless messages to ignore */
++  if ((tb[IFLA_WIRELESS] != NULL) && (ifi->ifi_change == 0))
++{
++  if (IS_ZEBRA_DEBUG_KERNEL)
++zlog_debug ("%s: ignoring IFLA_WIRELESS message", __func__);
++  return 0;
++}
++#endif /* IFLA_WIRELESS */
++
+   if (tb[IFLA_IFNAME] == NULL)
+ return -1;
+   name = (char *) RTA_DATA (tb[IFLA_IFNAME]);
+@@ -943,6 +954,17 @@ netlink_link_change (struct sockaddr_nl *snl, struct 
nlmsghdr *h)
+   /* Looking up interface name. */
+   memset (tb, 0, sizeof tb);
+   netlink_parse_rtattr (tb, IFLA_MAX, IFLA_RTA (ifi), len);
++
++#ifdef IFLA_WIRELESS
++  /* check for wireless messages to ignore */
++  if ((tb[IFLA_WIRELESS] != NULL) && (ifi->ifi_change == 0))
++{
++  if (IS_ZEBRA_DEBUG_KERNEL)
++zlog_debug ("%s: ignoring IFLA_WIRELESS message", __func__);
++  return 0;
++}
++#endif /* IFLA_WIRELESS */
++  
+   if (tb[IFLA_IFNAME] == NULL)
+ return -1;
+   name = (char *) RTA_DATA (tb[IFLA_IFNAME]);
-- 
1.5.4.3

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


[OpenWrt-Devel] [PATCH] [pcituils] Fix post-installation error

2009-05-07 Thread Vasilis Tsiligiannis
This patch fixes an issue where installation of pciutils fails if pci IDs
cannot be downloaded (e.g. when there isn't any internet access)

Signed-off-by: Vasilis Tsiligiannis 
---
diff --git a/packages/utils/pciutils/Makefile b/packages/utils/pciutils/Makefile
index 37c7aae..8cba973 100644
--- a/packages/utils/pciutils/Makefile
+++ b/packages/utils/pciutils/Makefile
@@ -33,6 +33,7 @@ endef
 define Package/pciutils/postinst
 #!/bin/sh
 $${IPKG_INSTROOT}/usr/sbin/update-pciids.sh
+exit 0
 endef
 
 MAKE_FLAGS += \
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] Add support for pc speaker

2009-05-07 Thread Vasilis Tsiligiannis
PC speaker could be very useful on platforms which implement it. One could 
easily use the speaker to produce a sound where its pitch or duration varies 
according to signal strength or SNR of a wireless link.

Signed-off-by: Vasilis Tsiligiannis 
---
diff --git a/trunk/package/kernel/modules/other.mk 
b/trunk/package/kernel/modules/other.mk
index 9ea0f18..fcac951 100644
--- a/trunk/package/kernel/modules/other.mk
+++ b/trunk/package/kernel/modules/other.mk
@@ -103,6 +103,23 @@ endef
 
 $(eval $(call KernelPackage,lp))
 
+define KernelPackage/pcspkr
+  SUBMENU:=$(OTHER_MENU)
+  TITLE:=PC speaker support
+  DEPENDS:=...@linux_2_6
+  KCONFIG:=CONFIG_INPUT_PCSPKR
+  FILES:= \
+   $(LINUX_DIR)/drivers/input/misc/pcspkr.$(LINUX_KMOD_SUFFIX)
+  AUTOLOAD:=$(call AutoLoad,50, \
+   pcspkr \
+  )
+endef
+
+define KernelPackage/pcspkr/description
+ This enables sounds (tones) through the pc speaker
+endef
+
+$(eval $(call KernelPackage,pcspkr))
 
 define KernelPackage/pcmcia-core
   SUBMENU:=$(OTHER_MENU)
diff --git a/trunk/target/linux/generic-2.6/config-2.6.21 
b/trunk/target/linux/generic-2.6/config-2.6.21
index c4757e6..ddb549a 100644
--- a/trunk/target/linux/generic-2.6/config-2.6.21
+++ b/trunk/target/linux/generic-2.6/config-2.6.21
@@ -446,7 +446,7 @@ CONFIG_INIT_ENV_ARG_LIMIT=32
 # CONFIG_INPUT_JOYSTICK is not set
 # CONFIG_INPUT_KEYBOARD is not set
 # CONFIG_INPUT_KEYSPAN_REMOTE is not set
-# CONFIG_INPUT_MISC is not set
+CONFIG_INPUT_MISC=y
 # CONFIG_INPUT_MOUSEDEV is not set
 # CONFIG_INPUT_MOUSE is not set
 # CONFIG_INPUT_PCSPKR is not set
diff --git a/trunk/target/linux/generic-2.6/config-2.6.23 
b/trunk/target/linux/generic-2.6/config-2.6.23
index 4416450..cd9298b 100644
--- a/trunk/target/linux/generic-2.6/config-2.6.23
+++ b/trunk/target/linux/generic-2.6/config-2.6.23
@@ -495,7 +495,7 @@ CONFIG_INIT_ENV_ARG_LIMIT=32
 # CONFIG_INPUT_JOYSTICK is not set
 # CONFIG_INPUT_KEYBOARD is not set
 # CONFIG_INPUT_KEYSPAN_REMOTE is not set
-# CONFIG_INPUT_MISC is not set
+CONFIG_INPUT_MISC=y
 # CONFIG_INPUT_MOUSEDEV is not set
 # CONFIG_INPUT_MOUSE is not set
 # CONFIG_INPUT_PCSPKR is not set
diff --git a/trunk/target/linux/generic-2.6/config-2.6.25 
b/trunk/target/linux/generic-2.6/config-2.6.25
index 608ad0a..3acb843 100644
--- a/trunk/target/linux/generic-2.6/config-2.6.25
+++ b/trunk/target/linux/generic-2.6/config-2.6.25
@@ -523,7 +523,7 @@ CONFIG_INIT_ENV_ARG_LIMIT=32
 # CONFIG_INPUT_JOYSTICK is not set
 # CONFIG_INPUT_KEYBOARD is not set
 # CONFIG_INPUT_KEYSPAN_REMOTE is not set
-# CONFIG_INPUT_MISC is not set
+CONFIG_INPUT_MISC=y
 # CONFIG_INPUT_MOUSEDEV is not set
 # CONFIG_INPUT_MOUSE is not set
 # CONFIG_INPUT_PCSPKR is not set
diff --git a/trunk/target/linux/generic-2.6/config-2.6.26 
b/trunk/target/linux/generic-2.6/config-2.6.26
index d6aa6b3..6713cf2 100644
--- a/trunk/target/linux/generic-2.6/config-2.6.26
+++ b/trunk/target/linux/generic-2.6/config-2.6.26
@@ -544,7 +544,7 @@ CONFIG_INIT_ENV_ARG_LIMIT=32
 # CONFIG_INPUT_JOYSTICK is not set
 # CONFIG_INPUT_KEYBOARD is not set
 # CONFIG_INPUT_KEYSPAN_REMOTE is not set
-# CONFIG_INPUT_MISC is not set
+CONFIG_INPUT_MISC=y
 # CONFIG_INPUT_MOUSEDEV is not set
 # CONFIG_INPUT_MOUSE is not set
 # CONFIG_INPUT_PCSPKR is not set
diff --git a/trunk/target/linux/generic-2.6/config-2.6.27 
b/trunk/target/linux/generic-2.6/config-2.6.27
index 1d41c3e..1ca04cc 100644
--- a/trunk/target/linux/generic-2.6/config-2.6.27
+++ b/trunk/target/linux/generic-2.6/config-2.6.27
@@ -582,7 +582,7 @@ CONFIG_INIT_ENV_ARG_LIMIT=32
 # CONFIG_INPUT_JOYSTICK is not set
 # CONFIG_INPUT_KEYBOARD is not set
 # CONFIG_INPUT_KEYSPAN_REMOTE is not set
-# CONFIG_INPUT_MISC is not set
+CONFIG_INPUT_MISC=y
 # CONFIG_INPUT_MOUSEDEV is not set
 # CONFIG_INPUT_MOUSE is not set
 # CONFIG_INPUT_PCSPKR is not set
diff --git a/trunk/target/linux/generic-2.6/config-2.6.28 
b/trunk/target/linux/generic-2.6/config-2.6.28
index 0bad557..1a193fb 100644
--- a/trunk/target/linux/generic-2.6/config-2.6.28
+++ b/trunk/target/linux/generic-2.6/config-2.6.28
@@ -628,7 +628,7 @@ CONFIG_INIT_ENV_ARG_LIMIT=32
 # CONFIG_INPUT_JOYSTICK is not set
 # CONFIG_INPUT_KEYBOARD is not set
 # CONFIG_INPUT_KEYSPAN_REMOTE is not set
-# CONFIG_INPUT_MISC is not set
+CONFIG_INPUT_MISC=y
 # CONFIG_INPUT_MOUSEDEV is not set
 # CONFIG_INPUT_MOUSE is not set
 # CONFIG_INPUT_PCSPKR is not set
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] [olsrd] Add quagga plugin package

2009-05-07 Thread Vasilis Tsiligiannis
Signed-off-by: Vasilis Tsiligiannis 
---
diff --git a/packages/net/olsrd/Makefile b/packages/net/olsrd/Makefile
index 74cbb2b..c9d2941 100644
--- a/packages/net/olsrd/Makefile
+++ b/packages/net/olsrd/Makefile
@@ -79,6 +79,12 @@ define Package/olsrd-mod-nameservice
   TITLE:=Lightweight hostname resolver plugin
 endef
 
+define Package/olsrd-mod-quagga
+  $(call Package/olsrd/template)
+  DEPENDS:=olsrd
+  TITLE:=Quagga plugin
+endef
+
 define Package/olsrd-mod-secure
   $(call Package/olsrd/template)
   DEPENDS:=olsrd
@@ -113,7 +119,7 @@ define Build/Compile
MANDIR="$(PKG_INSTALL_DIR)/usr/share/man" \
STRIP="true" \
INSTALL_LIB="true" \
-   SUBDIRS="arprefresh bmf dot_draw dyn_gw dyn_gw_plain httpinfo 
nameservice secure txtinfo" \
+   SUBDIRS="arprefresh bmf dot_draw dyn_gw dyn_gw_plain httpinfo 
nameservice secure txtinfo quagga" \
all libs install install_libs
 endef
 
@@ -161,6 +167,11 @@ define Package/olsrd-mod-nameservice/install
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/nameservice/olsrd_nameservice.so.* 
$(1)/usr/lib/
 endef
 
+define Package/olsrd-mod-quagga/install
+   $(INSTALL_DIR) $(1)/usr/lib
+   $(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/quagga/olsrd_quagga.so.* 
$(1)/usr/lib/
+endef
+
 define Package/olsrd-mod-secure/install
$(INSTALL_DIR) $(1)/etc/olsrd.d
$(CP) ./files/olsrd_secure_key $(1)/etc/olsrd.d/
@@ -181,5 +192,6 @@ $(eval $(call BuildPackage,olsrd-mod-dyn-gw))
 $(eval $(call BuildPackage,olsrd-mod-dyn-gw-plain))
 $(eval $(call BuildPackage,olsrd-mod-httpinfo))
 $(eval $(call BuildPackage,olsrd-mod-nameservice))
+$(eval $(call BuildPackage,olsrd-mod-quagga))
 $(eval $(call BuildPackage,olsrd-mod-secure))
 $(eval $(call BuildPackage,olsrd-mod-txtinfo))
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] Add pcmcia support on x86 target

2009-05-07 Thread Vasilis Tsiligiannis
This is useful for some notebooks which still exist and have this hardware.

Signed-off-by: Vasilis Tsiligiannis 
---
diff --git a/trunk/target/linux/x86/Makefile b/trunk/target/linux/x86/Makefile
index d1f0f70..2a82cec 100644
--- a/trunk/target/linux/x86/Makefile
+++ b/trunk/target/linux/x86/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 ARCH=i386
 BOARD:=x86
 BOARDNAME:=x86
-FEATURES:=squashfs jffs2 ext2 vdi vmdk tgz
+FEATURES:=squashfs jffs2 ext2 vdi vmdk pcmcia tgz
 SUBTARGETS=generic
 
 LINUX_VERSION:=2.6.28.10
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] Add default configuration for Quagga daemons

2009-05-07 Thread Vasilis Tsiligiannis
This patch adds default configs for quagga daemons. It adds password zebra
and restricts vty access to everyone except localhost. If these confs do not 
exist the daemons do not start when running quagga init script.

diff --git a/packages/net/quagga/Makefile b/packages/net/quagga/Makefile
index 4864f57..1346b10 100644
--- a/packages/net/quagga/Makefile
+++ b/packages/net/quagga/Makefile
@@ -120,6 +120,7 @@ define Package/quagga/install
# avoid /etc being set to 0750
$(INSTALL_DIR) $(1)/etc/quagga/
chmod 0750 $(1)/etc/quagga/
+   $(INSTALL_DATA) ./files/quagga.conf $(1)/etc/quagga/zebra.conf
$(INSTALL_DIR) $(1)/etc/init.d/
$(INSTALL_BIN) ./files/quagga $(1)/usr/sbin/quagga.init
$(INSTALL_BIN) ./files/quagga.init $(1)/etc/init.d/quagga
@@ -177,31 +178,49 @@ endef
 define Package/quagga-bgpd/install 
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/bgpd $(1)/usr/sbin/
+   $(INSTALL_DIR) $(1)/etc/quagga/
+   chmod 0750 $(1)/etc/quagga/
+   $(INSTALL_DATA) ./files/quagga.conf $(1)/etc/quagga/bgpd.conf
 endef
 
 define Package/quagga-isisd/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/isisd $(1)/usr/sbin
+   $(INSTALL_DIR) $(1)/etc/quagga/
+   chmod 0750 $(1)/etc/quagga/
+   $(INSTALL_DATA) ./files/quagga.conf $(1)/etc/quagga/isisd.conf
 endef
 
 define Package/quagga-ospfd/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ospfd $(1)/usr/sbin/
+   $(INSTALL_DIR) $(1)/etc/quagga/
+   chmod 0750 $(1)/etc/quagga/
+   $(INSTALL_DATA) ./files/quagga.conf $(1)/etc/quagga/ospfd.conf
 endef
 
 define Package/quagga-ospf6d/install   
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ospf6d $(1)/usr/sbin/
+   $(INSTALL_DIR) $(1)/etc/quagga/
+   chmod 0750 $(1)/etc/quagga/
+   $(INSTALL_DATA) ./files/quagga.conf $(1)/etc/quagga/ospf6d.conf
 endef
 
 define Package/quagga-ripd/install 
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ripd $(1)/usr/sbin/
+   $(INSTALL_DIR) $(1)/etc/quagga/
+   chmod 0750 $(1)/etc/quagga/
+   $(INSTALL_DATA) ./files/quagga.conf $(1)/etc/quagga/ripd.conf
 endef
 
 define Package/quagga-ripngd/install   
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ripngd $(1)/usr/sbin/
+   $(INSTALL_DIR) $(1)/etc/quagga/
+   chmod 0750 $(1)/etc/quagga/
+   $(INSTALL_DATA) ./files/quagga.conf $(1)/etc/quagga/ripngd.conf
 endef
 
 define Package/quagga-vtysh/install
diff --git a/packages/net/quagga/files/quagga.conf 
b/packages/net/quagga/files/quagga.conf
new file mode 100644
index 000..e847c5a
--- /dev/null
+++ b/packages/net/quagga/files/quagga.conf
@@ -0,0 +1,6 @@
+password zebra
+!
+access-list vty permit 127.0.0.0/8
+!
+line vty
+ access-class vty
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] Remove --no-timestamping wget option from update-pciids script

2009-05-07 Thread Vasilis Tsiligiannis
This bug is introduced after upgrading pciutils package and prevents successful
installation of the package. This patch fixes update-pciids script not to use
--no-timestamping wget switch, which is not supported by busybox.

Signed-off-by: Vasilis Tsiligiannis 
---
 .../patches/100-remove-no-timestamping.patch   |   12 
 1 files changed, 12 insertions(+), 0 deletions(-)
 create mode 100644 
packages/utils/pciutils/patches/100-remove-no-timestamping.patch

diff --git a/packages/utils/pciutils/patches/100-remove-no-timestamping.patch 
b/packages/utils/pciutils/patches/100-remove-no-timestamping.patch
new file mode 100644
index 000..f442315
--- /dev/null
+++ b/packages/utils/pciutils/patches/100-remove-no-timestamping.patch
@@ -0,0 +1,12 @@
+diff -Nur pciutils-3.1.2/update-pciids.sh 
pciutils-3.1.2-patched/update-pciids.sh
+--- pciutils-3.1.2/update-pciids.sh2008-11-11 01:11:51.0 +0200
 pciutils-3.1.2-patched/update-pciids.sh2009-04-27 01:34:24.0 
+0300
+@@ -33,7 +33,7 @@
+   DL="curl -o $DEST.new $SRC"
+ ${quiet} && DL="$DL -s -S"
+ elif which wget >/dev/null 2>&1 ; then
+-  DL="wget --no-timestamping -O $DEST.new $SRC"
++  DL="wget -O $DEST.new $SRC"
+   ${quiet} && DL="$DL -q"
+ elif which lynx >/dev/null 2>&1 ; then
+   DL="eval lynx -source $SRC >$DEST.new"
-- 
1.5.4.3

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


[OpenWrt-Devel] [PATCH] Fix installation of hostap pci and plx driver

2009-05-07 Thread Vasilis Tsiligiannis
This fixes an issue where installation of hostap pci and plx driver fails
because both were trying to overwrite hostap.sh file.

Signed-off-by: Vasilis Tsiligiannis 
---
 trunk/package/hostap-driver/Makefile |7 +--
 1 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/trunk/package/hostap-driver/Makefile 
b/trunk/package/hostap-driver/Makefile
index 3a170f6..5bdd871 100644
--- a/trunk/package/hostap-driver/Makefile
+++ b/trunk/package/hostap-driver/Makefile
@@ -174,12 +174,7 @@ else
   endef
 endif
 
-define KernelPackage/hostap-pci/install
-   $(INSTALL_DIR) $(1)/lib/wifi
-   $(INSTALL_DATA) ./files/lib/wifi/hostap.sh $(1)/lib/wifi
-endef
-
-define KernelPackage/hostap-plx/install
+define KernelPackage/hostap/install
$(INSTALL_DIR) $(1)/lib/wifi
$(INSTALL_DATA) ./files/lib/wifi/hostap.sh $(1)/lib/wifi
 endef
-- 
1.5.4.3

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


[OpenWrt-Devel] [PATCH] Fix Image Builder building - added missing /bin dir to toolchain

2009-05-07 Thread Vasilis Tsiligiannis

Signed-off-by: Vasilis Tsiligiannis 
---
 trunk/toolchain/uClibc/Makefile |1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/trunk/toolchain/uClibc/Makefile b/trunk/toolchain/uClibc/Makefile
index e8407fb..f47670f 100644
--- a/trunk/toolchain/uClibc/Makefile
+++ b/trunk/toolchain/uClibc/Makefile
@@ -114,6 +114,7 @@ endef
 
 define Host/Install
$(UCLIBC_MAKE) PREFIX= utils
+   $(INSTALL_DIR) $(TOOLCHAIN_DIR)/bin
$(INSTALL_DIR) $(TOOLCHAIN_DIR)/usr/bin
$(INSTALL_BIN) \
$(HOST_BUILD_DIR)/utils/ldd \
-- 
1.5.4.3

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


[OpenWrt-Devel] [PATCH] Fix building of iso filesystem

2009-05-07 Thread Vasilis Tsiligiannis
This fixes two errors when building iso filesystem:

a) dir root.grub/boot doesn't get created.
b) the creation of .image file by gen_image.sh which apparently is not needed
when building an iso.

Signed-off-by: Vasilis Tsiligiannis 
---
 trunk/target/linux/x86/image/Makefile |7 +--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/trunk/target/linux/x86/image/Makefile 
b/trunk/target/linux/x86/image/Makefile
index 2bdfba5..e64fa19 100644
--- a/trunk/target/linux/x86/image/Makefile
+++ b/trunk/target/linux/x86/image/Makefile
@@ -92,14 +92,15 @@ define Image/Build/squashfs
 endef
 
 define Image/Build/iso 
+   $(INSTALL_DIR) $(KDIR)/root.grub/boot/grub
$(CP) \
$(STAGING_DIR_HOST)/usr/lib/grub/i386-openwrt/stage2_eltorito \
$(KDIR)/root.grub/boot/grub/stage2_eltorito 
-   sed -i \
+   sed \
-e 's...@cmdline@#$(strip $(call Image/cmdline/$(1))) 
$(BOOTOPTS)#g' \
-e 's...@baudrate@#$(CONFIG_X86_GRUB_BAUDRATE)#g' \
-e 's#(hd0,0)#(cd)#g' \
-$(KDIR)/root.grub/boot/grub/menu.lst 
+   ./menu.lst > $(KDIR)/root.grub/boot/grub/menu.lst
$(CP) $(KDIR)/bzImage $(KDIR)/root.grub/boot/vmlinuz 
mkisofs -R -b boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 
-boot-info-table \
-o $(KDIR)/root.iso $(KDIR)/root.grub 
@@ -111,9 +112,11 @@ endef
 
 define Image/Build
$(call Image/Build/$(1))
+ifneq ($(1),iso)
$(call Image/Build/grub,$(1))
$(call Image/Build/vdi,$(1))
$(call Image/Build/vmdk,$(1))
+endif
$(CP) $(KDIR)/root.$(1) $(BIN_DIR)/openwrt-$(BOARD)-$(1).fs
$(CP) $(KDIR)/bzImage $(BIN_DIR)/openwrt-$(BOARD)-vmlinuz
 endef
-- 
1.5.4.3

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


[OpenWrt-Devel] [PATCH] Don't try to pivot to new ramfs if already running on one

2009-05-07 Thread Vasilis Tsiligiannis
This patch allows the sysupgrade script to continue with the upgrade if
openwrt is already running on a ramfs. This allows the use of the sysupgrade
script as an _installer_ when running from an iso image. A user could boot the 
system from a bootable cd and invoke sysupgrade -n  to write an image to
the hard disk or CF.

Signed-off-by: Vasilis Tsiligiannis 
---
 trunk/package/base-files/files/sbin/sysupgrade |8 ++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/trunk/package/base-files/files/sbin/sysupgrade 
b/trunk/package/base-files/files/sbin/sysupgrade
index 83cc956..139135e 100755
--- a/trunk/package/base-files/files/sbin/sysupgrade
+++ b/trunk/package/base-files/files/sbin/sysupgrade
@@ -109,5 +109,9 @@ else
 fi
 run_hooks "" $sysupgrade_pre_upgrade
 
-v "Switching to ramdisk..."
-run_ramfs '. /etc/functions.sh; include /lib/upgrade; do_upgrade'
+if [ -n "$(rootfs_type)" ]; then
+   v "Switching to ramdisk..."
+   run_ramfs '. /etc/functions.sh; include /lib/upgrade; do_upgrade'
+else
+   do_upgrade
+fi
\ No newline at end of file
-- 
1.5.4.3

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


[OpenWrt-Devel] [PATCH] Add option in sysupgrade to flash gziped images

2009-05-07 Thread Vasilis Tsiligiannis
This option is most useful when building/upgrading images for targets which
feature high capacity media devices like hard disks or CFs. An image becomes 
too large if we want to utilize the whole disk space. Since this space is 
empty, 
gzipping the image should reduce its size considerably.

Signed-off-by: Vasilis Tsiligiannis 
---
 .../package/base-files/files/lib/upgrade/common.sh |9 ++---
 trunk/package/base-files/files/sbin/sysupgrade |4 +++-
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/trunk/package/base-files/files/lib/upgrade/common.sh 
b/trunk/package/base-files/files/lib/upgrade/common.sh
index 86bd95b..05e664f 100644
--- a/trunk/package/base-files/files/lib/upgrade/common.sh
+++ b/trunk/package/base-files/files/lib/upgrade/common.sh
@@ -45,7 +45,7 @@ pivot() { #  
 }
 
 run_ramfs() { #  [...]
-   
install_bin /bin/busybox /bin/ash /bin/sh /bin/mount /bin/umount 
/sbin/pivot_root /usr/bin/wget /sbin/reboot /bin/sync /bin/dd /bin/grep /bin/cp 
/bin/mv /bin/tar /usr/bin/md5sum "/usr/bin/[" /bin/vi /bin/ls /bin/cat 
/usr/bin/awk /usr/bin/hexdump /bin/sleep
+   
install_bin /bin/busybox /bin/ash /bin/sh /bin/mount /bin/umount 
/sbin/pivot_root /usr/bin/wget /sbin/reboot /bin/sync /bin/dd /bin/grep /bin/cp 
/bin/mv /bin/tar /usr/bin/md5sum "/usr/bin/[" /bin/vi /bin/ls /bin/cat 
/usr/bin/awk /usr/bin/hexdump /bin/sleep /bin/zcat
install_bin /sbin/mtd
for file in $RAMFS_COPY_BIN; do
install_bin $file
@@ -105,10 +105,13 @@ rootfs_type() {
 
 get_image() {
local from="$1"
+   local conc="cat"
+
+   [ $GZIPED -eq 1 ] && conc="zcat"
 
case "$from" in
-   http://*|ftp://*) wget -O- -q "$from";;
-   *) cat "$from"
+   http://*|ftp://*) wget -O- -q "$from" | "$conc";;
+   *) cat "$from" | "$conc";;
esac
 }
 
diff --git a/trunk/package/base-files/files/sbin/sysupgrade 
b/trunk/package/base-files/files/sbin/sysupgrade
index 1825cec..83cc956 100755
--- a/trunk/package/base-files/files/sbin/sysupgrade
+++ b/trunk/package/base-files/files/sbin/sysupgrade
@@ -9,7 +9,7 @@ export VERBOSE=1
 export SAVE_CONFIG=1
 export DELAY=
 export CONF_IMAGE=
-
+export GZIPED=
 # parse options
 while [ -n "$1" ]; do 
case "$1" in
@@ -19,6 +19,7 @@ while [ -n "$1" ]; do
-q) export VERBOSE="$(($VERBOSE - 1))";;
-n) export SAVE_CONFIG=0;;
-f) export CONF_IMAGE="$2"; shift;;
+   -g) export GZIPED=1;;
-*)
echo "Invalid option: $1"
exit 1
@@ -41,6 +42,7 @@ Usage: $0 [options] 
 Options:
-dadd a delay before rebooting
-f   restore configuration from .tar.gz (file or url)
+   -g   gziped image
-i   interactive mode
-n   do not save configuration over reflash
-q   less verbose
-- 
1.5.4.3

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


Re: [OpenWrt-Devel] [PATCH] Add missing kernel config symbol when selecting sky2 module

2009-02-03 Thread Vasilis Tsiligiannis
Στις Wednesday 04 February 2009 00:29:10 ο/η Vasilis Tsiligiannis έγραψε:
> Signed-off-by: Vasilis Tsiligiannis 
> ---
>  trunk/target/linux/generic-2.6/config-2.6.28 |1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/trunk/target/linux/generic-2.6/config-2.6.28
> b/trunk/target/linux/generic-2.6/config-2.6.28 index a22eab4..779a51b
> 100644
> --- a/trunk/target/linux/generic-2.6/config-2.6.28
> +++ b/trunk/target/linux/generic-2.6/config-2.6.28
> @@ -1518,6 +1518,7 @@ CONFIG_SIGNALFD=y
>  # CONFIG_SK98LIN is not set
>  # CONFIG_SKGE is not set
>  # CONFIG_SKY2 is not set
> +# CONFIG_SKY2_DEBUG is not set
>  CONFIG_SLAB=y
>  CONFIG_SLABINFO=y
>  CONFIG_SLHC=m

Sorry, ignore this patch. I've just noticed that this has already been fixed!

Regards,
Vasilis

-- 
Vasilis Tsiligiannis
Silverton Electronics

Dep.Research & Development
Tel.+302105746996
Fax.+302105745389
Email.  b_tsiligian...@silverton.gr
URL.http://www.silverton.gr/
Addr.   30, Anatolis str.
Athens, Peristeri, 12133
GREECE
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] Add missing kernel config symbol when selecting sky2 module

2009-02-03 Thread Vasilis Tsiligiannis

Signed-off-by: Vasilis Tsiligiannis 
---
 trunk/target/linux/generic-2.6/config-2.6.28 |1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/trunk/target/linux/generic-2.6/config-2.6.28 
b/trunk/target/linux/generic-2.6/config-2.6.28
index a22eab4..779a51b 100644
--- a/trunk/target/linux/generic-2.6/config-2.6.28
+++ b/trunk/target/linux/generic-2.6/config-2.6.28
@@ -1518,6 +1518,7 @@ CONFIG_SIGNALFD=y
 # CONFIG_SK98LIN is not set
 # CONFIG_SKGE is not set
 # CONFIG_SKY2 is not set
+# CONFIG_SKY2_DEBUG is not set
 CONFIG_SLAB=y
 CONFIG_SLABINFO=y
 CONFIG_SLHC=m
-- 
1.5.4.3

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] Fix conditional dependencies for libphy on tg3 module

2009-02-03 Thread Vasilis Tsiligiannis

Signed-off-by: Vasilis Tsiligiannis 
---
 trunk/package/kernel/modules/netdevices.mk |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/trunk/package/kernel/modules/netdevices.mk 
b/trunk/package/kernel/modules/netdevices.mk
index 454a9f2..1a819ec 100644
--- a/trunk/package/kernel/modules/netdevices.mk
+++ b/trunk/package/kernel/modules/netdevices.mk
@@ -265,7 +265,7 @@ define KernelPackage/tg3
   TITLE:=Broadcom Tigon3 Gigabit Ethernet
   FILES:=$(LINUX_DIR)/drivers/net/tg3.$(LINUX_KMOD_SUFFIX)
   KCONFIG:=CONFIG_TIGON3
-  DEPENDS:=...@linux_2_6 +LINUX_2_6_27:kmod-libphy +LINUX_2_6_28:kmod-libphy
+  DEPENDS:=...@linux_2_6 +LINUX_2_6_27||LINUX_2_6_28:kmod-libphy
   SUBMENU:=$(NETWORK_DEVICES_MENU)
   AUTOLOAD:=$(call AutoLoad,50,tg3)
 endef
-- 
1.5.4.3

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] missing sleep command in sysupgrade

2008-12-24 Thread Vasilis Tsiligiannis
Στις Wednesday 24 December 2008 15:56:33 ο/η Roberto Riggio έγραψε:
> /bin/sleep is missing in the list of ramfs commands.
>
> the platform_check_image function call is hardcode instead
> of useing the previously defined variable
>
> finally there are a few cosmetic fixes
>

Nice! I've already sent a patch for the missing sleep last week together with 
one that adds option to flash gzip-ed images but they passed unnoticed.  :(

-- 
Vasilis Tsiligiannis
Silverton Electronics

Dep.Research & Development
Tel.+302105746996
Fax.+302105745389
Email.  b_tsiligian...@silverton.gr
URL.http://www.silverton.gr/
Addr.   30, Anatolis str.
Athens, Peristeri, 12133
GREECE


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


[OpenWrt-Devel] [PATCH] Add option in sysupgrade to flash gziped images

2008-12-19 Thread Vasilis Tsiligiannis
Signed-off-by: Vasilis Tsiligiannis >
---
 .../package/base-files/files/lib/upgrade/common.sh |9 ++---
 trunk/package/base-files/files/sbin/sysupgrade |4 +++-
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/trunk/package/base-files/files/lib/upgrade/common.sh 
b/trunk/package/base-files/files/lib/upgrade/common.sh
index 86bd95b..05e664f 100644
--- a/trunk/package/base-files/files/lib/upgrade/common.sh
+++ b/trunk/package/base-files/files/lib/upgrade/common.sh
@@ -45,7 +45,7 @@ pivot() { #  
 }
 
 run_ramfs() { #  [...]
-   
install_bin /bin/busybox /bin/ash /bin/sh /bin/mount /bin/umount 
/sbin/pivot_root /usr/bin/wget /sbin/reboot /bin/sync /bin/dd /bin/grep /bin/cp 
/bin/mv /bin/tar /usr/bin/md5sum "/usr/bin/[" /bin/vi /bin/ls /bin/cat 
/usr/bin/awk /usr/bin/hexdump /bin/sleep
+   
install_bin /bin/busybox /bin/ash /bin/sh /bin/mount /bin/umount 
/sbin/pivot_root /usr/bin/wget /sbin/reboot /bin/sync /bin/dd /bin/grep /bin/cp 
/bin/mv /bin/tar /usr/bin/md5sum "/usr/bin/[" /bin/vi /bin/ls /bin/cat 
/usr/bin/awk /usr/bin/hexdump /bin/sleep /bin/zcat
install_bin /sbin/mtd
for file in $RAMFS_COPY_BIN; do
install_bin $file
@@ -105,10 +105,13 @@ rootfs_type() {
 
 get_image() {
local from="$1"
+   local conc="cat"
+
+   [ $GZIPED -eq 1 ] && conc="zcat"
 
case "$from" in
-   http://*|ftp://*) wget -O- -q "$from";;
-   *) cat "$from"
+   http://*|ftp://*) wget -O- -q "$from" | "$conc";;
+   *) cat "$from" | "$conc";;
esac
 }
 
diff --git a/trunk/package/base-files/files/sbin/sysupgrade 
b/trunk/package/base-files/files/sbin/sysupgrade
index 1825cec..83cc956 100755
--- a/trunk/package/base-files/files/sbin/sysupgrade
+++ b/trunk/package/base-files/files/sbin/sysupgrade
@@ -9,7 +9,7 @@ export VERBOSE=1
 export SAVE_CONFIG=1
 export DELAY=
 export CONF_IMAGE=
-
+export GZIPED=
 # parse options
 while [ -n "$1" ]; do 
case "$1" in
@@ -19,6 +19,7 @@ while [ -n "$1" ]; do
-q) export VERBOSE="$(($VERBOSE - 1))";;
-n) export SAVE_CONFIG=0;;
-f) export CONF_IMAGE="$2"; shift;;
+   -g) export GZIPED=1;;
-*)
echo "Invalid option: $1"
exit 1
@@ -41,6 +42,7 @@ Usage: $0 [options] 
 Options:
-dadd a delay before rebooting
-f   restore configuration from .tar.gz (file or url)
+   -g   gziped image
-i   interactive mode
-n   do not save configuration over reflash
-q   less verbose
-- 
1.5.4.3

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] Fix sysupgrade reboot delay

2008-12-19 Thread Vasilis Tsiligiannis
Signed-off-by: Vasilis Tsiligiannis >
---
 .../package/base-files/files/lib/upgrade/common.sh |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/trunk/package/base-files/files/lib/upgrade/common.sh 
b/trunk/package/base-files/files/lib/upgrade/common.sh
index cf8977a..86bd95b 100644
--- a/trunk/package/base-files/files/lib/upgrade/common.sh
+++ b/trunk/package/base-files/files/lib/upgrade/common.sh
@@ -45,7 +45,7 @@ pivot() { #  
 }
 
 run_ramfs() { #  [...]
-   
install_bin /bin/busybox /bin/ash /bin/sh /bin/mount /bin/umount 
/sbin/pivot_root /usr/bin/wget /sbin/reboot /bin/sync /bin/dd /bin/grep /bin/cp 
/bin/mv /bin/tar /usr/bin/md5sum "/usr/bin/[" /bin/vi /bin/ls /bin/cat 
/usr/bin/awk /usr/bin/hexdump
+   
install_bin /bin/busybox /bin/ash /bin/sh /bin/mount /bin/umount 
/sbin/pivot_root /usr/bin/wget /sbin/reboot /bin/sync /bin/dd /bin/grep /bin/cp 
/bin/mv /bin/tar /usr/bin/md5sum "/usr/bin/[" /bin/vi /bin/ls /bin/cat 
/usr/bin/awk /usr/bin/hexdump /bin/sleep
install_bin /sbin/mtd
for file in $RAMFS_COPY_BIN; do
install_bin $file
-- 
1.5.4.3
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] Add e2fsck init script - scans every ext2/ext3 mount from fstab

2008-12-19 Thread Vasilis Tsiligiannis
Signed-off-by: Vasilis Tsiligiannis >
---
 trunk/package/e2fsprogs/Makefile  |3 ++
 trunk/package/e2fsprogs/files/e2fsck.init |   35 +
 2 files changed, 38 insertions(+), 0 deletions(-)
 create mode 100644 trunk/package/e2fsprogs/files/e2fsck.init

diff --git a/trunk/package/e2fsprogs/Makefile b/trunk/package/e2fsprogs/Makefile
index a6b2d15..3e7b7a2 100644
--- a/trunk/package/e2fsprogs/Makefile
+++ b/trunk/package/e2fsprogs/Makefile
@@ -146,6 +146,9 @@ define Package/e2fsprogs/install
ln -sf mke2fs $(1)/usr/sbin/mkfs.ext3
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(foreach lib,com_err 
e2p,$(PKG_INSTALL_DIR)/usr/lib/lib$(lib).so.*) $(1)/usr/lib/
+   $(INSTALL_DIR) $(1)/etc/init.d
+   $(INSTALL_BIN) ./files/e2fsck.init $(1)/etc/init.d/e2fsck
+
 endef
 
 define Package/libuuid/install
diff --git a/trunk/package/e2fsprogs/files/e2fsck.init 
b/trunk/package/e2fsprogs/files/e2fsck.init
new file mode 100644
index 000..e66750c
--- /dev/null
+++ b/trunk/package/e2fsprogs/files/e2fsck.init
@@ -0,0 +1,35 @@
+#!/bin/sh /etc/rc.common
+# Copyright (C) 2008 OpenWrt.org
+# Vasilis Tsiligiannis 
+
+START=15
+
+e2fsck() {
+   local args
+   local cfg="$1"
+
+   config_get device "$cfg" device
+   [ -b "$device" ] || return 0
+
+   config_get fstype "$cfg" fstype
+   case "$fstype" in
+   ext2|ext3)
+   /usr/sbin/e2fsck -p "$device"
+   local status="$?"
+   case "$status" in
+   0|1) continue;;
+   2) reboot;;
+   4) echo "e2fsck ($device): Warning! Uncorrected 
errors.";;
+   *) echo "e2fsck ($device): Error $status. Check 
not complete.";;
+   esac
+   ;;
+   *)
+   ;;
+   esac
+}
+
+start() {
+   config_load fstab
+   config_foreach e2fsck mount
+}
+
-- 
1.5.4.3

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] Add support for RTL-8101E PCI-Express Fast Ethernet Adapters

2008-12-14 Thread Vasilis Tsiligiannis
Signed-off-by: Vasilis Tsiligiannis 
---
 trunk/package/r8101/Makefile |   47 ++
 1 files changed, 47 insertions(+), 0 deletions(-)
 create mode 100644 trunk/package/r8101/Makefile

diff --git a/trunk/package/r8101/Makefile b/trunk/package/r8101/Makefile
new file mode 100644
index 000..1b89819
--- /dev/null
+++ b/trunk/package/r8101/Makefile
@@ -0,0 +1,47 @@
+# 
+# Copyright (C) 2006-2008 OpenWrt.org
+#
+# 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:=r8101
+PKG_VERSION:=1.010.00
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
+PKG_SOURCE_URL:=ftp://61.56.69.18/cn/nic/
+PKG_MD5SUM:=0fd218723ce962a4594e6bd5ca47d56e
+
+include $(INCLUDE_DIR)/package.mk
+
+define KernelPackage/r8101
+  SUBMENU:=Network Devices
+  TITLE:=RealTek RTL-8101E PCIe Fast Ethernet Adapter kernel support
+  DEPENDS:=...@target_x86
+  URL:=http://www.realtek.com.tw/
+  FILES:= $(PKG_BUILD_DIR)/src/r8101.$(LINUX_KMOD_SUFFIX)
+  AUTOLOAD:=$(call AutoLoad,50,r8101)
+endef
+
+define KernelPackage/r8101/description
+ Kernel modules for RealTek RTL-8101E PCI-Express Fast Ethernet adapters.
+endef
+
+define Build/Compile
+   chmod u+x $(PKG_BUILD_DIR)/src
+   $(MAKE) -C $(LINUX_DIR) \
+   SUBDIRS="$(PKG_BUILD_DIR)/src" \
+   ARCH="$(LINUX_KARCH)" \
+   CROSS_COMPILE="$(TARGET_CROSS)" \
+   modules
+endef
+
+$(eval $(call KernelPackage,r8101))
+
+
+
-- 
1.5.4.3

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] Add libphy module to tg3 driver package - fixes unresolved symbols

2008-12-14 Thread Vasilis Tsiligiannis
Signed-off-by: Vasilis Tsiligiannis 
---
 trunk/package/kernel/modules/network.mk |4 
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/trunk/package/kernel/modules/network.mk 
b/trunk/package/kernel/modules/network.mk
index 03cd722..c481504 100644
--- a/trunk/package/kernel/modules/network.mk
+++ b/trunk/package/kernel/modules/network.mk
@@ -782,6 +782,10 @@ define KernelPackage/tg3
   DEPENDS:=...@linux_2_6
   SUBMENU:=$(NETWORK_DEVICES_MENU)
   AUTOLOAD:=$(call AutoLoad,50,tg3)
+ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.27)),1)
+  FILES+=$(LINUX_DIR)/drivers/net/phy/libphy.$(LINUX_KMOD_SUFFIX)
+  AUTOLOAD:=$(call AutoLoad,40,libphy tg3)
+endif
 endef
 
 define KernelPackage/tg3/description
-- 
1.5.4.3

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel