[LEDE-DEV] build problem of e2fsprogs (libext2fs)

2017-02-10 Thread e9hack
Hi, libext2fs has a build problem. If anything is compiled newly after a make distclean or after deleting the folders bin, build_dir, staging_dir and tmp, libext2fs contains a reference to libc with the full path of the build system. If I execute fsck.ext4 on the router: root@WLAN-DSL8:~# fsck.

Re: [LEDE-DEV] [PATCH v2 1/2] ar71xx: Add support for TP-Link MR6400

2017-02-10 Thread John Crispin
Hi, comments inline On 10/02/2017 21:28, Filip Moc wrote: > You can flash via u-boot tftp (serve factory image as /mr6400_tp_recovery.bin > on 192.168.0.66/24, connect to any ethernet port and power on device while > holding the reset button). > > v1->v2: > - Fixed DEVICE_TITLE > - Defined fla

Re: [LEDE-DEV] Makefile question

2017-02-10 Thread John Crispin
On 11/02/2017 06:33, David Lang wrote: > On Fri, 10 Feb 2017, Philip Prindeville wrote: > >> Hi. >> >> I was wondering if there’s an obvious place to install a hook that’s: >> >> (a) after all the packages have been installed; >> (b) before the root filesystem image gets finalized; >> >> I’d lik

Re: [LEDE-DEV] Makefile question

2017-02-10 Thread David Lang
On Fri, 10 Feb 2017, Philip Prindeville wrote: Hi. I was wondering if there’s an obvious place to install a hook that’s: (a) after all the packages have been installed; (b) before the root filesystem image gets finalized; I’d like to be able to run some simple sed scripts inside the root-to-b

Re: [LEDE-DEV] [PATCH mdns] Rename project to umdns

2017-02-10 Thread John Crispin
On 11/02/2017 00:22, Rafał Miłecki wrote: > From: Rafał Miłecki > > Using mdns name is a bit confusing as it's really close to Apple's mdnsd > binary name from their mDNSResponder project. > To make things worse OpenWrt's project was hosted in the mdnsd.git repo. > > Rename this project to umd

Re: [LEDE-DEV] [PATCH mdns 2/2] Drop one-liner service_announce function

2017-02-10 Thread John Crispin
On 10/02/2017 23:37, Rafał Miłecki wrote: > From: Rafał Miłecki > > Now we have service_announce simplified so much there is no reason to > keep it as a helper. > > Signed-off-by: Rafał Miłecki Acked-by: John Crispin > --- > announce.c | 2 +- > interface.c | 2 +- > service.c | 6 -

Re: [LEDE-DEV] [PATCH mdns 1/2] Don't use _services._dns-sd._tcp.local

2017-02-10 Thread John Crispin
On 10/02/2017 23:37, Rafał Miłecki wrote: > From: Rafał Miłecki > > It seems mdns(d) was trying to support queries for two records with > following names: > 1) _services._dns-sd._udp.local > 2) _services._dns-sd._tcp.local > > According to the RFC 6763 Section 9 only the first one should be us

[LEDE-DEV] Makefile question

2017-02-10 Thread Philip Prindeville
Hi. I was wondering if there’s an obvious place to install a hook that’s: (a) after all the packages have been installed; (b) before the root filesystem image gets finalized; I’d like to be able to run some simple sed scripts inside the root-to-be directory to make some changes, maybe do an rm

Re: [LEDE-DEV] [OpenWrt-Devel] MT7620A WiFi issue - with a twist!

2017-02-10 Thread Weedy
On 5 February 2017 at 16:58, Alberto Bursi wrote: > > > On 02/05/2017 05:37 PM, Daniel Golle wrote: >> Hi Alberto, >> It's the first time I'm trying to get work compensated by the community >> and I'm not sure whether kickstarter is the right way to go -- though >> I've written clearly that the in

[LEDE-DEV] [PATCH mdns] Rename project to umdns

2017-02-10 Thread Rafał Miłecki
From: Rafał Miłecki Using mdns name is a bit confusing as it's really close to Apple's mdnsd binary name from their mDNSResponder project. To make things worse OpenWrt's project was hosted in the mdnsd.git repo. Rename this project to umdns which follows other projects naming schema and is uniqu

[LEDE-DEV] [PATCH mdns 1/2] Don't use _services._dns-sd._tcp.local

2017-02-10 Thread Rafał Miłecki
From: Rafał Miłecki It seems mdns(d) was trying to support queries for two records with following names: 1) _services._dns-sd._udp.local 2) _services._dns-sd._tcp.local According to the RFC 6763 Section 9 only the first one should be used and response PTR records should include services of both

[LEDE-DEV] [PATCH mdns 2/2] Drop one-liner service_announce function

2017-02-10 Thread Rafał Miłecki
From: Rafał Miłecki Now we have service_announce simplified so much there is no reason to keep it as a helper. Signed-off-by: Rafał Miłecki --- announce.c | 2 +- interface.c | 2 +- service.c | 6 -- service.h | 1 - 4 files changed, 2 insertions(+), 9 deletions(-) diff --git a/anno

Re: [LEDE-DEV] [RFC 2/5] toolchain: gcc: Keep testsuite folder to simplify generation of patches

2017-02-10 Thread Felix Fietkau
On 2017-02-10 20:38, Alexey Brodkin wrote: > Since we're going to put a bunch of patches for ARC generated with > "git format-patch" missing "testsuite" folder will cause failures on > application of those patches. > > With "testsuite" in place all our patches are applied flawlessly. > > Signed-o

[LEDE-DEV] [PATCH v2 2/2] Merge enablemodem from ramips and ar71xx to new package adb-enablemodem

2017-02-10 Thread Filip Moc
This merges enablemodem from ramips and ar71xx to new package adb-enablemodem. New adb-enablemodem uses modem's id rather than main board's name so it could possibly work even on different boards without need to change anything. Fixes: - Problem when modem is not responding causing adb to wait in

[LEDE-DEV] [PATCH v2 1/2] ar71xx: Add support for TP-Link MR6400

2017-02-10 Thread Filip Moc
You can flash via u-boot tftp (serve factory image as /mr6400_tp_recovery.bin on 192.168.0.66/24, connect to any ethernet port and power on device while holding the reset button). v1->v2: - Fixed DEVICE_TITLE - Defined flash type as "w25q64" (but it's still being misdetected as "s25fl064k")

[LEDE-DEV] [RFC 1/5] toolchain: Switch ARC to upstream binutils and gcc

2017-02-10 Thread Alexey Brodkin
Since there're ARC ports of upstream GCC and Binutils we may finally use them for building ARC toolchain instead of custom forks on Synopsys GitHub. But given ARC ports were accepted not that long ago quite a lot of things are either missing in the most recent release but since then made its way t

[LEDE-DEV] [RFC 5/5] target/arc770: switch to 4.9 kernel

2017-02-10 Thread Alexey Brodkin
With switch to GCC v6.x we have to bump Linux kernel version so both toolchain and the kernel use the same ARC ABIv4. Signed-off-by: Alexey Brodkin --- target/linux/arc770/Makefile | 2 +- target/linux/arc770/{config-4.4 => config-4.9} | 44 -- ...-

[LEDE-DEV] [RFC 0/5] Updates for ARC

2017-02-10 Thread Alexey Brodkin
This series itroduces updates to both toolchain used for ARC and Linux kernel. This update is kept in that atoimc manner because we had to switch ABI again in GCC 6.x, see [1] for more details; and Linux kernel supports this ABI since v4.8 so existing v4.4 is a no go. Note that's the first draft t

[LEDE-DEV] [RFC 4/5] target/archs38: switch to 4.9 kernel

2017-02-10 Thread Alexey Brodkin
With switch to GCC v6.x we have to bump Linux kernel version so both toolchain and the kernel use the same ARC ABIv4. Signed-off-by: Alexey Brodkin --- target/linux/archs38/Makefile | 2 +- target/linux/archs38/{config-4.4 => config-4.9}| 55 +++--- ...s

[LEDE-DEV] [RFC 2/5] toolchain: gcc: Keep testsuite folder to simplify generation of patches

2017-02-10 Thread Alexey Brodkin
Since we're going to put a bunch of patches for ARC generated with "git format-patch" missing "testsuite" folder will cause failures on application of those patches. With "testsuite" in place all our patches are applied flawlessly. Signed-off-by: Alexey Brodkin --- toolchain/gcc/common.mk | 2 +

Re: [LEDE-DEV] FS#490 - BT Home Hub 5 Ethernet WAN Port configuration

2017-02-10 Thread John Crispin
Mauro, problem -> "the red ethernet port does not work properly" solution -> "try the patch mkresin told you about. it should fix the issue" John On 10/02/2017 18:44, Mauro Mozzarelli wrote: > John, > > > To summarize, with my use case scenarios I am trying to make the point > that th

[LEDE-DEV] [PATCH] toolchain/uclibc: Bump version to 1.0.22

2017-02-10 Thread Alexey Brodkin
Important change was made in 1.0.18: all sub-libs were merged in one and only libc similarly to musl. See [1] for more details. To support that we had to remove refences to those sub-libs like libpthread, libcrypt, libdl, libm, libutil etc. [1] http://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng.git/c

[LEDE-DEV] [PATCH] toolchain/uclibc: Fix unmanned configuration with "V=s"

2017-02-10 Thread Alexey Brodkin
Currently on attempt to configure uClibc with "V=s" user is prompted to answer on configuration questions. Major inconvenience here is build procedure get paused until user answers all questions. That happens because not all symbols are defined in our .config. Solution is as simple as usage of "ol

Re: [LEDE-DEV] FS#490 - BT Home Hub 5 Ethernet WAN Port configuration

2017-02-10 Thread Mauro Mozzarelli
John, To summarize, with my use case scenarios I am trying to make the point that the effort to make the Red Ethernet behave as a WAN does not have to be a priority because it is the least useful case on this router. The priority should be: 1) to make it usable as another Ethernet interface

Re: [LEDE-DEV] [PATCH v1 1/3] mac80211: make relay support depend on ATH_DEBUG

2017-02-10 Thread Felix Fietkau
On 2017-02-10 17:44, Christian Lamparter wrote: > both ath9k and ath10k use the kernel's relay framework > to pass spectral data to userspace. However, both drivers > only have this option enabled if the driver's debugfs > option is enabled as well. > > In case of ath10k_*, the relayfs dependency

[LEDE-DEV] impressed by progress on odhcpd and procd and elsewhere.

2017-02-10 Thread Dave Taht
Hans, jow, blogic, everybody... I have been pulling lede-head stuff and starting to build lede again (for the first time in 3 years), but I'd given up on the ipv6 issues[1]. After reviewing odhcpd/procd/etc latest git commits today, I'm impressed. My intent is to return to testing a few things t

[LEDE-DEV] [PATCH v1 2/3] apm821xx: add linux 4.9 apm821xx patches

2017-02-10 Thread Christian Lamparter via Lede-dev
The sender domain has a DMARC Reject/Quarantine policy which disallows sending mailing list messages using the original "From" header. To mitigate this problem, the original message has been wrapped automatically by the mailing list software.--- Begin Message --- This patch updates the apm821xx ta

[LEDE-DEV] [PATCH v1 1/3] mac80211: make relay support depend on ATH_DEBUG

2017-02-10 Thread Christian Lamparter via Lede-dev
The sender domain has a DMARC Reject/Quarantine policy which disallows sending mailing list messages using the original "From" header. To mitigate this problem, the original message has been wrapped automatically by the mailing list software.--- Begin Message --- both ath9k and ath10k use the kern

Re: [LEDE-DEV] [PATCH mdns] Check correct attributes when loading service from blob

2017-02-10 Thread John Crispin
On 10/02/2017 14:48, Rafał Miłecki wrote: > From: Rafał Miłecki > > We access SERVICE_TXT so we should check for this entry. Checking > SERVICE_SERVICE doesn't make sense anyway as it's verified few lines > above (in the same funcion). > > Signed-off-by: Rafał Miłecki Acked-by: John Crispin

[LEDE-DEV] [PATCH mdns] Rename cache scanning to updating

2017-02-10 Thread Rafał Miłecki
From: Rafał Miłecki What we were do is querying over all interfaces for all cached entries. This isn't real scanning but rather updating (the cache). Signed-off-by: Rafał Miłecki --- cache.c | 2 +- cache.h | 2 +- ubus.c | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --gi

Re: [LEDE-DEV] [PATCH mdns] Avoid duplicated iteration over services when announcing

2017-02-10 Thread John Crispin
On 10/02/2017 14:44, Rafał Miłecki wrote: > From: Rafał Miłecki > > In function service_announce_services we iterate over services and > handle every single one so calling service_reply which also iterates > doesn't make sense. > > In simple cases it was just wasting CPU cycles. We got service

Re: [LEDE-DEV] FS#490 - BT Home Hub 5 Ethernet WAN Port configuration

2017-02-10 Thread Mathias Kresin
2017-02-10 14:01 GMT+01:00 Mauro M. : > In response to Mathias: > > > Let's have a look at the use cases for the Red Ethernet Port: > > 1) Classic case: Internet Home user with xDSL WAN + Wired and Wireless > Devices > > SCENARIO: In this case my WAN is the xDSL port, my router has 4 Ethernet > (ye

Re: [LEDE-DEV] FS#490 - BT Home Hub 5 Ethernet WAN Port configuration

2017-02-10 Thread John Crispin
On 10/02/2017 14:01, Mauro M. wrote: > In response to Mathias: > > > Let's have a look at the use cases for the Red Ethernet Port: > > 1) Classic case: Internet Home user with xDSL WAN + Wired and Wireless > Devices > > SCENARIO: In this case my WAN is the xDSL port, my router has 4 Ethernet

[LEDE-DEV] [PATCH mdns] Check correct attributes when loading service from blob

2017-02-10 Thread Rafał Miłecki
From: Rafał Miłecki We access SERVICE_TXT so we should check for this entry. Checking SERVICE_SERVICE doesn't make sense anyway as it's verified few lines above (in the same funcion). Signed-off-by: Rafał Miłecki --- service.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --g

[LEDE-DEV] [PATCH mdns] Avoid duplicated iteration over services when announcing

2017-02-10 Thread Rafał Miłecki
From: Rafał Miłecki In function service_announce_services we iterate over services and handle every single one so calling service_reply which also iterates doesn't make sense. In simple cases it was just wasting CPU cycles. We got service, we were passing its name and we were looking for it agai

[LEDE-DEV] [PATCH] ppp: honor ip6table for IPv6 PPP interfaces

2017-02-10 Thread Ulrich Weber
as we do for IPv4 PPP interfaces. When we create the dynamic IPv6 inteface we should inherit ip6table from main interface. Signed-off-by: Ulrich Weber --- package/network/services/ppp/files/lib/netifd/ppp6-up | 1 + package/network/services/ppp/files/ppp.sh | 3 ++- 2 files changed,

[LEDE-DEV] FS#490 - BT Home Hub 5 Ethernet WAN Port configuration

2017-02-10 Thread Mauro M.
In response to Mathias: Let's have a look at the use cases for the Red Ethernet Port: 1) Classic case: Internet Home/Office user with xDSL WAN + Wired and Wireless Devices SCENARIO: In this case my WAN is the xDSL port, my router has 4 Ethernet (yellow) ports, but I have 5 devices, so I wan

[LEDE-DEV] FS#490 - BT Home Hub 5 Ethernet WAN Port configuration

2017-02-10 Thread Mauro M.
In response to Mathias: Let's have a look at the use cases for the Red Ethernet Port: 1) Classic case: Internet Home user with xDSL WAN + Wired and Wireless Devices SCENARIO: In this case my WAN is the xDSL port, my router has 4 Ethernet (yellow) ports, but I have 5 devices, so I want to BR

Re: [LEDE-DEV] Switching to upstream binutils for ARC

2017-02-10 Thread Alexey Brodkin
Hi Felix, On Tue, 2017-02-07 at 19:46 +0300, Alexey Brodkin wrote: > Hi Felix, > > On Tue, 2017-02-07 at 10:43 +0100, Felix Fietkau wrote: > > > > Hi Alexey, > > > > I will soon push a change to switch to binutils 2.27 by default. It > > seems that since 2.26, binutils has gained support for AR

[LEDE-DEV] [PATCH] x86: Add configuration back for Traverse Geos

2017-02-10 Thread David Woodhouse
When we merged all the Geode boards into one generic target, the default network and LED configuration was lost. Put it back. Fixes: 9e0759ea2653 ("x86: merge all geode based subtargets into one") Signed-off-by: David Woodhouse --- .../linux/x86/geode/base-files/etc/board.d/01_leds | 21

[LEDE-DEV] [PATCH mdns] Send reverse DNS lookup entry for IPv4 address

2017-02-10 Thread Rafał Miłecki
From: Rafał Miłecki Whenever we send A(AAA) records, let's also include reverse lookup ones. This should be extended in the future by adding IPv6. Signed-off-by: Rafał Miłecki --- announce.c | 2 +- dns.c | 38 +++--- dns.h | 2 +- interface.c |