Re: [LEDE-DEV] [RFC] iproute2: update to v4.10.0

2017-03-20 Thread Kevin Darbyshire-Bryant
On 20/03/17 19:54, Russell Senior wrote: Kevin> Was this tested on a 4.4 kernel? When I tried it wouldn't Kevin> compile (but it was a quick 5 seconds before I had to run out the Kevin> door type test, so I could have done summit stooopid) I tested ip-tiny on a Buffalo WZR600DHP (ar71xx):

[LEDE-DEV] [PATCH umdns 2/2] Fix sending unicast questions on cache expire

2017-03-20 Thread Rafał Miłecki
From: Rafał Miłecki Sending unicast questions requires passing IP address. Pass the one that was cached when caching DNS record. Signed-off-by: Rafał Miłecki --- announce.c | 2 +- cache.c | 8 dns.c | 5 +++-- dns.h | 3 ++-

[LEDE-DEV] [PATCH umdns 1/2] Keep source sockaddr for every cached DNS record

2017-03-20 Thread Rafał Miłecki
From: Rafał Miłecki This will be required for sending questions on TTL timeouts. When that happens we want to send unicast question but it's currently broken as we don't know original IP address. This change stores whole sockaddr (using struct sockaddr_storage). In theory it'd

Re: [LEDE-DEV] Package repository priority on opkg/ImageBuilder

2017-03-20 Thread Pau
After playing I while I found that the order in repositories.conf is relevant (not the name). So last is more preference. So problem solved. BTW, a comment on repositories.conf regarding this would be useful. Cheets. On 20/03/17 21:54, Pau wrote: > Using ImageBuilder I would like to add

Re: [LEDE-DEV] [RFC] iproute2: update to v4.10.0

2017-03-20 Thread Russell Senior
> "Russell" == Russell Senior writes: Russell> There may also be a missing depends. I had temporary -j16 Russell> build failures due to a missing iptables header file. Russell> Restarting worked, presumably because the header had by then Russell> appeared where

Re: [LEDE-DEV] [RFC] iproute2: update to v4.10.0

2017-03-20 Thread Russell Senior
> "Kevin" == Kevin Darbyshire-Bryant writes: Kevin> On 20/03/17 12:35, Yousong Zhou wrote: >> On 19 March 2017 at 20:38, Russell Senior wrote: >>> >>> Thanks to Syrone Wong for the pointer to >>> UAPI fixes.

Re: [LEDE-DEV] [RFC] iproute2: update to v4.10.0

2017-03-20 Thread Russell Senior
> "Russell" == Russell Senior writes: > "Kevin" == Kevin Darbyshire-Bryant writes: Kevin> On 20/03/17 12:35, Yousong Zhou wrote: >>> On 19 March 2017 at 20:38, Russell Senior wrote: Thanks

Re: [LEDE-DEV] [RFC] iproute2: update to v4.10.0

2017-03-20 Thread Russell Senior
> "Russell" == Russell Senior writes: > "Russell" == Russell Senior writes: Russell> There may also be a missing depends. I had temporary -j16 Russell> build failures due to a missing iptables header file. Russell> Restarting

[LEDE-DEV] [PATCH uci 1/2] build: fix BUILD_STATIC

2017-03-20 Thread Yousong Zhou
- Build libuci.a in addition to libuci.so - Build uci cli utitlity statically if BUILD_STATIC is enabled Signed-off-by: Yousong Zhou --- CMakeLists.txt | 24 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt

[LEDE-DEV] [PATCH uci 2/2] file: remove redundant NULL check on return value of uci_realloc()

2017-03-20 Thread Yousong Zhou
Because the check will be done by uci_realloc itself. Signed-off-by: Yousong Zhou --- file.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/file.c b/file.c index 5a8c6cb..494c649 100644 --- a/file.c +++ b/file.c @@ -70,8 +70,6 @@ __private void uci_getln(struct

Re: [LEDE-DEV] [RFC] iproute2: update to v4.10.0

2017-03-20 Thread Syrone Wong
My solution is to disable parallel build and make iptables as build dependency. PKG_BUILD_PARALLEL:=0 PKG_BUILD_DEPENDS:=iptables BTW, iproute2 doesn't honor COPTS correctly, I fixed this by reordering flags. more detail can be found here:

[LEDE-DEV] [PATCH opkg-lede 1/2] libbb: xreadlink: fix memory leak on failure case

2017-03-20 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- libbb/xreadlink.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libbb/xreadlink.c b/libbb/xreadlink.c index 596a763..29949d1 100644 --- a/libbb/xreadlink.c +++ b/libbb/xreadlink.c @@ -25,6 +25,7 @@ extern char *xreadlink(const char

Re: [LEDE-DEV] [RFC] iproute2: update to v4.10.0

2017-03-20 Thread Yousong Zhou
On 19 March 2017 at 20:38, Russell Senior wrote: > > Thanks to Syrone Wong for the pointer to UAPI > fixes. This builds now, at least on x86/geode. It would be nice to > have some testing. > > Signed-off-by: Russell Senior

Re: [LEDE-DEV] [RFC] iproute2: update to v4.10.0

2017-03-20 Thread Kevin Darbyshire-Bryant
On 20/03/17 12:35, Yousong Zhou wrote: On 19 March 2017 at 20:38, Russell Senior wrote: Thanks to Syrone Wong for the pointer to UAPI fixes. This builds now, at least on x86/geode. It would be nice to have some testing. Signed-off-by:

[LEDE-DEV] [PATCH opkg-lede 2/2] pkg: alternatives support

2017-03-20 Thread Yousong Zhou
It's a list of specs specs of the following form seprated by commas to describe alternatives provided by the package :: will be a symbolic link to of the highest Size comparison on x86_64 after the change function old new delta

[LEDE-DEV] [PATCH v2 4/4] iproute2: add ip-tiny, ip-full as alternatives of /sbin/ip

2017-03-20 Thread Yousong Zhou
They will not be in conflict anymore ;) Signed-off-by: Yousong Zhou --- package/network/utils/iproute2/Makefile | 26 -- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/package/network/utils/iproute2/Makefile

Re: [LEDE-DEV] [PATCH umdns] Drop entries cached for interface we're going to delete

2017-03-20 Thread John Crispin
On 20/03/17 12:54, Rafał Miłecki wrote: From: Rafał Miłecki Since we free memory with struct interface we can't keep referencing/using it in cached records or services. Signed-off-by: Rafał Miłecki Acked-by: John Crispin ---

Re: [LEDE-DEV] [PATCH 1/2] kernel: video: disable CONFIG_DRM_VC4 in drm's KCONFIG

2017-03-20 Thread Felix Fietkau
On 2017-03-19 20:26, Rafał Miłecki wrote: > From: Rafał Miłecki > > This isn't required for imx6 as DRM_VC4 depends on ARCH_BCM2835 but will > be needed if we decide to enable drm package with brcm2708. Otherwise it > would case compilation problem: > Broadcom VC4 Graphics

Re: [LEDE-DEV] [PATCH] Fix refreshing cached A(AAA) records that expire

2017-03-20 Thread John Crispin
On 20/03/17 11:45, Rafał Miłecki wrote: From: Rafał Miłecki Old code was trying to refresh record after it has already expired. Now it tries after 50% of TTL has passed - we do the same for other records. Fixes: 80dd24602480 ("Refresh DNS records A and directly")

[LEDE-DEV] [PATCH v2 1/4] build: cleanup tmp/ dir of target rootfs

2017-03-20 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- include/rootfs.mk | 1 + package/Makefile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/rootfs.mk b/include/rootfs.mk index c014b1d..74785cb 100644 --- a/include/rootfs.mk +++ b/include/rootfs.mk @@ -80,6

[LEDE-DEV] [PATCH v2 3/4] busybox: add as an alternative of /sbin/ip

2017-03-20 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- package/utils/busybox/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/utils/busybox/Makefile b/package/utils/busybox/Makefile index 0937ef9..28a6e89 100644 --- a/package/utils/busybox/Makefile +++

[LEDE-DEV] [PATCH v2 0/4] alternatives support

2017-03-20 Thread Yousong Zhou
This patch set tries to make it possible that files serving the same purpose and installed to different locations can be available under the same name through a symbolic link The idea is from alternatives of debian system [1,2]. "ip" command is a good example of the problem it tries to solve

[LEDE-DEV] [PATCH v2 2/4] build: ipkg: new field Alternatives

2017-03-20 Thread Yousong Zhou
It's a list of specs of the following form seprated by commas to describe alternatives provided by this package :: will be a symbolic link to of the highest Signed-off-by: Yousong Zhou --- include/package-ipkg.mk | 1 + 1 file changed, 1 insertion(+) diff --git

[LEDE-DEV] Sysupgrade on Mikrotik RB912

2017-03-20 Thread Edwin van Drunen
Hello, * In short: When installing LEDE 17.01 on the Mikrotik RB912 with sysupgrade the kernel can not be found and the system will not boot, because routerboot expects to find the kernel on a YAFFS partition. I was able to fix it by manually copying the kernel to MTD5 formatted as YAFFS. Is

[LEDE-DEV] [PATCH] Fix refreshing cached A(AAA) records that expire

2017-03-20 Thread Rafał Miłecki
From: Rafał Miłecki Old code was trying to refresh record after it has already expired. Now it tries after 50% of TTL has passed - we do the same for other records. Fixes: 80dd24602480 ("Refresh DNS records A and directly") Signed-off-by: Rafał Miłecki

Re: [LEDE-DEV] [PATCH 1/2] kernel: video: disable CONFIG_DRM_VC4 in drm's KCONFIG

2017-03-20 Thread Rafał Miłecki
On 2017-03-20 10:56, Felix Fietkau wrote: On 2017-03-19 20:26, Rafał Miłecki wrote: From: Rafał Miłecki This isn't required for imx6 as DRM_VC4 depends on ARCH_BCM2835 but will be needed if we decide to enable drm package with brcm2708. Otherwise it would case compilation

Re: [LEDE-DEV] [PATCH 1/3][RFC] netifd: propagate error code on netifd_reload()

2017-03-20 Thread Alexandru Ardelean
On Mon, Mar 20, 2017 at 4:08 PM, Alexandru Ardelean wrote: > From: Alexandru Ardelean > > The context is that we generate some of the UCI config > for netifd via scripts/programs. > > Every once in a while, there's a goof when doing that > UCI

[LEDE-DEV] [PATCH 3/3][RFC] netifd: don't restart on reload error

2017-03-20 Thread Alexandru Ardelean
From: Alexandru Ardelean We just want netifd to return a non-zero err-code. Reload has failed, a restart will not make it better necessarily. Signed-off-by: Alexandru Ardelean --- package/network/config/netifd/files/etc/init.d/network | 3 ++- 1

[LEDE-DEV] [PATCH 2/3][RFC] base-files: add option to rc.common to disable default reload behavior

2017-03-20 Thread Alexandru Ardelean
From: Alexandru Ardelean Traditionally if a reload script fails, it will fallback to restart. That seems to be the default behavior in case no reload handler has been specified, and `reload` will return 1. That also has the disadvantage of masking reload errors from

[LEDE-DEV] [PATCH 1/3][RFC] netifd: propagate error code on netifd_reload()

2017-03-20 Thread Alexandru Ardelean
From: Alexandru Ardelean The context is that we generate some of the UCI config for netifd via scripts/programs. Every once in a while, there's a goof when doing that UCI generation, and netifd prints out the error at stderr, but returns 0 (success) err-code. This

[LEDE-DEV] [PATCH libubox] md5: add "const" qualifier to the "file" argument

2017-03-20 Thread Yousong Zhou
This is intended to fix the following compiler warning in opkg-lede: /home/yousong/git-repo/lede-project/opkg-lede/libopkg/file_util.c: In function ‘file_md5sum_alloc’: /home/yousong/git-repo/lede-project/opkg-lede/libopkg/file_util.c:144:2: warning: passing argument 1 of ‘md5sum’

[LEDE-DEV] ZyXel NBG5715

2017-03-20 Thread Marek Slebodnik
Hello, I've created request on Zyxel to receive origin firmware source code. And they shared that on https://drive.google.com/drive/folders/0B5x7_RdFwg9IZEl3MjB3VlFzNUU Maybe it could help you. Regards Marek ___ Lede-dev mailing list