Re: [OpenWrt-Devel] DD: CONFIG_BUSYBOX_DEFAULT_WGET is not set

2016-01-21 Thread Bastian Bittorf
* John Clark [22.01.2016 07:55]: > Is it intentional that wget is not available by default in the > current trunk? I noticed this because /sbin/sysupgrade is failing in > the current build of designated driver due to this. I thought I > would point it out. yes, is was dropped with r48386 + 4837

Re: [OpenWrt-Devel] netifd question

2016-01-21 Thread Bastian Bittorf
* Daniel Dickinson [22.01.2016 07:55]: > For a netifd protocol is there way to tell netifd to *not* > automatically try to restart the connection? we have samething similar for PPPoE. option 'authfail' '1' # since r33291 check package/network/services/ppp/files/ppp.sh bye, bastian _

Re: [OpenWrt-Devel] [PATCH 3/3] package/network/config/qos-scripts: Drop ifconfig and use ip command instead

2016-01-21 Thread Bastian Bittorf
* Daniel Dickinson [22.01.2016 07:55]: > >>- export dev_${dir}="ifconfig $dev up txqueuelen 5 >&- 2>&- > >>+ export dev_${dir}="ip link set $dev up txqueuelen 5 >&- 2>&- > >This doesn't actually work... > > Is it unsupported by busybox ip applet? It is correct on fedora, but

[OpenWrt-Devel] [PATCH] x86_64: Add missing symbols

2016-01-21 Thread openwrt
From: Daniel Dickinson Update to kernel 4.4 missed some symbols, fix that. --- target/linux/generic/config-4.4| 2 ++ target/linux/x86/64/config-default | 10 ++ 2 files changed, 12 insertions(+) diff --git a/target/linux/generic/config-4.4 b/target/linux/generic/config-4.4 index 0

[OpenWrt-Devel] [PATCH] qos-scripts: Add IPv6 support

2016-01-21 Thread Michael Marley
I apologize, my client mangled my previous attempt at resubmission. Here is an updated version with three improvements. The problem with the rules not being removed (which was not new and actually caused by a grep command incompatible with musl) was fixed by using an updated grep command (thanks

[OpenWrt-Devel] DD: CONFIG_BUSYBOX_DEFAULT_WGET is not set

2016-01-21 Thread John Clark
Is it intentional that wget is not available by default in the current trunk? I noticed this because /sbin/sysupgrade is failing in the current build of designated driver due to this. I thought I would point it out. chaos calmer ~~ CONFIG_BUSYBOX_DEFAULT_WGET=y CONFIG_BUSYBOX_DEFAULT

Re: [OpenWrt-Devel] [PATCH] qos-scripts: Add IPv6 support

2016-01-21 Thread Michael Marley
Here is an updated version with three improvements. The problem with the rules not being removed (which was not new and actually caused by a grep command incompatible with musl) was fixed by using an updated grep command (thanks nbd!). The problems pertaining to the xtables lock (including "too m

[OpenWrt-Devel] netifd question

2016-01-21 Thread Daniel Dickinson
Hi Felix (or anyone else who knows netifd) For a netifd protocol is there way to tell netifd to *not* automatically try to restart the connection? I'm asking for the case of VPN where if the password it wrong (e.g. due to an stoken that expires before the connection completes), too many rep

Re: [OpenWrt-Devel] [PATCH 3/3] package/network/config/qos-scripts: Drop ifconfig and use ip command instead

2016-01-21 Thread Daniel Dickinson
Hi Felix, On 21/01/16 05:28 PM, Felix Fietkau wrote: done append ${prefix}q "$(tcrules)" "$N" - export dev_${dir}="ifconfig $dev up txqueuelen 5 >&- 2>&- + export dev_${dir}="ip link set $dev up txqueuelen 5 >&- 2>&- This doesn't actua

[OpenWrt-Devel] [PATCH] x86: preserve partition table on sysupgrade

2016-01-21 Thread Rob Mosher
With this patch sysupgrade will write directly to the partitions instead of to the main disk. The UUID is copied from the image to the MBR as well. This prevents the mbr from being completely overwritten and losing the partition table. The -p option has been added to maintain the original behavi

Re: [OpenWrt-Devel] RFC: dropping oprofile

2016-01-21 Thread Luiz Angelo Daros de Luca
Thanks Felix. It would take me sometime to debug this. Regards, Em qui, 21 de jan de 2016 às 12:12, Felix Fietkau escreveu: > On 2016-01-21 14:42, Kevin Darbyshire-Bryant wrote: > > Reverting 0ca8e85462074e713be6468a3ea7259caca1b1ea appears to allow perf > > to compile again. > > > > " > > elf

Re: [OpenWrt-Devel] [PATCH 3/3] package/network/config/qos-scripts: Drop ifconfig and use ip command instead

2016-01-21 Thread Daniel Dickinson
On 21/01/16 05:28 PM, Felix Fietkau wrote: On 2016-01-20 20:22, open...@daniel.thecshore.com wrote: From: Daniel Dickinson This is the final package in base that depends on ifconfig, so remove the the dependency on ifconfig and replace ifconfig command with ip command. After packages there ar

Re: [OpenWrt-Devel] [PATCH] qos-scripts: Add IPv6 support

2016-01-21 Thread Felix Fietkau
On 2016-01-20 02:04, Michael Marley wrote: > This adds IPv6 support to qos-scripts for both tc/qdisc and the > iptables classification rules. The tc/qdisc part is accomplished > by removing "protocol ip" from the tc command line, causing the > rule to be applied to all protocols. The iptables par

Re: [OpenWrt-Devel] [PATCH 2/3] packaget/network/services/openvpn: Drop ifconfig/route in favour of ip

2016-01-21 Thread Felix Fietkau
On 2016-01-20 20:22, open...@daniel.thecshore.com wrote: > From: Daniel Dickinson > > NB: Only compile tested. > > Stop depending on ifconfig/route and use busybox (or real) > iproute2 utility instead. Depend on virtual ip package provided > by previous commit so as not to force a particular ve

Re: [OpenWrt-Devel] [PATCH 3/3] package/network/config/qos-scripts: Drop ifconfig and use ip command instead

2016-01-21 Thread Felix Fietkau
On 2016-01-20 20:22, open...@daniel.thecshore.com wrote: > From: Daniel Dickinson > > This is the final package in base that depends on ifconfig, so > remove the the dependency on ifconfig and replace ifconfig > command with ip command. After packages there are various > target preinit scripts t

[OpenWrt-Devel] [PATCH v3] ramips: Add support for Netgear EX2700

2016-01-21 Thread Joseph C. Lehner
This patch adds support for the Netgear EX2700 and builds an approriate sysupgrade image. What's missing is the option to build a factory image flashable via the router's stock web interface, but this approach is hindered by the fact that u-boot operforms an additional integrity check, which expec

Re: [OpenWrt-Devel] [PATCH 1/5] include/package: Add generic macro for replacing BusyBox applets

2016-01-21 Thread Felix Fietkau
On 2016-01-21 18:54, open...@daniel.thecshore.com wrote: > From: Daniel Dickinson > > There are a number of packages in base and feeds > that provide full versions of commands that are > provided by busybox either by default or as a > configure option. Here we add a macro that makes > installati

Re: [OpenWrt-Devel] mpc85xx: Kernel crash with binutils 2.25.1

2016-01-21 Thread Felix Fietkau
On 2016-01-21 15:30, Wojciech Dubowik wrote: > After the from binutils from 2.24-linaro to 2.25.1 I see following crash > on mpc85xx platform. > > Error relocating /etc/preinit: unsupported relocation type 6 > Error relocating /etc/preinit: unsupported relocation type 4 > Error relocating /etc/pr

[OpenWrt-Devel] [PATCH 5/5] package/network/utils/iputils: Allow smooth install/uninstall alongside busybox

2016-01-21 Thread openwrt
From: Daniel Dickinson Rather than have packages that behave badly when used alongside busybox and/or which fails to cleanly uninstall, make any package for which there is a busybox applet work cleanly with busybox (taking over from busybox when installed, and restoring busybox when removed as we

[OpenWrt-Devel] [PATCH 4/5] package/network/utils/iproute: Allow smooth install/uninstall alongside busybox

2016-01-21 Thread openwrt
From: Daniel Dickinson Rather than have packages that behave badly when used alongside busybox and/or which fails to cleanly uninstall, make any package for which there is a busybox applet work cleanly with busybox (taking over from busybox when installed, and restoring busybox when removed as we

[OpenWrt-Devel] [PATCH 1/5] include/package: Add generic macro for replacing BusyBox applets

2016-01-21 Thread openwrt
From: Daniel Dickinson There are a number of packages in base and feeds that provide full versions of commands that are provided by busybox either by default or as a configure option. Here we add a macro that makes installation/uninstallation of the full version work smoothly (so that --force-ov

[OpenWrt-Devel] [PATCH 2/5] package/utils/bzip2: Allow install/uninstall alongside busybox

2016-01-21 Thread openwrt
From: Daniel Dickinson Instead of installing to /usr/bin, which conflicts with busybox if bzip2 applet present, install to /bin and symlink from /usr/bin (replacing symlink to busybox on install), and, if busybox applet present, restore busybox symlink on uninstall. Also manage busybox vs. full

[OpenWrt-Devel] [PATCH 0/5] Smooth install/uninstall of full version alongside busybox

2016-01-21 Thread openwrt
There are a few packages in base and quite a number in packages feed that replace busybox applets with full versions of the applicable command(s). This patch series implements a common infrastructure for consistent behavior. Basically the full version is configure to install into a non-conflictin

[OpenWrt-Devel] [PATCH 3/5] package/utils/util-linux: Allow smooth install/uninstall alongside busybox

2016-01-21 Thread openwrt
From: Daniel Dickinson Rather than have packages that behave badly when used alongside busybox and/or which fails to cleanly uninstall, make any package for which there is a busybox applet work cleanly with busybox (taking over from busybox when installed, and restoring busybox when removed as we

[OpenWrt-Devel] Patch: Support for TP-Link WR-802N

2016-01-21 Thread Rick Pannen
Hi, I added support for the TP-Link 802N (http://www.tp-link.com/en/products/details/cat-9_TL-WR802N.html) to trunk. Everything is based on the existing WR841N_V9 code (same chipset). The resulting firmware can be flashed onto a factory device and runs without any problems on my 2 test devices.

[OpenWrt-Devel] [PATCH] netifd: Route traffic from LAN to WAN using rules

2016-01-21 Thread Kristian Evensen
From: Kristian Evensen After commit ebd3d8417c7a ("interface: fix moving interface address routes to the table specified by ip[46]table"), it is no longer possible for clients on LAN to reach machines on the WAN. This patch restores support for clients on LAN reaching clients on WAN by using rul

Re: [OpenWrt-Devel] OpenWrt cfg80211.h station_info incompatibility with kernel+mac80211 [was: B.A.T.M.A.N. V leaves the nest v2]

2016-01-21 Thread Sven Eckelmann
On Thursday 21 January 2016 15:47:02 Felix Fietkau wrote: [...] > > Hm, didn't work out so well. It basically explodes right away because > > possible_net_t, possible_read_pnet, possible_write_pnet is not defined on > > v3.18 when not using the mac80211 backporting headers. And when usign the >

Re: [OpenWrt-Devel] OpenWrt cfg80211.h station_info incompatibility with kernel+mac80211 [was: B.A.T.M.A.N. V leaves the nest v2]

2016-01-21 Thread Felix Fietkau
On 2016-01-21 15:26, Sven Eckelmann wrote: > On Thursday 21 January 2016 15:03:10 Sven Eckelmann wrote: >> On Thursday 21 January 2016 14:55:01 Felix Fietkau wrote: >> > > @Felix, would it be ok for you when I propose a >> > > "*-sync-cfg80211-station_info.patch" for the 3.18 generic kernel > patc

[OpenWrt-Devel] mpc85xx: Kernel crash with binutils 2.25.1

2016-01-21 Thread Wojciech Dubowik
After the from binutils from 2.24-linaro to 2.25.1 I see following crash on mpc85xx platform. Error relocating /etc/preinit: unsupported relocation type 6 Error relocating /etc/preinit: unsupported relocation type 4 Error relocating /etc/preinit: unsupported relocation type 6 Error relocating /e

Re: [OpenWrt-Devel] RFC: dropping oprofile

2016-01-21 Thread Felix Fietkau
On 2016-01-21 14:42, Kevin Darbyshire-Bryant wrote: > Reverting 0ca8e85462074e713be6468a3ea7259caca1b1ea appears to allow perf > to compile again. > > " > elfutils: bump to 0.165 > > Signed-off-by: Luiz Angelo Daros de Luca > git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48393 > 3c298f89-4303

Re: [OpenWrt-Devel] OpenWrt cfg80211.h station_info incompatibility with kernel+mac80211 [was: B.A.T.M.A.N. V leaves the nest v2]

2016-01-21 Thread Sven Eckelmann
On Thursday 21 January 2016 14:55:01 Felix Fietkau wrote: > > @Felix, would it be ok for you when I propose a > > "*-sync-cfg80211-station_info.patch" for the 3.18 generic kernel patches? > > Or do you have a good idea how to force the openwrt-routing batman-adv > > package > > against the cfg8021

[OpenWrt-Devel] [PATCH 2/2] b53: provide PHY access to swconfig

2016-01-21 Thread Rafał Miłecki
Thanks to this swconfig can access port PHYs and set link state using its generic implementation. Signed-off-by: Rafał Miłecki --- .../generic/files/drivers/net/phy/b53/b53_common.c | 26 ++ .../generic/files/drivers/net/phy/b53/b53_mdio.c | 20 + .../generi

[OpenWrt-Devel] [PATCH 1/2] swconfig: implement (PHY) generic PORT_LINK setter

2016-01-21 Thread Rafał Miłecki
It's quite common for switches to have PHY per port so we may use a generic function for setting port link. We just need an API to access PHYs which this patch also adds. Signed-off-by: Rafał Miłecki --- .../linux/generic/files/drivers/net/phy/swconfig.c | 44 -- target/linux

Re: [OpenWrt-Devel] OpenWrt cfg80211.h station_info incompatibility with kernel+mac80211 [was: B.A.T.M.A.N. V leaves the nest v2]

2016-01-21 Thread Felix Fietkau
On 2016-01-21 14:47, Sven Eckelmann wrote: > On Thursday 21 January 2016 12:56:01 Sven Eckelmann wrote: >> Just installed in on some hardware (2x OM5P + OpenWrt 44654 + compat-wireless >> 2015-10-26) and enabled BATMAN_V. >> >> [ 168.54] CPU 0 Unable to handle kernel paging request at virtual

[OpenWrt-Devel] OpenWrt cfg80211.h station_info incompatibility with kernel+mac80211 [was: B.A.T.M.A.N. V leaves the nest v2]

2016-01-21 Thread Sven Eckelmann
On Thursday 21 January 2016 12:56:01 Sven Eckelmann wrote: > Just installed in on some hardware (2x OM5P + OpenWrt 44654 + compat-wireless > 2015-10-26) and enabled BATMAN_V. > > [ 168.54] CPU 0 Unable to handle kernel paging request at virtual > address fff0, epc == 86d8301c, ra == 86d83

Re: [OpenWrt-Devel] RFC: dropping oprofile

2016-01-21 Thread Kevin Darbyshire-Bryant
Reverting 0ca8e85462074e713be6468a3ea7259caca1b1ea appears to allow perf to compile again. " elfutils: bump to 0.165 Signed-off-by: Luiz Angelo Daros de Luca git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48393 3c298f89-4303-0410-b956-a3cf2f4a3e73" On 20/01/16 17:27, Kevin Darbyshire-Bryant w

Re: [OpenWrt-Devel] [PATCH] ramips: Setup missing gpio exports and fine-tune the memory model number.

2016-01-21 Thread John Crispin
there are 4-5 patches all intermingled into 1 patch. please split it up. one change per patch John On 21/01/2016 13:52, John Clark wrote: >> +pinctrl-0; >>> are you sure this bit is correct ? > > That is there to override the setting from the parent dtsi file. One > could ar

Re: [OpenWrt-Devel] [PATCH] ramips: Setup missing gpio exports and fine-tune the memory model number.

2016-01-21 Thread John Clark
> +pinctrl-0; >> are you sure this bit is correct ? That is there to override the setting from the parent dtsi file. One could argue that the parent dtsi file should not be setting up the function of the uart -- this should in fact be done at the dts file level. We can see below i

Re: [OpenWrt-Devel] [PATCH v3] base-files: For sysfixtime use hwclock if RTC available

2016-01-21 Thread Bastian Bittorf
* John Crispin [21.01.2016 13:30]: > hang on there, this looks like bastel basti scriptowahn 8-) but the 'exit VS. return' is valid... bye, bastian ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman

Re: [OpenWrt-Devel] [PATCH v3] base-files: For sysfixtime use hwclock if RTC available

2016-01-21 Thread John Crispin
On 21/01/2016 12:53, Bastian Bittorf wrote: > * Petr Štetiar [21.01.2016 12:22]: >> boot() { >> +[ -e "$RTC_DEV" ] && [ -e "$HWCLOCK" ] && $HWCLOCK -s -f $RTC_DEV && >> exit 0 > > thank you! can you please do in this line a: > && return > > and introduce a helper (maybe overengineered 8-

Re: [OpenWrt-Devel] [PATCH v3] base-files: For sysfixtime use hwclock if RTC available

2016-01-21 Thread Bastian Bittorf
* Petr Štetiar [21.01.2016 12:22]: > boot() { > + [ -e "$RTC_DEV" ] && [ -e "$HWCLOCK" ] && $HWCLOCK -s -f $RTC_DEV && > exit 0 thank you! can you please do in this line a: && return and introduce a helper (maybe overengineered 8-) deps_ok() { [ -e "$RTC_DEV" ] && [ -e "$HWCLOCK"

Re: [OpenWrt-Devel] Kernel 4.3, MT7688 does not boot

2016-01-21 Thread Baptiste Clenet
John, have you add time to try v4.3 kernel? 2015-12-30 19:13 GMT+01:00 John Crispin : > > On 30/12/2015 17:37, Baptiste Clenet wrote: >> Hi, >> >> I'm using a custom board including a MT7688 chip, I made the image >> with the latest openwrt build (I've just downloaded it), I got an >> image of 2,9

[OpenWrt-Devel] [PATCH v2] ramips: Add support for Netgear EX2700

2016-01-21 Thread Joseph C. Lehner
This patch adds support for the Netgear EX2700 and builds an approriate sysupgrade image. What's missing is the option to build a factory image flashable via the router's stock web interface, but this approach is hindered by the fact that u-boot operforms an additional integrity check, which

[OpenWrt-Devel] [PATCH] [RFC] libubus.h: add ubus_connected function

2016-01-21 Thread Ben Kelly
When using ubus_auto_connect it is useful to be able to determine the connection status of the ubus context. I'm testing the ctx.sock.registered flag here, though I'm not sure if this is the best way to go about this check. I'm happy for someone to tell me this is not the correct way to do this.

[OpenWrt-Devel] [PATCH v3] base-files: For sysfixtime use hwclock if RTC available

2016-01-21 Thread Petr Štetiar
From: Daniel Dickinson On systems that have an RTC prefer it to the file-based time fixup (i.e. use hwclock when there is a permanent clock instead of the faked up time logic that is needed when there is not RTC). We can't rely on hctosys kernel feature either as we're usually using RTC as kerne

[OpenWrt-Devel] [PATCH v2] build: download.mk: bugfix download.pl argument call order

2016-01-21 Thread Florian Eckert
Change wrong download.pl argument call order. See download.pl argument list. Signed-off-by: Florian Eckert --- -v2 add patch description include/download.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/download.mk b/include/download.mk index ca5eee4..562a7b9 10064

Re: [OpenWrt-Devel] [PATCH] ramips: Setup missing gpio exports and fine-tune the memory model number.

2016-01-21 Thread John Crispin
On 20/01/2016 04:26, John Clark wrote: > GPIO Changes > > The HLK-RM04 uses i2c and the top half of the uartf port for gpio. HiLink has > labeled the RT5350 gpio1 pin as gpio0 on the device pinout, so it seems to > make sense to export it as "hlk-rm04:gpio0" to avoid confusing it w

Re: [OpenWrt-Devel] [PATCH] ramips: Add support for Netgear EX2700

2016-01-21 Thread John Crispin
Hi, few comments inline. On 19/01/2016 22:42, Joseph C. Lehner wrote: > This patch adds support for the Netgear EX2700 and builds an approriate > sysupgrade image. > > What's missing is the option to build a factory image flashable via the > router's stock web interface, but this approach is