Re: [OpenWrt-Devel] [PATCH] procd: delay inittab workers until the tty exists.

2015-01-15 Thread John Crispin
nack, using magic delays is a no go On 16/01/2015 04:15, Owen Kirby wrote: > If a process with a tty is specified in inittab, delay the worker > process until the tty exists. > > This allows starting consoles with terminals that get delayed until > after procd is reads inittab, > and it also allo

Re: [OpenWrt-Devel] Is Linksys/Belkin lying (again) about being open source (WRT1200AC router) ?

2015-01-15 Thread David Lang
Is the 1200 out yet? The article that was posted earlier did say that they recognized that they had made mistakes with the 1900 and were planning to not do the same thing with the 1200 and have everything ready at the release date. If the release date is not here yet we can't say that they haven

[OpenWrt-Devel] [PATCH] mwlwifi - dont break fw upload timing with log prints

2015-01-15 Thread Ian Kent
The patch included here is needed if debug logging in mwlwifi is enabled to a high enough level that the log prints are done during time critical parts of firmware loading. Enabling debug logging is, unfortuneatly, not as simple as defining MWLDBG on the module make command line. Something like t

Re: [OpenWrt-Devel] Is Linksys/Belkin lying (again) about being open source (WRT1200AC router) ?

2015-01-15 Thread Fernando Frediani
Hi, Great email Valent, and I fully agree with your comments. We have had this discussion here in the past and nothing much changed from Belkin side (actually it got worse as they disappeared apparently) showing a total failure on product release. I'm not entirely sure of the status of WRT120

[OpenWrt-Devel] [PATCH] procd: delay inittab workers until the tty exists.

2015-01-15 Thread Owen Kirby
If a process with a tty is specified in inittab, delay the worker process until the tty exists. This allows starting consoles with terminals that get delayed until after procd is reads inittab, and it also allows hotplugging USB-to-serial adapters attached long after booting. Signed-off-by: O

[OpenWrt-Devel] [PATCH] build: explicitly unexport CONFIG_SITE

2015-01-15 Thread Matthias Schiffer
On systems with CONFIG_SITE in the environment (e.g. OpenSUSE) make will export the CONFIG_SITE set in include/package.mk by default. This will cause host builds to get the target site configuration, leading to all kinds of weirdness (wrong pointer size, wrong endianess). Fix this by explicitly un

Re: [OpenWrt-Devel] ddns-scripts "sleep 10" before updating?

2015-01-15 Thread Catalin Patulea
On Thu, Jan 15, 2015 at 3:28 PM, Christian Schoenebeck wrote: > I did a lot of testing with a user using satellite Internet connection. > He quickly gets his IP from the modem but he needs to use a global dns server > to verify his registered ip via tcp > because the modem buffers all udp dns req

[OpenWrt-Devel] [PATCH] ramips: add support for Intenso Memory 2 Move USB 3.0

2015-01-15 Thread Christian Lamparter
This adds support for a rt5350-based "portable nas" solution from Intenso. The board comes with 32M RAM and 8M Flash, the built-in HDD is connected/accessible via a usb3.0<->sata bridge VLI VL701. The device has 1 Ethernet port (100M/10M), 1 micro b usb 3.0 socket (for charging the battery, or acc

[OpenWrt-Devel] [PATCH 1/2] sunxi: implement board_detect for device-tree kernels

2015-01-15 Thread Daniel Golle
board_detect previously relied on parsing the kernel cmdline out of the U-Boot environment stored on the the MMC card in order to get the board= parameter. Use /proc/device-tree/model instead. Signed-off-by: Daniel Golle --- target/linux/sunxi/base-files/lib/sunxi.sh | 168 ++

[OpenWrt-Devel] [PATCH 2/2] sunxi: introduce sunxi_board_name() in /lib/sunxi.sh

2015-01-15 Thread Daniel Golle
Simiarl to other hardware targets, this can then be used for board-specific stuff in preinit and uci-default scripts. Signed-off-by: Daniel Golle --- target/linux/sunxi/base-files/lib/sunxi.sh | 9 + 1 file changed, 9 insertions(+) diff --git a/target/linux/sunxi/base-files/lib/sunxi.sh

Re: [OpenWrt-Devel] ddns-scripts "sleep 10" before updating?

2015-01-15 Thread Christian Schoenebeck
Am 15.01.2015 um 06:17 schrieb Catalin Patulea: > On Tue, Jan 13, 2015 at 8:56 AM, Christian Schoenebeck > wrote: >> from my point of view 10 seconds to wait before sending an update to the >> ddns provider is not a big deal because it takes up to 5 minutes until >> "nslookup [yourhost] 8.8.8.8"

[OpenWrt-Devel] [PATCH] ramips: fix default led configuration for rt-n14u

2015-01-15 Thread Pavel Löbl
use new helper function to generate default led configuration Signed-off-by: Pavel Löbl --- target/linux/ramips/base-files/etc/board.d/01_leds | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-fi

Re: [OpenWrt-Devel] [PATCH uclient] support for connection timeout

2015-01-15 Thread Felix Fietkau
On 2015-01-15 16:40, Rafał Miłecki wrote: > Signed-off-by: Rafał Miłecki > --- > uclient-fetch.c | 4 > uclient.c | 25 - > uclient.h | 4 > 3 files changed, 32 insertions(+), 1 deletion(-) > > diff --git a/uclient.c b/uclient.c > index ab2d5b6..a4

[OpenWrt-Devel] [PATCH] add pkgconfig information for popt library

2015-01-15 Thread Mike Brady
Modify makefile to record pkgconfig information for the popt library. Signed-off-by: Mike Brady --- package/libs/popt/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/libs/popt/Makefile b/package/libs/popt/Makefile index bd2e6e2..b31b311 100644 --- a/package/libs/popt/Makef

[OpenWrt-Devel] [PATCH uclient] support for connection timeout

2015-01-15 Thread Rafał Miłecki
Signed-off-by: Rafał Miłecki --- uclient-fetch.c | 4 uclient.c | 25 - uclient.h | 4 3 files changed, 32 insertions(+), 1 deletion(-) diff --git a/uclient-fetch.c b/uclient-fetch.c index 22f15c6..0617a02 100644 --- a/uclient-fetch.c +++ b/uclient

[OpenWrt-Devel] [PATCH] kernel: add references to openwrt alternative button handling

2015-01-15 Thread Karl Palsson
From: Karl Palsson Add documentation that makes it easier to find the alternative, recommended, and default handling for buttons in OpenWrt. Signed-off-by: Karl Palsson --- I was having a hard time discovering buttons, and getting conflicts after enabling the input-gpio-keys* modules. zajec o

Re: [OpenWrt-Devel] [PATCH uclient] http: wait for socket to be ready before using it

2015-01-15 Thread Rafał Miłecki
On 15 January 2015 at 13:17, Felix Fietkau wrote: > On 2015-01-15 12:50, Rafał Miłecki wrote: >> This is required as we use USOCK_NONBLOCK. > Are you sure? Theoretically, ustream should already handle it properly. > The first write fails if the socket is not connected yet, so ustream > will buffer

Re: [OpenWrt-Devel] [PATCH uclient] http: wait for socket to be ready before using it

2015-01-15 Thread Felix Fietkau
On 2015-01-15 12:50, Rafał Miłecki wrote: > This is required as we use USOCK_NONBLOCK. Are you sure? Theoretically, ustream should already handle it properly. The first write fails if the socket is not connected yet, so ustream will buffer the data and send it out again once epoll tells it that the

Re: [OpenWrt-Devel] [PATCH V2 libubox 1/2] usock: add helper waiting for socket to be ready

2015-01-15 Thread Felix Fietkau
On 2015-01-15 12:59, Rafał Miłecki wrote: > Signed-off-by: Rafał Miłecki > --- > V2: Use poll instead of select Both applied, thanks. - Felix ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listin

[OpenWrt-Devel] [PATCH V2 libubox 1/2] usock: add helper waiting for socket to be ready

2015-01-15 Thread Rafał Miłecki
Signed-off-by: Rafał Miłecki --- V2: Use poll instead of select --- usock.c | 27 +++ usock.h | 11 +++ 2 files changed, 38 insertions(+) diff --git a/usock.c b/usock.c index 04ed4ee..5bdd3ff 100644 --- a/usock.c +++ b/usock.c @@ -20,6 +20,7 @@ #include #includ

Re: [OpenWrt-Devel] Hardlock in ath9k

2015-01-15 Thread Felix Fietkau
On 2015-01-15 12:48, Gianluca Anzolin wrote: > Il 15/01/2015 04:25, Felix Fietkau ha scritto: >> On 2015-01-14 20:19, Gianluca Anzolin wrote: >>> Hi, >>> >>> I was just testing this evening, just for fun, a new build with the just >>> released musl libc (1.1.6) on my new router (Archer C7) but >>>

[OpenWrt-Devel] [PATCH uclient] http: wait for socket to be ready before using it

2015-01-15 Thread Rafał Miłecki
This is required as we use USOCK_NONBLOCK. Signed-off-by: Rafał Miłecki --- uclient-http.c | 5 + uclient.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/uclient-http.c b/uclient-http.c index c25e52f..82bef8a 100644 --- a/uclient-http.c +++ b/uclient-http.c @@ -108,6 +108,7 @@

Re: [OpenWrt-Devel] [PATCH libubox 1/2] usock: add helper waiting for socket to be ready

2015-01-15 Thread Felix Fietkau
On 2015-01-15 12:42, Rafał Miłecki wrote: > Signed-off-by: Rafał Miłecki > --- > usock.c | 30 ++ > usock.h | 11 +++ > 2 files changed, 41 insertions(+) > > diff --git a/usock.c b/usock.c > index 04ed4ee..39909c1 100644 > --- a/usock.c > +++ b/usock.c > @@ -1

[OpenWrt-Devel] [PATCH libubox 2/2] usock: set socket flags right after creating it

2015-01-15 Thread Rafał Miłecki
Otherwise some flags like USOCK_NONBLOCK wouldn't work as expected (O_NONBLOCK affects connect behavior). Signed-off-by: Rafał Miłecki --- usock.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/usock.c b/usock.c index 39909c1..7bde620 100644 --- a/usock.c +++ b

[OpenWrt-Devel] [PATCH libubox 1/2] usock: add helper waiting for socket to be ready

2015-01-15 Thread Rafał Miłecki
Signed-off-by: Rafał Miłecki --- usock.c | 30 ++ usock.h | 11 +++ 2 files changed, 41 insertions(+) diff --git a/usock.c b/usock.c index 04ed4ee..39909c1 100644 --- a/usock.c +++ b/usock.c @@ -117,3 +117,33 @@ int usock(int type, const char *host, const char