Re: [OpenWrt-Devel] dnsmasq leasefile fix

2011-02-15 Thread Ferenc Wagner
Peter Wagner writes: > - [ -n "$leasefile" ] && [ -e "$leasefile" ] || touch "$leasefile" > + [ -n "$leasefile" ] && ( [ -e "$leasefile" ] || touch "$leasefile" ) Looks like this is fixed already by commit 15fba44a (but see point 6 of http://mywiki.wooledge.org/BashPitfalls and the r

Re: [OpenWrt-Devel] Refactoring base-files

2011-02-06 Thread Ferenc Wagner
Felix Fietkau writes: > I think many of these scripts are simply prototypes - [...] many of > them will be replaced with compact and much more efficent c-code > soon-ish. We will integrate new infrastructure for starting/stopping/ > monitoring services and for generating config files soon, which

Re: [OpenWrt-Devel] Howto debug init scripts like preinit?

2010-03-24 Thread Ferenc Wagner
Daniel Dickinson writes: > You won't see anything from preinit with set -x because when preinit is > first called there is no stdin/stdout. One of the things preinit does > is attach itself to a terminal, if there is one (otherwise it just > connects to a pseudo-terminal) Would putting /dev/con

Re: [OpenWrt-Devel] brcm47xx 2.6.33 update patch

2010-03-03 Thread Ferenc Wagner
Peter Wagner writes: > Am Mittwoch 03 März 2010 00:22:30 schrieb Peter Wagner: > >> CONFIG_CMDLINE="root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd >> console=ttyS0,115200" >> >> is missing in config-2.6.33 for brcm47xx > > OH my failure - it seems this option isnt needed any more

Re: [OpenWrt-Devel] bridged client with ebtables snat?

2010-01-19 Thread Ferenc Wagner
Stefan Bethke writes: > Am 19.01.2010 um 00:09 schrieb Ferenc Wagner: > >> Meanwhile, is there a fundamental reason why this scheme can't work, >> or do I simply overlook something? > > You probably don't need ebtables. With a routing setup (instead of > bri

Re: [OpenWrt-Devel] bridged client with ebtables snat?

2010-01-18 Thread Ferenc Wagner
Ferenc Wagner writes: > Felix Fietkau writes: > >> On 2010-01-08 6:24 PM, Ferenc Wagner wrote: >> >>> Stefan Bethke writes: >>> >>>> Am 08.01.2010 um 16:57 schrieb Ferenc Wagner: >>>> >>>>> However, I failed to use

Re: [OpenWrt-Devel] Not really inline patches

2010-01-17 Thread Ferenc Wagner
Matthew King writes: > Sorry about that. I guess what MIME means by inline isn't what everyone > else means. > > If you view the source and ignore the MIME wrappings they are inline in > sort of the way intended... I can assure you that in a MIME capable MUA your patches display just prefectly.

Re: [OpenWrt-Devel] WRT-54-G / bcm47xx / kernel2.6 / wifi_b43 / debugFS

2010-01-11 Thread Ferenc Wagner
Spudz76 writes: > On Sun, 2010-01-10 at 12:02 +0100, Ferenc Wagner wrote: > >> Felix Fietkau writes: >> >>> On 2010-01-08 6:24 PM, Ferenc Wagner wrote: >>> >>>> Stefan Bethke writes: >>>> >>>>> Am 08.01.2010 um 16:5

Re: [OpenWrt-Devel] WRT-54-G / bcm47xx / kernel2.6 / wifi_b43 / debugFS

2010-01-10 Thread Ferenc Wagner
Felix Fietkau writes: > On 2010-01-08 6:24 PM, Ferenc Wagner wrote: > >> Stefan Bethke writes: >> >>> Am 08.01.2010 um 16:57 schrieb Ferenc Wagner: >>> >>>> However, I failed to use it in client mode: it associates with the >>>> AP, b

Re: [OpenWrt-Devel] WRT-54-G / bcm47xx / kernel2.6 / wifi_b43 / debugFS

2010-01-08 Thread Ferenc Wagner
Stefan Bethke writes: > Am 08.01.2010 um 16:57 schrieb Ferenc Wagner: > >> However, I failed to use it in client mode: it associates with the >> AP, but doesn't receive IP packets (I simply bridge it to the LAN, >> and try DHCP from the laptop). > > See the

Re: [OpenWrt-Devel] WRT-54-G / bcm47xx / kernel2.6 / wifi_b43 / debugFS

2010-01-08 Thread Ferenc Wagner
Bastian Bittorf writes: > today i successfully tried a snapshot (r18405) > and was very lucky to have an working opensource > broadcom driver, which uses minstrel rate selection > algo, is stable and fast. (only ibss/adhoc-mode tested) Hi, I've done similarly with r19022 on a WAP54G. The opens

Re: [OpenWrt-Devel] brcm47xx/linux-2.6.30

2009-08-16 Thread Ferenc Wagner
Hauke Mehrtens writes: > Ferenc Wagner wrote: > >> How well is Linux 2.6.30 on brcm47xx supposed to work? The flash >> driver seems to have some problem at least: >> >> flash init: 0x1c00 0x0200 >> Physically mapped flash: Found 1 x16 devices a

Re: [OpenWrt-Devel] [patch] disable bridge firewalling in sysctl.conf by default

2009-08-13 Thread Ferenc Wagner
Matthias Buecher / Germany writes: > On 13.08.2009 11:08, Ferenc Wagner wrote: >> Matthias Buecher / Germany writes: >> >>> The bridge firewalling is caused by CONFIG_BRIDGE_NETFILTER=y (bool), >>> which is enabled by kmod-ebtables. As it is bool it

Re: [OpenWrt-Devel] [patch] disable bridge firewalling in sysctl.conf by default

2009-08-13 Thread Ferenc Wagner
Matthias Buecher / Germany writes: > The bridge firewalling is caused by CONFIG_BRIDGE_NETFILTER=y (bool), > which is enabled by kmod-ebtables. As it is bool it can not be > outsourced into an installable module. I wonder why it isn't possible to avoid loading ebtables... But can't check now, I

Re: [OpenWrt-Devel] [patch] disable bridge firewalling in sysctl.conf by default

2009-08-12 Thread Ferenc Wagner
Matthias Buecher / Germany writes: > When compiling a kernel prepared for all packages, then bridge > firewalling is enabled inside the kernel. Rather, I think you get the "problem" when you start the firewall. > This leads to "unexpected" behaviour for newbies and normal users: they > can not

Re: [OpenWrt-Devel] [PATCHv2] If inserting switch_core failed, do not waste time trying the switch drivers

2009-06-25 Thread Ferenc Wagner
Signed-off-by: Ferenc Wagner diff --git a/target/linux/brcm-2.4/base-files/etc/preinit.arch b/target/linux/brcm-2.4/base-files/etc/preinit.arch index 18b6ae5..9491056 100755 --- a/target/linux/brcm-2.4/base-files/etc/preinit.arch +++ b/target/linux/brcm-2.4/base-files/etc/preinit.arch @@ -46,10

[OpenWrt-Devel] [PATCH] If inserting switch_core failed, do not waste time trying the switch drivers

2009-06-25 Thread Ferenc Wagner
Signed-off-by: Ferenc Wagner diff --git a/target/linux/brcm-2.4/base-files/etc/preinit.arch b/target/linux/brcm-2.4/base-files/etc/preinit.arch index 18b6ae5..fd73e37 100755 --- a/target/linux/brcm-2.4/base-files/etc/preinit.arch +++ b/target/linux/brcm-2.4/base-files/etc/preinit.arch @@ -46,10

[OpenWrt-Devel] [PATCH] proc is already mounted in /etc/preinit, no use doing it again

2009-06-25 Thread Ferenc Wagner
Signed-off-by: Ferenc Wagner diff --git a/target/linux/brcm-2.4/base-files/etc/preinit.arch b/target/linux/brcm-2.4/base-files/etc/preinit.arch index 25d11d9..18b6ae5 100755 --- a/target/linux/brcm-2.4/base-files/etc/preinit.arch +++ b/target/linux/brcm-2.4/base-files/etc/preinit.arch @@ -20,8

[OpenWrt-Devel] [PATCH] stderr should be a copy of stdout, not stdin

2009-06-25 Thread Ferenc Wagner
Signed-off-by: Ferenc Wagner diff --git a/package/base-files/files/etc/preinit b/package/base-files/files/etc/preinit index 4e706f1..2dadb36 100755 --- a/package/base-files/files/etc/preinit +++ b/package/base-files/files/etc/preinit @@ -59,7 +59,7 @@ dd if=/dev/console of=/dev/null bs=1 count

[OpenWrt-Devel] brcm47xx/linux-2.6.30

2009-06-25 Thread Ferenc Wagner
Hi, How well is Linux 2.6.30 on brcm47xx supposed to work? The flash driver seems to have some problem at least: flash init: 0x1c00 0x0200 Physically mapped flash: Found 1 x16 devices at 0x0 in 16-bit bank Intel/Sharp Extended Query Table at 0x0035 Using auto-unlock on power-up/resume c

Re: [OpenWrt-Devel] How to extract the quilt kernel patches?

2009-06-21 Thread Ferenc Wagner
Michael Buesch writes: > On Sunday 21 June 2009 15:46:14 Jo-Philipp Wich wrote: > >> Usually you can do it this way: >> >> make target/linux/{clean,prepare} QUILT=1 >> >> Optionally you can override LINUX_VERSION with a desired target version. >> >> After that a kernel source tree with quilt

[OpenWrt-Devel] [RFC PATCH] Using Linux 2.6 LED class and input layer instead of broadcom-diag

2009-06-21 Thread Ferenc Wagner
Hi, For a couple of days I've been playing with wiring up the LEDs and buttons (OK, there's only one of each) of a WAP54Gv2 device with the newish generic Linux 2.6 LED class and input layer. As it turns out, there's no problem with the LED, after registering it as a platform device /sys/class/le

[OpenWrt-Devel] How to extract the quilt kernel patches?

2009-06-21 Thread Ferenc Wagner
Hi, I appended the quilt patch series of the kernel under build_dir/. Is there a mechanism or some best practice to extract them into the version-controlled part of the tree? Or how to work with this machinery in general? I also noticed that make kernel_menuconfig does some magic to update the

[OpenWrt-Devel] [PATCH] Add the gpio_keys input module to menuconfig

2009-06-21 Thread Ferenc Wagner
Signed-off-by: Ferenc Wagner Index: package/kernel/modules/other.mk === --- package/kernel/modules/other.mk (revision 16393) +++ package/kernel/modules/other.mk (working copy) @@ -674,6 +674,23 @@ $(eval $(call

[OpenWrt-Devel] [PATCH] speed up startup when no switch is present

2009-06-21 Thread Ferenc Wagner
If insertion of the switch-core module failed, there's no use trying the various hardware specific ones and wasting 1 seconds on each. Signed-off-by: Ferenc Wagner Index: target/linux/brcm-2.4/base-files/etc/preinit

Re: [OpenWrt-Devel] opkg remove ifconfig && opkg install 'ip'

2009-06-18 Thread Ferenc Wagner
"Malte S. Stretz" writes: > On Thursday 18 June 2009 18:20:06 Ferenc Wagner wrote: >> "Malte S. Stretz" writes: >>> On Thursday 18 June 2009 16:22:54 Jo-Philipp Wich wrote: >>>>> today I've written a proof-of-concept for >>>>

Re: [OpenWrt-Devel] opkg remove ifconfig && opkg install 'ip'

2009-06-18 Thread Ferenc Wagner
"Malte S. Stretz" writes: > On Thursday 18 June 2009 16:22:54 Jo-Philipp Wich wrote: >>> today I've written a proof-of-concept for >>> getting rid of oldstyle networking aka 'ifconfig'. >> >> You do realize that this "oldstyle" networking stuff uses busybox >> internals while switching to "ip" wi

Re: [OpenWrt-Devel] Getting brcm47xx run on WAP54g (2 MB flash)

2009-06-16 Thread Ferenc Wagner
Michael Buesch writes: > On Monday 15 June 2009 12:58:18 Ferenc Wagner wrote: >> Bastian Bittorf writes: >> >>> * Ferenc Wagner [14.06.2009 14:45]: >>> >>>> For my purposes using a region with smaller blocks for jffs2 >>>> would

[OpenWrt-Devel] What is INPUT polarity in broadcom-diag?

2009-06-15 Thread Ferenc Wagner
Hi, package/broadcom-diag/src/diag.h defines enum polarity_t { REVERSE = 0, NORMAL = 1, INPUT = 2, }; REVERSE and NORMAL are pretty self-explanatory, but what is INPUT? As I read diag.c, it means that the given GPIO should be configured as input for some reason, but it is

Re: [OpenWrt-Devel] Getting brcm47xx run on WAP54g (2 MB flash)

2009-06-15 Thread Ferenc Wagner
Bastian Bittorf writes: > * Ferenc Wagner [14.06.2009 14:45]: > >> Why is that ifconfig there at all? > > because I didn't found the time till now, to make a function > ifconfig() which is made known @common_func and translates the known > calls to 'ip'

[OpenWrt-Devel] Getting brcm47xx run on WAP54g (2 MB flash)

2009-06-14 Thread Ferenc Wagner
Hi! I'm trying to get Kamikaze brcm47xx run on a WAP54g v2. It has only 2 MB flash, so the process involves a lot of trial and error. So for basic testing I decided to go with an NFS root setup to avoid the need to reflash after each filesystem change. This works OK after disabling ifconfig $i