[OpenWrt-Devel] Q: musl: ether_aton() behaves differently than in glibc

2018-06-27 Thread Zefir Kurtisi
Hi,

I found a proprietary package stopped working after moving from glibc to musl 
and
ended up identifying a difference in processing of ether_aton().

In musl, the ether_addr string is expected to be NULL terminated (see
https://git.musl-libc.org/cgit/musl/tree/src/network/ether.c#n20), while other
libc implementations are less strict (i.e. only evaluate the leading ether_addr
and ignoring subsequent chars).

Tried to search the net for a reliable spec on whether it must be NULL 
terminated
or not, but found nothing specific.


What do you guys think, is musl just more strict here and therefore correct, or 
is
the less strict behaviour of the other implementations the way to go?


Cheers,
Zefir

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH v2 1/2] ath79: add pinmux to ar9330

2018-06-27 Thread Rocco Folino
This patch adds the pinmux support to the ar9330 used to disable the
JTAG or to enable switch LEDs

Signed-off-by: Rocco Folino 
---
 target/linux/ath79/dts/ar9330.dtsi | 18 ++
 1 file changed, 18 insertions(+)

diff --git a/target/linux/ath79/dts/ar9330.dtsi 
b/target/linux/ath79/dts/ar9330.dtsi
index 3d3dd87f9b2f..65445de1f161 100644
--- a/target/linux/ath79/dts/ar9330.dtsi
+++ b/target/linux/ath79/dts/ar9330.dtsi
@@ -61,6 +61,24 @@
status = "disabled";
};
 
+   pinmux: pinmux@18040028 {
+   compatible = "pinctrl-single";
+   reg = <0x18040028 0x8>;
+
+   pinctrl-single,bit-per-mux;
+   pinctrl-single,register-width = <32>;
+   pinctrl-single,function-mask = <0x1>;
+   #pinctrl-cells = <2>;
+
+   jtag_disable_pins: pinmux_jtag_disable_pins {
+   pinctrl-single,bits = <0x0 0x1 0x1>;
+   };
+
+   switch_led_pins: pinmux_switch_led_pins {
+   pinctrl-single,bits = <0x0 0x1f 0xf8>;
+   };
+   };
+
pll: pll-controller@1805 {
compatible = "qca,ar9330-pll";
reg = <0x1805 0x100>;
-- 
2.17.1


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH v2 2/2] ath79: port TP-Link TL-WR741ND v4 and TL-WR740ND v4

2018-06-27 Thread Rocco Folino
This patch ports the TP-Link TL-WR741ND v4 and TL-WR740ND v4 to the
ath79 target.

Because the two devices share the same hw layout, this patch adds a common
.dtsi which is included by the two .dts.

Signed-off-by: Rocco Folino 
---
 .../ath79/base-files/etc/board.d/01_leds  |   8 +
 .../ath79/base-files/etc/board.d/02_network   |   7 +
 .../linux/ath79/dts/ar9331_tl-wr740nd-v4.dts  |   9 +
 .../linux/ath79/dts/ar9331_tl-wr741nd-v4.dts  |   9 +
 .../linux/ath79/dts/ar9331_tl-wr741nd-v4.dtsi | 173 ++
 target/linux/ath79/image/tiny-tp-link.mk  |  18 ++
 6 files changed, 224 insertions(+)
 create mode 100644 target/linux/ath79/dts/ar9331_tl-wr740nd-v4.dts
 create mode 100644 target/linux/ath79/dts/ar9331_tl-wr741nd-v4.dts
 create mode 100644 target/linux/ath79/dts/ar9331_tl-wr741nd-v4.dtsi

diff --git a/target/linux/ath79/base-files/etc/board.d/01_leds 
b/target/linux/ath79/base-files/etc/board.d/01_leds
index 29416ad83ea7..3edffaff7492 100755
--- a/target/linux/ath79/base-files/etc/board.d/01_leds
+++ b/target/linux/ath79/base-files/etc/board.d/01_leds
@@ -45,6 +45,14 @@ case "$board" in
ucidef_set_led_switch "lan3" "LAN3" "$boardname:green:lan3" "switch0" 
"0x08"
ucidef_set_led_switch "lan4" "LAN4" "$boardname:green:lan4" "switch0" 
"0x10"
;;
+"tplink,tl-wr741nd-v4"|\
+"tplink,tl-wr740nd-v4")
+   ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
+   ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" 
"0x04"
+   ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" 
"0x08"
+   ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" 
"0x10"
+   ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" 
"0x02"
+   ;;
 esac
 
 board_config_flush
diff --git a/target/linux/ath79/base-files/etc/board.d/02_network 
b/target/linux/ath79/base-files/etc/board.d/02_network
index e2a45b05261a..3a0ffdf6128c 100755
--- a/target/linux/ath79/base-files/etc/board.d/02_network
+++ b/target/linux/ath79/base-files/etc/board.d/02_network
@@ -62,6 +62,13 @@ ath79_setup_interfaces()
"0@eth1" "1:lan" "2:lan" "3:lan" "4:lan"
;;
 
+   "tplink,tl-wr741nd-v4"|\
+   "tplink,tl-wr740nd-v4")
+   ucidef_set_interfaces_wan "eth1"
+   ucidef_add_switch "switch0" \
+   "0@eth0" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1"
+   ;;
+
"tplink,tl-wr1043nd-v1")
ucidef_add_switch "switch0" \
"1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "5@eth0"
diff --git a/target/linux/ath79/dts/ar9331_tl-wr740nd-v4.dts 
b/target/linux/ath79/dts/ar9331_tl-wr740nd-v4.dts
new file mode 100644
index ..b0029b88b6f4
--- /dev/null
+++ b/target/linux/ath79/dts/ar9331_tl-wr740nd-v4.dts
@@ -0,0 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+/dts-v1/;
+
+#include "ar9331_tl-wr741nd-v4.dtsi"
+
+/ {
+   model = "TP-Link TL-WR740N/ND v4";
+   compatible = "tplink,tl-wr740n-v4";
+};
diff --git a/target/linux/ath79/dts/ar9331_tl-wr741nd-v4.dts 
b/target/linux/ath79/dts/ar9331_tl-wr741nd-v4.dts
new file mode 100644
index ..118831b4d24c
--- /dev/null
+++ b/target/linux/ath79/dts/ar9331_tl-wr741nd-v4.dts
@@ -0,0 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+/dts-v1/;
+
+#include "ar9331_tl-wr741nd-v4.dtsi"
+
+/ {
+   model = "TP-Link TL-WR741N/ND v4";
+   compatible = "tplink,tl-wr741n-v4";
+};
diff --git a/target/linux/ath79/dts/ar9331_tl-wr741nd-v4.dtsi 
b/target/linux/ath79/dts/ar9331_tl-wr741nd-v4.dtsi
new file mode 100644
index ..615d317e41d0
--- /dev/null
+++ b/target/linux/ath79/dts/ar9331_tl-wr741nd-v4.dtsi
@@ -0,0 +1,173 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+/dts-v1/;
+
+#include 
+#include 
+
+#include "ar9331.dtsi"
+
+/ {
+   compatible = "tplink,tl-wr741n-v4", "qca,ar9331";
+   model = "TP-Link TL-WR741N/ND v4";
+
+   aliases {
+   serial0 = 
+   led-status = _system;
+   };
+
+   gpio-keys-polled {
+   compatible = "gpio-keys-polled";
+   #address-cells = <1>;
+   #size-cells = <0>;
+   poll-interval = <20>;
+
+   reset {
+   label = "reset";
+   linux,code = ;
+   gpios = < 11 GPIO_ACTIVE_HIGH>;
+   debounce-interval = <60>;
+   };
+
+   wps {
+   label = "wps";
+   linux,code = ;
+   gpios = < 26 GPIO_ACTIVE_HIGH>;
+   debounce-interval = <60>;
+   };
+   };
+
+   gpio-leds {
+   compatible = "gpio-leds";
+   pinctrl-names = "default";
+   pinctrl-0 = <_led_pins>;
+
+   lan1 {
+   label = "tp-link:green:lan1";
+   

Re: [OpenWrt-Devel] No Response since Mai for GitHub Pull Request

2018-06-27 Thread Mauro Mozzarelli
I am in a similar situation. I have been waiting for over a year for the 
linux-virtual-server pull request. I think it expired.


Eventually I gave up.


On 26/06/18 20:33, Nick wrote:

Hi,
I added some pull request that add the ht and vht support in the probe
requests in the ubus calls.


https://github.com/openwrt/openwrt/pull/898

This request is open since Mai.
I would be very happy, if I would receive an answer. :)


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/listinfo/openwrt-devel



___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 2/2] system-linux: add autoneg and link-partner output

2018-06-27 Thread jwh
From: Joe Holden 

This adds an array that contains the link modes advertised by the other device 
and also
indicates whether auto negotiation is true or false.

link-partner may or may not be popualated depending on hardware, driver and/or 
settings.
---
 system-linux.c | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/system-linux.c b/system-linux.c
index 1330ea1..362e06d 100644
--- a/system-linux.c
+++ b/system-linux.c
@@ -1730,6 +1730,10 @@ system_if_dump_info(struct device *dev, struct blob_buf 
*b)
system_add_link_modes(b, ecmd.advertising);
blobmsg_close_array(b, c);
 
+   c = blobmsg_open_array(b, "link-partner");
+   system_add_link_modes(b, ecmd.lp_advertising);
+   blobmsg_close_array(b, c);
+
c = blobmsg_open_array(b, "link-supported");
system_add_link_modes(b, ecmd.supported);
blobmsg_close_array(b, c);
@@ -1738,6 +1742,8 @@ system_if_dump_info(struct device *dev, struct blob_buf 
*b)
snprintf(s, 8, "%d%c", ethtool_cmd_speed(),
ecmd.duplex == DUPLEX_HALF ? 'H' : 'F');
blobmsg_add_string_buffer(b);
+
+   blobmsg_add_u8(b, "autoneg", !!ecmd.autoneg);
}
 
return 0;
-- 
2.18.0


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH v2 0/2] ath79: port TP-Link TL-WR741ND v4 and TL-WR740ND v4

2018-06-27 Thread Rocco Folino
This patchset ports the TP-Link TL-WR741ND v4 and TL-WR740ND v4 to
the ath79 target.

Because of the need to enabled switch LEDs, this patch adds also the pinmux
support to ar9330.

Changed in v2:
 - used use the linux,default-trigger devicetree property
 - used ucidef_set_interface_wan to define WAN interface
 - removed the memory node
 - added missing fixed-link to eth1 node
 - added pinmux support to the ar9330

Rocco Folino (2):
  ath79: add pinmux to ar9330
  ath79: port TP-Link TL-WR741ND v4 and TL-WR740ND v4

 .../ath79/base-files/etc/board.d/01_leds  |   8 +
 .../ath79/base-files/etc/board.d/02_network   |   7 +
 target/linux/ath79/dts/ar9330.dtsi|  18 ++
 .../linux/ath79/dts/ar9331_tl-wr740nd-v4.dts  |   9 +
 .../linux/ath79/dts/ar9331_tl-wr741nd-v4.dts  |   9 +
 .../linux/ath79/dts/ar9331_tl-wr741nd-v4.dtsi | 173 ++
 target/linux/ath79/image/tiny-tp-link.mk  |  18 ++
 7 files changed, 242 insertions(+)
 create mode 100644 target/linux/ath79/dts/ar9331_tl-wr740nd-v4.dts
 create mode 100644 target/linux/ath79/dts/ar9331_tl-wr741nd-v4.dts
 create mode 100644 target/linux/ath79/dts/ar9331_tl-wr741nd-v4.dtsi

-- 
2.17.1


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 1/2] system-linux: add 2.5 and 10G interface speed definitions

2018-06-27 Thread jwh
From: Joe Holden 

---
 system-linux.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/system-linux.c b/system-linux.c
index 0127b01..1330ea1 100644
--- a/system-linux.c
+++ b/system-linux.c
@@ -1688,6 +1688,8 @@ static const struct {
{ ADVERTISED_100baseT_Full, "100F" },
{ ADVERTISED_1000baseT_Half, "1000H" },
{ ADVERTISED_1000baseT_Full, "1000F" },
+   { ADVERTISED_2500baseX_Full, "2500F" },
+   { ADVERTISED_1baseT_Full, "1F" },
 };
 
 static void system_add_link_modes(struct blob_buf *b, __u32 mask)
-- 
2.18.0


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH v2 1/2 netifd] system-linux: add 2.5 and 10G interface speed definitions

2018-06-27 Thread jwh
From: Joe Holden 

---
 system-linux.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/system-linux.c b/system-linux.c
index 0127b01..1330ea1 100644
--- a/system-linux.c
+++ b/system-linux.c
@@ -1688,6 +1688,8 @@ static const struct {
{ ADVERTISED_100baseT_Full, "100F" },
{ ADVERTISED_1000baseT_Half, "1000H" },
{ ADVERTISED_1000baseT_Full, "1000F" },
+   { ADVERTISED_2500baseX_Full, "2500F" },
+   { ADVERTISED_1baseT_Full, "1F" },
 };
 
 static void system_add_link_modes(struct blob_buf *b, __u32 mask)
-- 
2.18.0


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH v2 2/2] system-linux: add autoneg and link-partner output

2018-06-27 Thread jwh
From: Joe Holden 

This adds an array that contains the link modes advertised by the other device 
and also
indicates whether auto negotiation is true or false.

link-partner may or may not be popualated depending on hardware, driver and/or 
settings.
---
 system-linux.c | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/system-linux.c b/system-linux.c
index 1330ea1..362e06d 100644
--- a/system-linux.c
+++ b/system-linux.c
@@ -1730,6 +1730,10 @@ system_if_dump_info(struct device *dev, struct blob_buf 
*b)
system_add_link_modes(b, ecmd.advertising);
blobmsg_close_array(b, c);
 
+   c = blobmsg_open_array(b, "link-partner");
+   system_add_link_modes(b, ecmd.lp_advertising);
+   blobmsg_close_array(b, c);
+
c = blobmsg_open_array(b, "link-supported");
system_add_link_modes(b, ecmd.supported);
blobmsg_close_array(b, c);
@@ -1738,6 +1742,8 @@ system_if_dump_info(struct device *dev, struct blob_buf 
*b)
snprintf(s, 8, "%d%c", ethtool_cmd_speed(),
ecmd.duplex == DUPLEX_HALF ? 'H' : 'F');
blobmsg_add_string_buffer(b);
+
+   blobmsg_add_u8(b, "autoneg", !!ecmd.autoneg);
}
 
return 0;
-- 
2.18.0


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH 1/2] kernel: bump 4.9 to 4.9.110

2018-06-27 Thread John Crispin

gawd, merging your patches is becoming a drag 


On 27/06/18 22:21, Koen Vandeputte wrote:

Refreshed all patches

Compile-tested on: ar71xx
Runtime-tested on: ar71xx

Signed-off-by: Koen Vandeputte 
---
  include/kernel-version.mk|  4 ++--
  .../ar71xx/patches-4.9/500-MIPS-fw-myloader.patch|  2 +-
  .../generic/pending-4.9/308-mips32r2_tune.patch  |  2 +-
  ...rejecting-with-source-address-failed-policy.patch | 20 ++--
  .../generic/pending-4.9/834-ledtrig-libata.patch |  8 
  5 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/include/kernel-version.mk b/include/kernel-version.mk
index 52a8433ec6cb..3ab0316056e4 100644
--- a/include/kernel-version.mk
+++ b/include/kernel-version.mk
@@ -4,13 +4,13 @@ LINUX_RELEASE?=1
  
  LINUX_VERSION-3.18 = .71

  LINUX_VERSION-4.4 = .121
-LINUX_VERSION-4.9 = .109
  LINUX_VERSION-4.14 = .51
+LINUX_VERSION-4.9 = .110
  
  LINUX_KERNEL_HASH-3.18.71 = 5abc9778ad44ce02ed6c8ab52ece8a21c6d20d21f6ed8a19287b4a38a50c1240

  LINUX_KERNEL_HASH-4.4.121 = 
44a88268b5088dc326b30c9b9133ac35a9a200b636b7268d08f32abeae6ca729
-LINUX_KERNEL_HASH-4.9.109 = 
3dcd5654a553432119492b69e649c4ed117781bfd571edcb02346c945be359b0
  LINUX_KERNEL_HASH-4.14.51 = 
dab2402baa2444348f9b3c354e8f65382a466d1766942a57441209f9a2df972b
+LINUX_KERNEL_HASH-4.9.110 = 
379a143a70a79f0eea6c9f6638942b65e6043abdde17ad23264c0abd93c4ea7a
  
  remove_uri_prefix=$(subst git://,,$(subst http://,,$(subst https://,,$(1

  sanitize_uri=$(call qstrip,$(subst @,_,$(subst :,_,$(subst .,_,$(subst 
-,_,$(subst /,_,$(1)))
diff --git a/target/linux/ar71xx/patches-4.9/500-MIPS-fw-myloader.patch 
b/target/linux/ar71xx/patches-4.9/500-MIPS-fw-myloader.patch
index 301422a7d8a1..304fd69b2262 100644
--- a/target/linux/ar71xx/patches-4.9/500-MIPS-fw-myloader.patch
+++ b/target/linux/ar71xx/patches-4.9/500-MIPS-fw-myloader.patch
@@ -1,6 +1,6 @@
  --- a/arch/mips/Makefile
  +++ b/arch/mips/Makefile
-@@ -213,6 +213,7 @@ cflags-$(toolchain-virt)   += -DTOOLCHAIN
+@@ -218,6 +218,7 @@ cflags-$(toolchain-virt)   += -DTOOLCHAIN
   #
   libs-$(CONFIG_FW_ARC)+= arch/mips/fw/arc/
   libs-$(CONFIG_FW_CFE)+= arch/mips/fw/cfe/
diff --git a/target/linux/generic/pending-4.9/308-mips32r2_tune.patch 
b/target/linux/generic/pending-4.9/308-mips32r2_tune.patch
index 63cf576bd898..9e1efe2713e1 100644
--- a/target/linux/generic/pending-4.9/308-mips32r2_tune.patch
+++ b/target/linux/generic/pending-4.9/308-mips32r2_tune.patch
@@ -11,7 +11,7 @@ Signed-off-by: Felix Fietkau 
  
  --- a/arch/mips/Makefile

  +++ b/arch/mips/Makefile
-@@ -148,7 +148,7 @@ cflags-$(CONFIG_CPU_R4X00) += -march=r46
+@@ -153,7 +153,7 @@ cflags-$(CONFIG_CPU_R4X00) += -march=r46
   cflags-$(CONFIG_CPU_TX49XX)  += -march=r4600 -Wa,--trap
   cflags-$(CONFIG_CPU_MIPS32_R1)   += $(call 
cc-option,-march=mips32,-mips32 -U_MIPS_ISA -D_MIPS_ISA=_MIPS_ISA_MIPS32) \
-Wa,-mips32 -Wa,--trap
diff --git 
a/target/linux/generic/pending-4.9/670-ipv6-allow-rejecting-with-source-address-failed-policy.patch
 
b/target/linux/generic/pending-4.9/670-ipv6-allow-rejecting-with-source-address-failed-policy.patch
index 2cebf55a447b..4757e81ea114 100644
--- 
a/target/linux/generic/pending-4.9/670-ipv6-allow-rejecting-with-source-address-failed-policy.patch
+++ 
b/target/linux/generic/pending-4.9/670-ipv6-allow-rejecting-with-source-address-failed-policy.patch
@@ -141,7 +141,7 @@ Signed-off-by: Jonas Gorski 
   static const struct rt6_info ip6_blk_hole_entry_template = {
.dst = {
.__refcnt   = ATOMIC_INIT(1),
-@@ -1970,6 +1987,11 @@ static struct rt6_info *ip6_route_info_c
+@@ -1967,6 +1984,11 @@ static struct rt6_info *ip6_route_info_c
rt->dst.output = ip6_pkt_prohibit_out;
rt->dst.input = ip6_pkt_prohibit;
break;
@@ -153,7 +153,7 @@ Signed-off-by: Jonas Gorski 
case RTN_THROW:
case RTN_UNREACHABLE:
default:
-@@ -2613,6 +2635,17 @@ static int ip6_pkt_prohibit_out(struct n
+@@ -2610,6 +2632,17 @@ static int ip6_pkt_prohibit_out(struct n
return ip6_pkt_drop(skb, ICMPV6_ADM_PROHIBITED, 
IPSTATS_MIB_OUTNOROUTES);
   }
   
@@ -171,7 +171,7 @@ Signed-off-by: Jonas Gorski 

   /*
*   Allocate a dst for local (unicast / anycast) address.
*/
-@@ -2850,7 +2883,8 @@ static int rtm_to_fib6_config(struct sk_
+@@ -2847,7 +2880,8 @@ static int rtm_to_fib6_config(struct sk_
if (rtm->rtm_type == RTN_UNREACHABLE ||
rtm->rtm_type == RTN_BLACKHOLE ||
rtm->rtm_type == RTN_PROHIBIT ||
@@ -181,7 +181,7 @@ Signed-off-by: Jonas Gorski 
cfg->fc_flags |= RTF_REJECT;
   
   	if (rtm->rtm_type == RTN_LOCAL)

-@@ -3222,6 +3256,9 @@ static int rt6_fill_node(struct net *net
+@@ -3219,6 +3253,9 @@ static int rt6_fill_node(struct net *net
case -EACCES:

[OpenWrt-Devel] [PATCH 2/2] kernel: bump 4.14 to 4.14.52

2018-06-27 Thread Koen Vandeputte
Refreshed all patches

Compile-tested on: cns3xxx, imx6, x86_64
Runtime-tested on: cns3xxx, imx6, x86_64

Signed-off-by: Koen Vandeputte 
---
 include/kernel-version.mk|  4 ++--
 ...-cleanup-offload-hooks-on-netdev-unregister.patch |  9 ++---
 ...loc_node_mem_map-with-ARCH_PFN_OFFSET-calcu.patch |  2 +-
 ...rejecting-with-source-address-failed-policy.patch | 20 ++--
 .../generic/pending-4.14/834-ledtrig-libata.patch|  8 
 ...3-spi-nor-enable-4B-opcodes-for-mx25l25635f.patch |  6 ++
 .../0225-arm-dts-Add-missing-mt7623-pcie-nodes.patch |  7 +--
 .../0226-phy-phy-mtk-tphy-Add-hifsys-support.patch   | 17 ++---
 .../0227-arm-dts-Add-Unielec-U7623-DTS.patch | 11 ---
 .../linux/oxnas/patches-4.14/999-libata-hacks.patch  |  4 ++--
 10 files changed, 30 insertions(+), 58 deletions(-)

diff --git a/include/kernel-version.mk b/include/kernel-version.mk
index 3ab0316056e4..641b65258fab 100644
--- a/include/kernel-version.mk
+++ b/include/kernel-version.mk
@@ -4,13 +4,13 @@ LINUX_RELEASE?=1
 
 LINUX_VERSION-3.18 = .71
 LINUX_VERSION-4.4 = .121
-LINUX_VERSION-4.14 = .51
 LINUX_VERSION-4.9 = .110
+LINUX_VERSION-4.14 = .52
 
 LINUX_KERNEL_HASH-3.18.71 = 
5abc9778ad44ce02ed6c8ab52ece8a21c6d20d21f6ed8a19287b4a38a50c1240
 LINUX_KERNEL_HASH-4.4.121 = 
44a88268b5088dc326b30c9b9133ac35a9a200b636b7268d08f32abeae6ca729
-LINUX_KERNEL_HASH-4.14.51 = 
dab2402baa2444348f9b3c354e8f65382a466d1766942a57441209f9a2df972b
 LINUX_KERNEL_HASH-4.9.110 = 
379a143a70a79f0eea6c9f6638942b65e6043abdde17ad23264c0abd93c4ea7a
+LINUX_KERNEL_HASH-4.14.52 = 
a5d226c7b2fd1eb0f01d56e4e2c6a0100784b68df907cc7317f32bde34f88810
 
 remove_uri_prefix=$(subst git://,,$(subst http://,,$(subst https://,,$(1
 sanitize_uri=$(call qstrip,$(subst @,_,$(subst :,_,$(subst .,_,$(subst 
-,_,$(subst /,_,$(1)))
diff --git 
a/target/linux/generic/hack-4.14/940-cleanup-offload-hooks-on-netdev-unregister.patch
 
b/target/linux/generic/hack-4.14/940-cleanup-offload-hooks-on-netdev-unregister.patch
index 7b0b234722ae..6638a5e9498d 100644
--- 
a/target/linux/generic/hack-4.14/940-cleanup-offload-hooks-on-netdev-unregister.patch
+++ 
b/target/linux/generic/hack-4.14/940-cleanup-offload-hooks-on-netdev-unregister.patch
@@ -37,11 +37,9 @@ Signed-off-by: Chen Minqiang 
  net/netfilter/xt_FLOWOFFLOAD.c | 32 
  1 file changed, 32 insertions(+)
 
-diff --git a/net/netfilter/xt_FLOWOFFLOAD.c b/net/netfilter/xt_FLOWOFFLOAD.c
-index ab6259e..3bea08e 100644
 --- a/net/netfilter/xt_FLOWOFFLOAD.c
 +++ b/net/netfilter/xt_FLOWOFFLOAD.c
-@@ -337,10 +337,41 @@ static void xt_flowoffload_table_cleanup(struct 
nf_flowtable *table)
+@@ -340,10 +340,41 @@ static void xt_flowoffload_table_cleanup
nf_flow_table_free(table);
  }
  
@@ -83,7 +81,7 @@ index ab6259e..3bea08e 100644
INIT_DELAYED_WORK(_work, xt_flowoffload_hook_work);
  
ret = xt_flowoffload_table_init(_flowtable);
-@@ -358,6 +389,7 @@ static void __exit xt_flowoffload_tg_exit(void)
+@@ -361,6 +392,7 @@ static void __exit xt_flowoffload_tg_exi
  {
xt_unregister_target(_tg_reg);
xt_flowoffload_table_cleanup(_flowtable);
@@ -91,6 +89,3 @@ index ab6259e..3bea08e 100644
  }
  
  MODULE_LICENSE("GPL");
--- 
-2.17.0
-
diff --git 
a/target/linux/generic/pending-4.14/120-Fix-alloc_node_mem_map-with-ARCH_PFN_OFFSET-calcu.patch
 
b/target/linux/generic/pending-4.14/120-Fix-alloc_node_mem_map-with-ARCH_PFN_OFFSET-calcu.patch
index 5ee89be5ad3f..44e7fa70a3a7 100644
--- 
a/target/linux/generic/pending-4.14/120-Fix-alloc_node_mem_map-with-ARCH_PFN_OFFSET-calcu.patch
+++ 
b/target/linux/generic/pending-4.14/120-Fix-alloc_node_mem_map-with-ARCH_PFN_OFFSET-calcu.patch
@@ -71,7 +71,7 @@ Signed-off-by: Tobias Wolf 
 
 --- a/mm/page_alloc.c
 +++ b/mm/page_alloc.c
-@@ -6147,7 +6147,7 @@ static void __ref alloc_node_mem_map(str
+@@ -6146,7 +6146,7 @@ static void __ref alloc_node_mem_map(str
mem_map = NODE_DATA(0)->node_mem_map;
  #if defined(CONFIG_HAVE_MEMBLOCK_NODE_MAP) || defined(CONFIG_FLATMEM)
if (page_to_pfn(mem_map) != pgdat->node_start_pfn)
diff --git 
a/target/linux/generic/pending-4.14/670-ipv6-allow-rejecting-with-source-address-failed-policy.patch
 
b/target/linux/generic/pending-4.14/670-ipv6-allow-rejecting-with-source-address-failed-policy.patch
index 7e7a6a44e289..74baa80cdd3f 100644
--- 
a/target/linux/generic/pending-4.14/670-ipv6-allow-rejecting-with-source-address-failed-policy.patch
+++ 
b/target/linux/generic/pending-4.14/670-ipv6-allow-rejecting-with-source-address-failed-policy.patch
@@ -141,7 +141,7 @@ Signed-off-by: Jonas Gorski 
  static const struct rt6_info ip6_blk_hole_entry_template = {
.dst = {
.__refcnt   = ATOMIC_INIT(1),
-@@ -2046,6 +2063,11 @@ static struct rt6_info *ip6_route_info_c
+@@ -2043,6 +2060,11 @@ static struct rt6_info *ip6_route_info_c
rt->dst.output = 

[OpenWrt-Devel] [PATCH v2 1/2 netifd] system-linux: add 2.5 and 10G interface speed definitions

2018-06-27 Thread jwh
From: Joe Holden 

Signed-off-by: Joe Holden 
---
 system-linux.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/system-linux.c b/system-linux.c
index 0127b01..1330ea1 100644
--- a/system-linux.c
+++ b/system-linux.c
@@ -1688,6 +1688,8 @@ static const struct {
{ ADVERTISED_100baseT_Full, "100F" },
{ ADVERTISED_1000baseT_Half, "1000H" },
{ ADVERTISED_1000baseT_Full, "1000F" },
+   { ADVERTISED_2500baseX_Full, "2500F" },
+   { ADVERTISED_1baseT_Full, "1F" },
 };
 
 static void system_add_link_modes(struct blob_buf *b, __u32 mask)
-- 
2.18.0


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH v2 2/2 netifd] system-linux: add autoneg and link-partner output

2018-06-27 Thread jwh
From: Joe Holden 

This adds an array that contains the link modes advertised by the other device 
and also
indicates whether auto negotiation is true or false.

link-partner may or may not be populated depending on hardware, driver and/or 
settings.

Signed-off-by: Joe Holden 
---
 system-linux.c | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/system-linux.c b/system-linux.c
index 1330ea1..362e06d 100644
--- a/system-linux.c
+++ b/system-linux.c
@@ -1730,6 +1730,10 @@ system_if_dump_info(struct device *dev, struct blob_buf 
*b)
system_add_link_modes(b, ecmd.advertising);
blobmsg_close_array(b, c);
 
+   c = blobmsg_open_array(b, "link-partner");
+   system_add_link_modes(b, ecmd.lp_advertising);
+   blobmsg_close_array(b, c);
+
c = blobmsg_open_array(b, "link-supported");
system_add_link_modes(b, ecmd.supported);
blobmsg_close_array(b, c);
@@ -1738,6 +1742,8 @@ system_if_dump_info(struct device *dev, struct blob_buf 
*b)
snprintf(s, 8, "%d%c", ethtool_cmd_speed(),
ecmd.duplex == DUPLEX_HALF ? 'H' : 'F');
blobmsg_add_string_buffer(b);
+
+   blobmsg_add_u8(b, "autoneg", !!ecmd.autoneg);
}
 
return 0;
-- 
2.18.0


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 1/2] kernel: bump 4.9 to 4.9.110

2018-06-27 Thread Koen Vandeputte
Refreshed all patches

Compile-tested on: ar71xx
Runtime-tested on: ar71xx

Signed-off-by: Koen Vandeputte 
---
 include/kernel-version.mk|  4 ++--
 .../ar71xx/patches-4.9/500-MIPS-fw-myloader.patch|  2 +-
 .../generic/pending-4.9/308-mips32r2_tune.patch  |  2 +-
 ...rejecting-with-source-address-failed-policy.patch | 20 ++--
 .../generic/pending-4.9/834-ledtrig-libata.patch |  8 
 5 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/include/kernel-version.mk b/include/kernel-version.mk
index 52a8433ec6cb..3ab0316056e4 100644
--- a/include/kernel-version.mk
+++ b/include/kernel-version.mk
@@ -4,13 +4,13 @@ LINUX_RELEASE?=1
 
 LINUX_VERSION-3.18 = .71
 LINUX_VERSION-4.4 = .121
-LINUX_VERSION-4.9 = .109
 LINUX_VERSION-4.14 = .51
+LINUX_VERSION-4.9 = .110
 
 LINUX_KERNEL_HASH-3.18.71 = 
5abc9778ad44ce02ed6c8ab52ece8a21c6d20d21f6ed8a19287b4a38a50c1240
 LINUX_KERNEL_HASH-4.4.121 = 
44a88268b5088dc326b30c9b9133ac35a9a200b636b7268d08f32abeae6ca729
-LINUX_KERNEL_HASH-4.9.109 = 
3dcd5654a553432119492b69e649c4ed117781bfd571edcb02346c945be359b0
 LINUX_KERNEL_HASH-4.14.51 = 
dab2402baa2444348f9b3c354e8f65382a466d1766942a57441209f9a2df972b
+LINUX_KERNEL_HASH-4.9.110 = 
379a143a70a79f0eea6c9f6638942b65e6043abdde17ad23264c0abd93c4ea7a
 
 remove_uri_prefix=$(subst git://,,$(subst http://,,$(subst https://,,$(1
 sanitize_uri=$(call qstrip,$(subst @,_,$(subst :,_,$(subst .,_,$(subst 
-,_,$(subst /,_,$(1)))
diff --git a/target/linux/ar71xx/patches-4.9/500-MIPS-fw-myloader.patch 
b/target/linux/ar71xx/patches-4.9/500-MIPS-fw-myloader.patch
index 301422a7d8a1..304fd69b2262 100644
--- a/target/linux/ar71xx/patches-4.9/500-MIPS-fw-myloader.patch
+++ b/target/linux/ar71xx/patches-4.9/500-MIPS-fw-myloader.patch
@@ -1,6 +1,6 @@
 --- a/arch/mips/Makefile
 +++ b/arch/mips/Makefile
-@@ -213,6 +213,7 @@ cflags-$(toolchain-virt)   += -DTOOLCHAIN
+@@ -218,6 +218,7 @@ cflags-$(toolchain-virt)   += -DTOOLCHAIN
  #
  libs-$(CONFIG_FW_ARC) += arch/mips/fw/arc/
  libs-$(CONFIG_FW_CFE) += arch/mips/fw/cfe/
diff --git a/target/linux/generic/pending-4.9/308-mips32r2_tune.patch 
b/target/linux/generic/pending-4.9/308-mips32r2_tune.patch
index 63cf576bd898..9e1efe2713e1 100644
--- a/target/linux/generic/pending-4.9/308-mips32r2_tune.patch
+++ b/target/linux/generic/pending-4.9/308-mips32r2_tune.patch
@@ -11,7 +11,7 @@ Signed-off-by: Felix Fietkau 
 
 --- a/arch/mips/Makefile
 +++ b/arch/mips/Makefile
-@@ -148,7 +148,7 @@ cflags-$(CONFIG_CPU_R4X00) += -march=r46
+@@ -153,7 +153,7 @@ cflags-$(CONFIG_CPU_R4X00) += -march=r46
  cflags-$(CONFIG_CPU_TX49XX)   += -march=r4600 -Wa,--trap
  cflags-$(CONFIG_CPU_MIPS32_R1)+= $(call 
cc-option,-march=mips32,-mips32 -U_MIPS_ISA -D_MIPS_ISA=_MIPS_ISA_MIPS32) \
-Wa,-mips32 -Wa,--trap
diff --git 
a/target/linux/generic/pending-4.9/670-ipv6-allow-rejecting-with-source-address-failed-policy.patch
 
b/target/linux/generic/pending-4.9/670-ipv6-allow-rejecting-with-source-address-failed-policy.patch
index 2cebf55a447b..4757e81ea114 100644
--- 
a/target/linux/generic/pending-4.9/670-ipv6-allow-rejecting-with-source-address-failed-policy.patch
+++ 
b/target/linux/generic/pending-4.9/670-ipv6-allow-rejecting-with-source-address-failed-policy.patch
@@ -141,7 +141,7 @@ Signed-off-by: Jonas Gorski 
  static const struct rt6_info ip6_blk_hole_entry_template = {
.dst = {
.__refcnt   = ATOMIC_INIT(1),
-@@ -1970,6 +1987,11 @@ static struct rt6_info *ip6_route_info_c
+@@ -1967,6 +1984,11 @@ static struct rt6_info *ip6_route_info_c
rt->dst.output = ip6_pkt_prohibit_out;
rt->dst.input = ip6_pkt_prohibit;
break;
@@ -153,7 +153,7 @@ Signed-off-by: Jonas Gorski 
case RTN_THROW:
case RTN_UNREACHABLE:
default:
-@@ -2613,6 +2635,17 @@ static int ip6_pkt_prohibit_out(struct n
+@@ -2610,6 +2632,17 @@ static int ip6_pkt_prohibit_out(struct n
return ip6_pkt_drop(skb, ICMPV6_ADM_PROHIBITED, 
IPSTATS_MIB_OUTNOROUTES);
  }
  
@@ -171,7 +171,7 @@ Signed-off-by: Jonas Gorski 
  /*
   *Allocate a dst for local (unicast / anycast) address.
   */
-@@ -2850,7 +2883,8 @@ static int rtm_to_fib6_config(struct sk_
+@@ -2847,7 +2880,8 @@ static int rtm_to_fib6_config(struct sk_
if (rtm->rtm_type == RTN_UNREACHABLE ||
rtm->rtm_type == RTN_BLACKHOLE ||
rtm->rtm_type == RTN_PROHIBIT ||
@@ -181,7 +181,7 @@ Signed-off-by: Jonas Gorski 
cfg->fc_flags |= RTF_REJECT;
  
if (rtm->rtm_type == RTN_LOCAL)
-@@ -3222,6 +3256,9 @@ static int rt6_fill_node(struct net *net
+@@ -3219,6 +3253,9 @@ static int rt6_fill_node(struct net *net
case -EACCES:
rtm->rtm_type = RTN_PROHIBIT;
break;
@@ -191,7 +191,7 @@ Signed-off-by: Jonas Gorski 

Re: [OpenWrt-Devel] [PATCH v2 1/2 netifd] system-linux: add 2.5 and 10G interface speed definitions

2018-06-27 Thread Joe Holden
On 28/06/2018 00:01, Alberto Bursi wrote:
> 
> 
> On 27/06/2018 23:14, j...@corp.connectbit.io wrote:
>> From: Joe Holden 
>>
>> Signed-off-by: Joe Holden 
>> ---
>>   system-linux.c | 2 ++
>>   1 file changed, 2 insertions(+)
>>
>> diff --git a/system-linux.c b/system-linux.c
>> index 0127b01..1330ea1 100644
>> --- a/system-linux.c
>> +++ b/system-linux.c
>> @@ -1688,6 +1688,8 @@ static const struct {
>>  { ADVERTISED_100baseT_Full, "100F" },
>>  { ADVERTISED_1000baseT_Half, "1000H" },
>>  { ADVERTISED_1000baseT_Full, "1000F" },
>> +{ ADVERTISED_2500baseX_Full, "2500F" },
>> +{ ADVERTISED_1baseT_Full, "1F" },
>>   };
>>   
>>   static void system_add_link_modes(struct blob_buf *b, __u32 mask)
>>
> 
> Is there a reason you didn't include the 5GbE too?
> Afaik most consumer cards can do that too, and it is faster than 2.5.
> There are some cards that do only up to 5GbE.
> https://www.anandtech.com/show/11368/aquantia-launch-aqtion-5g25g1g-nics
> 
> (and note that I can find these cards on sale currently, also the 5GbE one)
> 
> -Alberto
> 

After a cursory look over supported hardware, I didn't see any off the
shelf 5G devices (haven't seen 5G in the wild yet either) - no actual
reason for not including it I guess

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] Archer C7 v2 with Target System "Atheros ATH79 (DTS)" or "Atheros AR7xxx/AR9xxx"

2018-06-27 Thread e9hack
Hi,

I'm using an Archer C7 v2 from TP-Link. Usually I build the image for Target 
System "Atheros AR7xxx/AR9xxx". If I switch
over to "Atheros ATH79 (DTS)" and try to update my router, I got the following 
error message:

root@:~# sysupgrade 
/tmp/openwrt-ath79-generic-tl-archer-c7-v2-squashfs-sysupgrade-d180627.bin &
root@:~# Device archer-c7 not supported by this image
Supported devices: tplink,tl-archer-c7-v2
Image check 'fwtool_check_image' failed.

Is Target System "Atheros ATH79 (DTS)" for Target Profile "TP-LINK Archer C7 
v2" not compatible with Target System
"Atheros AR7xxx/AR9xxx" for the same Target Profile?

Regards,
Hartmut


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Archer C7 v2 with Target System "Atheros ATH79 (DTS)" or "Atheros AR7xxx/AR9xxx"

2018-06-27 Thread Lucian Cristian

On 28.06.2018 00:56, e9hack wrote:

Hi,

I'm using an Archer C7 v2 from TP-Link. Usually I build the image for Target System 
"Atheros AR7xxx/AR9xxx". If I switch
over to "Atheros ATH79 (DTS)" and try to update my router, I got the following 
error message:

root@:~# sysupgrade 
/tmp/openwrt-ath79-generic-tl-archer-c7-v2-squashfs-sysupgrade-d180627.bin &
root@:~# Device archer-c7 not supported by this image
Supported devices: tplink,tl-archer-c7-v2
Image check 'fwtool_check_image' failed.

Is Target System "Atheros ATH79 (DTS)" for Target Profile "TP-LINK Archer C7 
v2" not compatible with Target System
"Atheros AR7xxx/AR9xxx" for the same Target Profile?

Regards,
Hartmut


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


It may be that board name has changed, what's your cat 
/tmp/sysinfo/board_name ?


Now on ath79 should be tplink,tl-archer-c7-v2 so if doesn't match this 
is the problem


You can safely try with -F, but you'll be needed to recreate the 
/etc/config/wifreless file


Regards


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH v2 1/2 netifd] system-linux: add 2.5 and 10G interface speed definitions

2018-06-27 Thread Alberto Bursi




On 27/06/2018 23:14, j...@corp.connectbit.io wrote:

From: Joe Holden 

Signed-off-by: Joe Holden 
---
  system-linux.c | 2 ++
  1 file changed, 2 insertions(+)

diff --git a/system-linux.c b/system-linux.c
index 0127b01..1330ea1 100644
--- a/system-linux.c
+++ b/system-linux.c
@@ -1688,6 +1688,8 @@ static const struct {
{ ADVERTISED_100baseT_Full, "100F" },
{ ADVERTISED_1000baseT_Half, "1000H" },
{ ADVERTISED_1000baseT_Full, "1000F" },
+   { ADVERTISED_2500baseX_Full, "2500F" },
+   { ADVERTISED_1baseT_Full, "1F" },
  };
  
  static void system_add_link_modes(struct blob_buf *b, __u32 mask)




Is there a reason you didn't include the 5GbE too?
Afaik most consumer cards can do that too, and it is faster than 2.5.
There are some cards that do only up to 5GbE.
https://www.anandtech.com/show/11368/aquantia-launch-aqtion-5g25g1g-nics

(and note that I can find these cards on sale currently, also the 5GbE one)

-Alberto

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] ath79: port TP-Link TL-WR741ND v4 and TL-WR740ND v4

2018-06-27 Thread Rocco Folino
Hi Mathias,

Thanks for the review.

On Tue, Jun 26, 2018 at 06:36:23PM +0200, Mathias Kresin wrote:
> > +"tplink,tl-wr741nd-v4"|\
> > +"tplink,tl-wr740nd-v4")
> > +   ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
> > +   ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" 
> > "0x04"
> > +   ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" 
> > "0x08"
> > +   ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" 
> > "0x10"
> > +   ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" 
> > "0x02"
> > +   ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
> 
> Please use the linux,default-trigger devicetree property to set the
> phy0tpt trigger. Have a look at the existing ath79 dts files for
> examples.
> 

I'll fix it in the v2.

> > +   ;;
> > ;;
> >
> > +   "tplink,tl-wr741nd-v4"|\
> > +   "tplink,tl-wr740nd-v4")
> > +   ucidef_set_interfaces_lan_wan "eth0.1" "eth1"
> 
> ucidef_add_switch should already set the lan interface. A
> ucidef_set_interface_wan "eth1" should be sufficient here.
> 

I'll fix it in the v2.

> > +
> > +   memory@0 {
> > +   device_type = "memory";
> > +   reg = <0x0 0x200>;
> > +   };
> 
> The pending https://github.com/openwrt/openwrt/pull/1091 is about to
> remove all memory nodes in favour of the automatic memory detection.
> Would you please test if the correct of amount of memory is detected
> without the node. If so, the node can be removed.
> 

I confirm that the correct amount of memory is detected without the memory node.


Best,
Rocco

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] broken link

2018-06-27 Thread David Woodhouse
On Wed, 2018-06-27 at 00:52 +0200, Lev wrote:
> Please note that this link is broken:
> 
> https://lists.openwrt.org/listinfo/openwrt-devel

Should be fixed now. Thanks.

smime.p7s
Description: S/MIME cryptographic signature
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] broken link

2018-06-27 Thread David Woodhouse
On Wed, 2018-06-27 at 10:22 +0200, Juergen Kimmel wrote:
> No, it is not!

Sorry, I should have been clearer...

The mailing list config is fixed now, so it doesn't have a broken link
in the footer.

The previous broken link (without "mailman/" in it) remains broken.



smime.p7s
Description: S/MIME cryptographic signature
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] ath79: Add support for TL-WR740N/NDv2, TL-MR3220v1, TL-MR3420v1

2018-06-27 Thread Смирнов Дмитрий
Hello Mathias,

> Please use your full name here.
Fixed.

> To be honest, I don't like the ar7241_ap99.dtsi filename and I'm not
> sure if it really does make sense to use a dtsi here. For instance,
> only two of the boards have a usb led and your workaround is to move
> the usb led into an extra gpio led node. I prefer to have a complete
> gpio-leds in the dts files instead.

> The spi node from the dtsi is overwritten by one dts. In that case it
> shouldn't be added to dtsi. Instead each dts should have it's own spi
> node.

> While I love to remove redundant stuff, we need to keep an eye on
> maintainability/readability. I would like to ensure that we don't
> break something for the boards including the dtsif, we change
> something in the dtsi.

Sorry, but I had to use the dsti file (I renamed it to an readability name),
because it is suitable for three devices and to save space...
Like this https://patchwork.ozlabs.org/patch/928529/
(common dtsi for two devices)
By the way, what was the spi sdcard - its was my mod, and I deleted it
because in the original it is not present.
Sorry

> Full name here. as well
Fixed.

> ucidef_add_switch should already set the lan interface. A
> ucidef_set_interface_wan "eth1" should be sufficient here.
Fixed.
By the way, here is used eth0 as wan and eth1 as lan ports.
Otherwise it does not work...


> The pending https://github.com/openwrt/openwrt/pull/1091 is about to
> remove all memory nodes in favour of the automatic memory detection.
> Would you please test if the correct of amount of memory is detected
> without the node. If so, it can be removed.
Memory node was removed.

> Please remove the heartbeat trigger. Due to the led-status alias the
> led is used for status/diag signaling.
Fixed.

> Please use a proper tp-link:: label as well.
Fixed.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] ath79: Add support for TL-WR740N/NDv2, TL-MR3220v1, TL-MR3420v1

2018-06-27 Thread Смирнов Дмитрий
>From ba345cc5fe00775b279eda5af998cfbdc88e458e Mon Sep 17 00:00:00 2001
From: Dmytro Smyrnov 
Date: Tue, 26 Jun 2018 17:01:47 +0300
Subject: [PATCH] ath79: Add support for TP-LINK TL-WR841N/ND
 v7,TL-MR3220v1,TL-MR3420v1

Its common AP99(AR7241) platform with following devices:
TP-Link TL-WR841N/ND v7 (SoC AR7241 / Wifi AR9287 / without USB)
TP-Link TL-MR3220 v1 (SoC AR7241 / Wifi AR9285 / USB support)
TP-Link TL-MR3420 v1 (SoC AR7241 / Wifi AR9287 / USB support)

Patches has been Fixed and Updated.

Signed-off-by: Dmytro Smyrnov 
---
 .../ath79/base-files/etc/board.d/02_network   |   7 +
 .../etc/hotplug.d/firmware/10-ath9k-eeprom|   3 +
 target/linux/ath79/dts/ar7241_ap99.dtsi   | 144 +++
 .../linux/ath79/dts/ar7241_tl-mr3220-v1.dts   |  14 ++
 .../linux/ath79/dts/ar7241_tl-mr3420-v1.dts   |   9 +
 .../dts/ar7241_tl-mr3x20-v1_tl-wr841-v7.dtsi  | 166 ++
 target/linux/ath79/dts/ar7241_tl-wr841-v7.dts |  28 +++
 target/linux/ath79/image/tiny-tp-link.mk  |  29 +++
 8 files changed, 400 insertions(+)
 create mode 100644 target/linux/ath79/dts/ar7241_ap99.dtsi
 create mode 100644 target/linux/ath79/dts/ar7241_tl-mr3220-v1.dts
 create mode 100644 target/linux/ath79/dts/ar7241_tl-mr3420-v1.dts
 create mode 100644 target/linux/ath79/dts/ar7241_tl-mr3x20-v1_tl-wr841-v7.dtsi
 create mode 100644 target/linux/ath79/dts/ar7241_tl-wr841-v7.dts

diff --git a/target/linux/ath79/base-files/etc/board.d/02_network 
b/target/linux/ath79/base-files/etc/board.d/02_network
index e2a45b0526..cf0f406d25 100755
--- a/target/linux/ath79/base-files/etc/board.d/02_network
+++ b/target/linux/ath79/base-files/etc/board.d/02_network
@@ -98,6 +98,13 @@ ath79_setup_interfaces()
ucidef_add_switch "switch0" \
"0@eth0" "3:lan:1" "5:lan:2" "4:wan"
;;
+   "tplink,tl-wr841-v7"|\
+   "tplink,tl-mr3220-v1"|\
+   "tplink,tl-mr3420-v1")
+   ucidef_set_interfaces_wan "eth0"
+   ucidef_add_switch "switch0" \
+   "0@eth1" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1"
+   ;;
*)
ucidef_set_interfaces_lan_wan "eth0" "eth1"
;;
diff --git 
a/target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom 
b/target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom
index 7023fa5e58..e5e2b1f8d3 100644
--- a/target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom
+++ b/target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom
@@ -54,6 +54,9 @@ case "$FIRMWARE" in
"tplink,tl-wdr4300")
ath9k_eeprom_extract "art" 20480 1088
;;
+   "tplink,tl-wr841-v7"|\
+   "tplink,tl-mr3220-v1"|\
+   "tplink,tl-mr3420-v1"|\
"netgear,wnr612-v2"|\
"on,n150r"|\
"tplink,tl-wr740n-v2"|\
diff --git a/target/linux/ath79/dts/ar7241_ap99.dtsi 
b/target/linux/ath79/dts/ar7241_ap99.dtsi
new file mode 100644
index 00..d3834b4915
--- /dev/null
+++ b/target/linux/ath79/dts/ar7241_ap99.dtsi
@@ -0,0 +1,144 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+
+#include 
+#include 
+
+#include "ar7241.dtsi"
+
+/ {
+   aliases {
+   led-status = _system;
+   };
+
+   memory@0 {
+   device_type = "memory";
+   reg = <0x0 0x200>;
+   };
+
+   gpio-keys-polled {
+   compatible = "gpio-keys-polled";
+   #address-cells = <1>;
+   #size-cells = <0>;
+   poll-interval = <20>;
+
+   reset {
+   label = "reset";
+   linux,code = ;
+   gpios = < 11 GPIO_ACTIVE_LOW>;
+   debounce-interval = <60>;
+   };
+
+   qss {
+   label = "qss";
+   linux,code = ;
+   gpios = < 12 GPIO_ACTIVE_LOW>;
+   debounce-interval = <60>;
+   };
+   };
+
+   gpio-leds {
+   compatible = "gpio-leds";
+
+   led_system: system {
+   label = "tp-link:green:system";
+   gpios = < 1 GPIO_ACTIVE_LOW>;
+   linux,default-trigger = "heartbeat";
+   };
+
+   qss {
+   label = "tp-link:green:qss";
+   gpios = < 0 GPIO_ACTIVE_LOW>;
+   };
+   };
+
+   ath9k-leds {
+   compatible = "gpio-leds";
+
+   wlan {
+   label = "ath9k-phy0";
+   gpios = < 0 GPIO_ACTIVE_LOW>;
+   default-state = "off";
+   linux,default-trigger = "phy0tpt";
+   };
+   };
+};
+
+ {
+   status = "okay";
+   num-cs = <1>;
+
+   flash@0 {
+   #address-cells = <1>;
+   #size-cells = <1>;
+   compatible =