Re: [OpenWrt-Devel] [PATCH firewall] zones : Redirect incoming WAN traffic only when the destination IP address matches the IP masquerading address

2015-10-05 Thread Alin Năstac
Here is the original description I gave to my patch (see http://patchwork.ozlabs.org/patch/516167/): Basically it prevents zone_wan_prerouting rules to affect traffic towards IP addresses that are not used for masquerading LAN private IP space and it does that by setting destination IP address of

Re: [OpenWrt-Devel] [PATCH procd v3 0/7] jail work

2015-10-05 Thread John Crispin
On 27/08/2015 01:26, Etienne CHAMPETIER wrote: > v3 of my (u)jail work, you can now use separately > namespaces jail, capabilities and seccomp > > Openwrt procd Makefile patch v2 is still ok > ___ > openwrt-devel mailing list > openwrt-devel@lists.open

Re: [OpenWrt-Devel] [PATCH] [SIGNED-OFF] Correct WeIO board name

2015-10-05 Thread John Crispin
On 29/09/2015 13:20, Drasko DRASKOVIC wrote: > Trivial parch to correct WeIO board name in the system. > > Signed-off-by: Drasko DRASKOVIC looks good but somehow your subject lines are always wrong. id should be [PATCH] ar71xx: Correct WeIO board name please make sure to send correct subject

Re: [OpenWrt-Devel] [RFC] libubox/binary.h design proposal

2015-10-05 Thread Javier Domingo Cansino
Hello, I have been asked for examples and use cases. Github repo has been updated. I do also have doubts on if it's worth it. If a library like this existed I would be definitely using it, make conversions, does take care of alignment, can manage unaligned data and endianness. etc. But I am not

Re: [OpenWrt-Devel] [RFC] libubox/binary.h design proposal

2015-10-05 Thread Javier Domingo Cansino
After feedback in IRC, I will drop this idea, and try to go the kernel way, supporting endianess annotated structures with sparse rules checking. https://lwn.net/Articles/205624/ The motivation is that it's really difficult to keep in sync all the format strings, and although there may be ways to

[OpenWrt-Devel] Package build dependencies

2015-10-05 Thread Jos Vos
Hi, Some questions/remarks about the OpenWRT package build philospophy, from someone looking at it from the rpm/mock "world": >From what I see, after compiling a package and installing it in the staging tree, only the files that are needed at runtime on the target system are bundled in a package

Re: [OpenWrt-Devel] [PATCH 2/4] ramips: Fix setting of rx buffer length

2015-10-05 Thread John Crispin
On 25/09/2015 13:11, Sven Eckelmann wrote: > The length of the DMA rx buffer was always set to 0 because the function > for extracting the length was used to calculate the value for setting it. > Instead the macro has to be split in a get and set function similar to the > TX_DMA_(GET_|)PLEN(0|1)

[OpenWrt-Devel] [PATCH] scripts/checkpatch.pl: Fix deprecation warnings

2015-10-05 Thread Javier Domingo Cansino
In perl version v5.22, use of unescaped opening braces is deprecated Signed-off-by: Javier Domingo Cansino --- scripts/checkpatch.pl | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 5e2c0b9..7805333 100755 --- a/sc

Re: [OpenWrt-Devel] [PATCH 5/7] ramips: fix mt7621 cpu clock speed. set spi clock to system clock

2015-10-05 Thread John Crispin
Hi, comments inline, On 22/09/2015 15:26, Michael Lee wrote: > From: michael lee > > spi clock is the same as system clock measured by logic analyzer. > > Signed-off-by: Michael Lee > --- > .../0012-MIPS-ralink-add-MT7621-support.patch | 29 > +- > 1 file changed, 2

Re: [OpenWrt-Devel] [PATCH 2/2] packages: Remove dependencies to kmod-ipv6

2015-10-05 Thread John Crispin
Hi, On 20/09/2015 10:54, Arjen de Korte wrote: > Since r46834, IPv6 support is builtin if selected. Therefor, dependencies > on kmod-ipv6 can no longer be fulfilled, since it is not a module anymore. > > Signed-off-by: Arjen de Korte > --- > ipv6/tayga/Makefile | 2 +- > libs/libwebsock

Re: [OpenWrt-Devel] [PATCH 5/7] ramips: fix mt7621 cpu clock speed. set spi clock to system clock

2015-10-05 Thread Mingyu Li
according to mtk sdk 4300 at kernel version linux-2.6.36.x at 40Mhz Xtal it use 20 not 40. #elif defined (CONFIG_RALINK_MT7621) case 0: reg = (*(volatile u32 *)(RALINK_SYSCTL_BASE + 0x44)); cpu_fdiv = ((reg >> 8) & 0x1F); cpu_ffrac = (reg & 0

Re: [OpenWrt-Devel] [OpenWrt-Devel, 3/7] ramips: fix rx buffer length

2015-10-05 Thread Sven Eckelmann
On Tuesday 22 September 2015 21:25:59 michael lee wrote: > From: michael lee > > Signed-off-by: Michael Lee > --- Sorry, missed your patch when I've send the fix [1] for my report [2]. John was kind enough to point me to your patch. > diff --git > a/target/linux/ramips/files/drivers/net/ether

Re: [OpenWrt-Devel] [PATCH 5/7] ramips: fix mt7621 cpu clock speed. set spi clock to system clock

2015-10-05 Thread John Crispin
On 05/10/2015 12:29, Mingyu Li wrote: > according to mtk sdk 4300 at kernel version linux-2.6.36.x > at 40Mhz Xtal it use 20 not 40. > > #elif defined (CONFIG_RALINK_MT7621) > case 0: > reg = (*(volatile u32 *)(RALINK_SYSCTL_BASE + 0x44)); > cpu_fdiv = ((r

Re: [OpenWrt-Devel] [OpenWrt-Devel, 3/7] ramips: fix rx buffer length

2015-10-05 Thread Sven Eckelmann
On Monday 05 October 2015 12:31:44 Sven Eckelmann wrote: > [1] https://patchwork.ozlabs.org/patch/522722/ > [2] http://news.gmane.org/gmane.comp.embedded.openwrt.devel Grml, the second link should have been http://thread.gmane.org/gmane.comp.embedded.openwrt.devel/34868 Kind regards, Sv

Re: [OpenWrt-Devel] [PATCH 2/2] packages: Remove dependencies to kmod-ipv6

2015-10-05 Thread Arjen de Korte
Citeren John Crispin : Hi, On 20/09/2015 10:54, Arjen de Korte wrote: Since r46834, IPv6 support is builtin if selected. Therefor, dependencies on kmod-ipv6 can no longer be fulfilled, since it is not a module anymore. Signed-off-by: Arjen de Korte --- ipv6/tayga/Makefile | 2 +- li

Re: [OpenWrt-Devel] [PATCH procd v3 0/7] jail work

2015-10-05 Thread Etienne Champetier
Hi John, 2015-10-05 11:14 GMT+02:00 John Crispin : > > > On 27/08/2015 01:26, Etienne CHAMPETIER wrote: > > v3 of my (u)jail work, you can now use separately > > namespaces jail, capabilities and seccomp > > > > Openwrt procd Makefile patch v2 is still ok > > > > Hi, > > just merged 1-5, 6 &7 fai

[OpenWrt-Devel] [PATCH] 8139cp fixes

2015-10-05 Thread David Woodhouse
I find it moderately suboptimal when a TX timeout on the Ethernet port causes my router to lock up until the hardware watchdog kicks in. Two patches of patches attached, in two files. One set is already in 4.3-rc4; the other in net-next queued for 4.4. Please apply to trunk and CC. -- David Woo

Re: [OpenWrt-Devel] [PATCH] 8139cp fixes

2015-10-05 Thread David Woodhouse
On Mon, 2015-10-05 at 13:25 +0100, David Woodhouse wrote: > I find it moderately suboptimal when a TX timeout on the Ethernet > port > causes my router to lock up until the hardware watchdog kicks in. > > Two patches of patches attached, in two files. > One set is already in 4.3-rc4; the other in

Re: [OpenWrt-Devel] [PATCH] 8139cp fixes

2015-10-05 Thread David Woodhouse
On Mon, 2015-10-05 at 14:18 +0100, David Woodhouse wrote: > > Actually, make that just the 4.1 and 4.2 kernels for now. I'll follow > up with a backport to 3.18. If we drop the net-next part which fixes up the offload facilities and enable them by default, it's as simple as s/napi_schedule_irqoff

Re: [OpenWrt-Devel] [PATCH] 8139cp fixes

2015-10-05 Thread Felix Fietkau
On 2015-10-05 15:30, David Woodhouse wrote: > On Mon, 2015-10-05 at 14:18 +0100, David Woodhouse wrote: >> >> Actually, make that just the 4.1 and 4.2 kernels for now. I'll follow >> up with a backport to 3.18. > > If we drop the net-next part which fixes up the offload facilities and > enable th

[OpenWrt-Devel] [PATCH] generic: add 8139cp fixes, enable hardware csum/tso on 4.0+

2015-10-05 Thread David Woodhouse
For all kernels, add the fixes which are already in 4.3-rc4. For 4.0+, also add the fixes currently in net-next which fix and enable hardware checksum and TSO support. --- .../patches-3.18/760-8139cp-fixes-from-4.3.patch | 367 + .../patches-4.0/760-8139cp-fixes-from-4.3.pa

[OpenWrt-Devel] [PATCH CC] generic: add 8139cp fixes from 4.3

2015-10-05 Thread David Woodhouse
Signed-off-by: David Woodhouse --- .../patches-3.18/760-8139cp-fixes-from-4.3.patch | 367 + 1 file changed, 367 insertions(+) create mode 100644 target/linux/generic/patches-3.18/760-8139cp-fixes-from-4.3.patch diff --git a/target/linux/generic/patches-3.18/760-8139cp-fi

[OpenWrt-Devel] [PATCH] brcm2708: all sound overlays require i2c to work

2015-10-05 Thread Álvaro Fernández Rojas
Tested on RPi B+ with HiFiBerry Amp+ Signed-off-by: Álvaro Fernández Rojas --- target/linux/brcm2708/modules.mk | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/target/linux/brcm2708/modules.mk b/target/linux/brcm2708/modules.mk index 9c201d0..36d26c6 100644 -

[OpenWrt-Devel] the cerowrt project's letter to the fcc about the wifi lockdown is nearly final

2015-10-05 Thread Dave Taht
see: https://docs.google.com/document/d/1E1D1vWP9uA97Yj5UuBPZXuQEPHARp-AhRqUOeQB2WPk/edit?usp=sharing for more details. We still have a boatload of footnotes (help?) to add back in properly, and there are no doubt other problems we will catch in the morning. Comment away! As we are hard up agai