Re: [OpenWrt-Devel] ddns-scripts 2.0.1-1 breaks freedns.afraid.org?

2015-01-13 Thread Jo-Philipp Wich
Hi, a good solution would be to look what placeholders are used in the service url template and check if those are all set. So if the url has no [USERNAME] then option username is not checked either. Granted, it is a bit harder to implement but would match the expectations of the common user I gu

[OpenWrt-Devel] [PATCH] added support for TL-WA701ND v2

2015-01-13 Thread Luigi Tarenga
hello everybody, I'm happy to write you my first patch to add support for a new device. I started from the support for WR703N as template and corrected the gpio leds and buttons. I remove a couple of command the take online the USB power (I think is not needed since no USB port is available and I

[OpenWrt-Devel] [PATCH] firewall3: Immediate continue when no source is specified as it is used later on (seg fault)

2015-01-13 Thread Kim De Mey
A segmentation fault is currently possible when redir->_src is null and later the check on redir->_src->masq is done in the line: if (redir->reflection && redir->_dest && redir->_src->masq) Proposed fix: continue immediately when redir->_src is null. --- redirects.c |4 1 file changed, 4

Re: [OpenWrt-Devel] [PATCH] firewall3: Immediate continue when no source is specified as it is used later on (seg fault)

2015-01-13 Thread Jo-Philipp Wich
Hi, thank you for the patch. Since there already is a generic free further down I decided to move the offending code blocks into the else clause wich sets valid = true, see http://nbd.name/gitweb.cgi?p=firewall3.git;a=commit;h=adf87f3a36328b949ed777068b14d975b429f9ad ~ Jow __

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

2015-01-13 Thread Christian Schoenebeck
Hi Catalin, there might be a change somewhere in the past inside netifd. When I started creating the scripts I tested with the old scripts and had seen that when the scripts try to detect local IP from the "wan" that it fails because no data available. from my point of view 10 seconds to wait b

Re: [OpenWrt-Devel] [PATCH] added support for TL-WA701ND v2

2015-01-13 Thread Luigi Tarenga
> There is just one thing I still have to check: return back to original > firmware and see if you can upload the factory image in the firmware > upgrade toolbox and it pass the hwid/verid checks. I think yes since > I used the same values as found in the stock firmware. I will update you > in a co

Re: [OpenWrt-Devel] [PATCH] firewall3: Immediate continue when no source is specified as it is used later on (seg fault)

2015-01-13 Thread Kim De Mey
On 13 January 2015 at 12:49, Jo-Philipp Wich wrote: > Hi, > > thank you for the patch. > > Since there already is a generic free further down I decided to move the > offending code blocks into the else clause wich sets valid = true, see > http://nbd.name/gitweb.cgi?p=firewall3.git;a=commit;h=adf87

Re: [OpenWrt-Devel] ddns-scripts 2.0.1-1 breaks freedns.afraid.org?

2015-01-13 Thread Christian Schoenebeck
I put it on the TODO list. Thanks for feedback Christian ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

[OpenWrt-Devel] Wrong Network Configuration File Fails Everything

2015-01-13 Thread Yilun Zhou
Hi, I am experimenting with OpenWRT Attitude Adjustment on NETGEAR WNDR3800. I accidentally wrote wrong network configuration file and committed it. Now I cannot interact with the router anymore. The wifi is still being created but there is no Internet. I tried to SSH into the router from devic

[OpenWrt-Devel] [PATCH 1/9] mvebu: Replace the padjffs2 call by the generic definition

2015-01-13 Thread Maxime Ripard
The mvebu image Makefile directly calls the padjffs2 utility, while there's an generic make function to do just that. Switch to it Signed-off-by: Maxime Ripard --- target/linux/mvebu/image/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/mvebu/image/Makef

[OpenWrt-Devel] [PATCH 2/9] mvebu: Switch to the generic mkuimage macro

2015-01-13 Thread Maxime Ripard
The mvebu image makefile define something almost identical to the generic implementation found in include/image.mk. Switch to this implementation. Signed-off-by: Maxime Ripard --- target/linux/mvebu/image/Makefile | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/targ

[OpenWrt-Devel] [PATCH 3/9] kernel: Allow ubi autoattach to run on NOR flash

2015-01-13 Thread Maxime Ripard
Some devices out there only have a NOR flash to store the rootfs on. While using UBI is arguable on this kind of NAND, this is something that should be supported. Signed-off-by: Maxime Ripard --- .../490-ubi-auto-attach-mtd-device-named-ubi-or-data-on-boot.patch | 5 +++-- .../490-ubi-auto-at

[OpenWrt-Devel] [PATCH 4/9] mvebu: Add sub-profiles

2015-01-13 Thread Maxime Ripard
In order to support the various board NAND layout that we support, introduce a sub-profile similar to the one used by ar71xx. These subprofiles provide a default implementation for most of the building functions, while allowing each sub-profile to override any of these operations in order to have

[OpenWrt-Devel] [PATCH 6/9] mvebu: Fix NAND and NOR options

2015-01-13 Thread Maxime Ripard
All the boards but Mamba had wrong UBI options so far, making it impossible to flash the built image on their storage medium. Fix all of the supported boards in order to make the generated images useful. Tested on a Mirabox, an Armada XP GP and an Openblocks AX3, and used the NAND chip datasheet

[OpenWrt-Devel] [PATCH 7/9] mvebu: Switch to 3.18

2015-01-13 Thread Maxime Ripard
The 3.16 kernel introduced support for the A38x SoC family. In order to support them, switch to the newer 3.18 kernel. Signed-off-by: Maxime Ripard --- target/linux/mvebu/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/mvebu/Makefile b/target/linux/mvebu

[OpenWrt-Devel] [PATCH 5/9] mvebu: Add NOR sub-profile implementation

2015-01-13 Thread Maxime Ripard
While we supported only the NAND so far, some boards use a NOR, which requires a different set of UBI options. Add a new subprofile type for such boards. Signed-off-by: Maxime Ripard --- target/linux/mvebu/image/Makefile | 26 ++ 1 file changed, 26 insertions(+) diff --

[OpenWrt-Devel] [PATCH 9/9] mvebu: Add Armada 385 DB AP support

2015-01-13 Thread Maxime Ripard
The Armada 385 DB AP board is a reference design board for access points. Signed-off-by: Maxime Ripard --- target/linux/mvebu/image/Makefile | 1 + ...nctrl-mvebu-a38x-Add-UART1-muxing-options.patch | 43 .../013-ARM-mvebu-a38x-Fix-node-names.patch| 98 +

[OpenWrt-Devel] [PATCH 0/9] mvebu: Fix flash support and support for A38x

2015-01-13 Thread Maxime Ripard
Hi, This serie aims at finally fixing the already supported mvebu boards images, since none of them actually work on the boards except for the WRT1900AC. This is the follow-up of two previous attempts at doing that: https://lists.openwrt.org/pipermail/openwrt-devel/2014-October/028593.html https:

[OpenWrt-Devel] [PATCH 8/9] mvebu: Add the Armada 385 Reference Design support

2015-01-13 Thread Maxime Ripard
Signed-off-by: Maxime Ripard --- target/linux/mvebu/image/Makefile | 1 + .../020-armada-385-rd-mtd-partitions.patch | 24 ++ 2 files changed, 25 insertions(+) create mode 100644 target/linux/mvebu/patches-3.18/020-armada-385-rd-mtd-partitions.patch

[OpenWrt-Devel] [PATCH] toolchain: Add libatomic when using external toolchain

2015-01-13 Thread Helmut Schaa
Otherwise libatomic cannot be used in conjunction with external toolchains. Signed-off-by: Helmut Schaa --- package/libs/toolchain/Makefile | 9 + 1 file changed, 9 insertions(+) diff --git a/package/libs/toolchain/Makefile b/package/libs/toolchain/Makefile index 1a75e90..42b9935 100644

[OpenWrt-Devel] [PATCH] comgt: Allow using non-TTY devices

2015-01-13 Thread Matti Laakso
Some Huawei mobile broadband sticks utilizing the NCM protocol expose the control channel as a cdc-wdm device node instead of a virtual TTY. This device node does not support the terminal ioctls. This patch adds a check whether the provided device is a TTY or not and does not attempt to use the ter

Re: [OpenWrt-Devel] Wrong Network Configuration File Fails Everything

2015-01-13 Thread Sami Olmari
Set static IP for your computer, like 192.168.1.10, subnet 255.255.255.0 and try then. Sami Olmari On Tue, Jan 13, 2015 at 5:06 PM, Yilun Zhou wrote: > Hi, > > I am experimenting with OpenWRT Attitude Adjustment on NETGEAR WNDR3800. I > accidentally wrote wrong network configuration file and co

Re: [OpenWrt-Devel] [RFC PATCH] mac80211: brcmfmac: separate SDIO and USB support

2015-01-13 Thread José Vázquez
2015-01-13 8:46 GMT+01:00, Zoltan HERPAI : > I haven't seen any flags that does SDIO_SUPPORT or something similar. It's > either removing "depend on USB_SUPPORT" or add dependencies for the > targets that'll use the SDIO part. Do you know of other approach? > > Thanks, > -w- > You are right: there

[OpenWrt-Devel] [RFC] [mvebu] WRT1900AC syscfg as overlay

2015-01-13 Thread mark milburn
I believe this is the appropriate forum for discussing this. Let me know if this is not the case. I think that employing the syscfg partition as the overlayfs is not useful for this device, and for at least one case, harmful. The current setup that allows for a primary and alternate firmware ima

Re: [OpenWrt-Devel] [PATCH] kernel: bridge: multicast: backport a few more fixes for 3.10

2015-01-13 Thread Linus Lüssing
On Tue, Dec 30, 2014 at 04:10:56AM +0100, Linus Lüssing wrote: > The following patches unfortunately didn't hit the kernel stable > branches yet, therefore cherrypicking them for OpenWRT here: > > * bridge: fix netfilter/NF_BR_LOCAL_OUT for own, locally generated queries > * bridge: multicast: ena