[3/3] Adds support for WR841-v11

Submitted by Tobias Klaus on April 22, 2016, 3:22 p.m.

Details

Message ID 1461338538-4439-4-git-send-email-tk+ff@meskal.net
State Rejected, archived
Headers show

Commit Message

Tobias Klaus April 22, 2016, 3:22 p.m.
From: Tobias Klaus <tk@meskal.net>

* adds openwrt patch
* adds networkconfig

power-LED is not working

Signed-off-by: Tobias Klaus <tk+ff@meskal.net>
Tested-by: Johannes Müller <freifunk@ebern.de>
Tested-by: tian81 <tian81@arcor.de>
---
 .../root_file_system/etc/network.tl-wr841n-v11     | 11 +++++
 bsp/board_ar71xx.bsp                               |  1 +
 bsp/default/root_file_system/etc/rc.local.tpl      |  1 +
 .../0005-ar71xx-Add-TL-WR841N-ND-v11-support.patch | 47 ++++++++++++++++++++++
 4 files changed, 60 insertions(+)
 create mode 100644 bsp/ar71xx/root_file_system/etc/network.tl-wr841n-v11
 create mode 100644 build_patches/openwrt/0005-ar71xx-Add-TL-WR841N-ND-v11-support.patch

Patch hide | download patch | download mbox

diff --git a/bsp/ar71xx/root_file_system/etc/network.tl-wr841n-v11 b/bsp/ar71xx/root_file_system/etc/network.tl-wr841n-v11
new file mode 100644
index 0000000..02cefd8
--- /dev/null
+++ b/bsp/ar71xx/root_file_system/etc/network.tl-wr841n-v11
@@ -0,0 +1,11 @@ 
+
+WANDEV=eth1
+# WANDEV=eth0
+SWITCHDEV=eth0
+CLIENT_PORTS="1 2 0t"
+WAN_PORTS=
+BATMAN_PORTS="3 4 0t"
+
+CLIENTIF="eth0.1 w2ap"
+ETHMESHMAC=eth1
+ROUTERMAC=eth0
diff --git a/bsp/board_ar71xx.bsp b/bsp/board_ar71xx.bsp
index ea94acd..6270ed3 100644
--- a/bsp/board_ar71xx.bsp
+++ b/bsp/board_ar71xx.bsp
@@ -10,6 +10,7 @@  images=("openwrt-ar71xx-generic-ubnt-nano-m-squashfs-sysupgrade.bin"
         "openwrt-ar71xx-generic-tl-wr841-v8-squashfs-sysupgrade.bin"
         "openwrt-ar71xx-generic-tl-wr841-v9-squashfs-sysupgrade.bin"
         "openwrt-ar71xx-generic-tl-wr841-v10-squashfs-sysupgrade.bin"
+        "openwrt-ar71xx-generic-tl-wr841-v11-squashfs-sysupgrade.bin"
         "openwrt-ar71xx-generic-tl-wr842n-v2-squashfs-sysupgrade.bin"
         "openwrt-ar71xx-generic-tl-wr1043nd-v1-squashfs-sysupgrade.bin"
         "openwrt-ar71xx-generic-tl-wr1043nd-v2-squashfs-sysupgrade.bin"
diff --git a/bsp/default/root_file_system/etc/rc.local.tpl b/bsp/default/root_file_system/etc/rc.local.tpl
index 73f0709..cb8aa04 100755
--- a/bsp/default/root_file_system/etc/rc.local.tpl
+++ b/bsp/default/root_file_system/etc/rc.local.tpl
@@ -22,6 +22,7 @@  case "$BOARD" in
         ;;
     tl-wr841n-v9)
         grep "v10" /var/sysinfo/model && BOARD=tl-wr841n-v10
+        grep "v11" /var/sysinfo/model && BOARD=tl-wr841n-v11
         ;;
     nanostation-m)
         BOARD=ubnt-nano-m
diff --git a/build_patches/openwrt/0005-ar71xx-Add-TL-WR841N-ND-v11-support.patch b/build_patches/openwrt/0005-ar71xx-Add-TL-WR841N-ND-v11-support.patch
new file mode 100644
index 0000000..0a65980
--- /dev/null
+++ b/build_patches/openwrt/0005-ar71xx-Add-TL-WR841N-ND-v11-support.patch
@@ -0,0 +1,47 @@ 
+From d71d620ac7d5a496bc7be16f9f1046d9c6133d14 Mon Sep 17 00:00:00 2001
+From: blogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
+Date: Fri, 1 Apr 2016 07:11:23 +0000
+Subject: [PATCH] ar71xx: Add TL-WR841N/ND v11 support
+
+This patch adds support for the TP-Link TL-WR841N/ND to trunk. It is
+similar to the already supported v10 - see [1]. I have added support
+based on that topic; in the meantime it has been confirmed working
+(see the forum thread, and also [2]).
+
+Signed-off by Stijn Segers <francesco.borromini@inventati.org>
+
+[1]: https://forum.openwrt.org/viewtopic.php?id=61309
+[2]: https://forum.openwrt.org/viewtopic.php?id=63657
+
+git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49099 3c298f89-4303-0410-b956-a3cf2f4a3e73
+---
+ target/linux/ar71xx/image/Makefile | 9 ++++++++-
+ 1 file changed, 8 insertions(+), 1 deletion(-)
+
+diff --git target/linux/ar71xx/image/Makefile target/linux/ar71xx/image/Makefile
+index fcf3853..eb3efb5 100644
+--- target/linux/ar71xx/image/Makefile
++++ target/linux/ar71xx/image/Makefile
+@@ -577,6 +577,13 @@ define Device/tl-wr841-v10
+     TPLINK_HWID := 0x08410010
+ endef
+ 
++define Device/tl-wr841-v11
++    $(Device/tplink-4mlzma)
++    BOARDNAME := TL-WR841N-v9
++    DEVICE_PROFILE := TLWR841
++    TPLINK_HWID := 0x08410011
++endef
++
+ define Device/tl-wr842n-v2
+     $(Device/tplink-8mlzma)
+     BOARDNAME := TL-WR842N-v2
+@@ -597,7 +604,7 @@ define Device/tl-wr847n-v8
+     DEVICE_PROFILE := TLWR841
+     TPLINK_HWID := 0x08470008
+ endef
+-TARGET_DEVICES += tl-wr841-v8 tl-wr841-v9 tl-wr841-v10 tl-wr842n-v2 tl-wr843nd-v1 tl-wr847n-v8
++TARGET_DEVICES += tl-wr841-v8 tl-wr841-v9 tl-wr841-v10 tl-wr841-v11 tl-wr842n-v2 tl-wr843nd-v1 tl-wr847n-v8
+ 
+ define Device/tl-wr941nd-v5
+     $(Device/tplink-4mlzma)

Comments

Jan Kraus April 22, 2016, 3:48 p.m.
Hi Tobias,

dieser Kommentar betrifft sowohl deinen Cover-Letter, Patch 2 und Patch
3:
Hier in Patch 3 fügst du in der rc.local eine Korrektur des BOARD Namen
auf wr841n ein. In Patch 2 bastelst du daran wiederum in der
sysupgrade.sh rum.
Ich würde folgendes vorschlagen:
Wir fixen in der rc.local einfach alle 841er auf den Namen ohne n. Da
mit dem neuen Namensschema noch keine Firmware released wurde, ist das
jetzt eigentlich noch egal, ob sich an den Namen vom 841 was ändert.

Aufgrund der Änderung vom Namensschema müssen wir in der Zwischenzeit
sowieso per Hand an den Namen schrauben und diese ablegen.
Dazu würde ich folgendes vorschlagen: Man nimmt das kommende Release und
legt es mit dem alten und dem neuen Namensschema ab. Alle weiteren nur
noch mit dem neuen. Das eine Release lässt man dann einfach liegen und
dokumentiert im Wiki das ab Version XYZ 2 mal ein sysupgrade
durchgeführt werden muss.
Ausnahme: Der Dezentrale KeyExchange (oder sonstige grobe
Kompatibilitätsbrüche) werden eingebaut, dann sollte man das alte
Namensschema ggf. nochmal austauschen.

Sobald man der Meinung ist, das die Restmenge unerheblich ist, kann man
das alte Schema komplett vergessen.

Viele Grüße
Jan 

Am Freitag, den 22.04.2016, 17:22 +0200 schrieb Tobias Klaus:
> From: Tobias Klaus <tk@meskal.net>
> 
> * adds openwrt patch
> * adds networkconfig
> 
> power-LED is not working
> 
> Signed-off-by: Tobias Klaus <tk+ff@meskal.net>
> Tested-by: Johannes Müller <freifunk@ebern.de>
> Tested-by: tian81 <tian81@arcor.de>
> ---
>  .../root_file_system/etc/network.tl-wr841n-v11     | 11 +++++
>  bsp/board_ar71xx.bsp                               |  1 +
>  bsp/default/root_file_system/etc/rc.local.tpl      |  1 +
>  .../0005-ar71xx-Add-TL-WR841N-ND-v11-support.patch | 47 ++++++++++++++++++++++
>  4 files changed, 60 insertions(+)
>  create mode 100644 bsp/ar71xx/root_file_system/etc/network.tl-wr841n-v11
>  create mode 100644 build_patches/openwrt/0005-ar71xx-Add-TL-WR841N-ND-v11-support.patch
> 
> diff --git a/bsp/ar71xx/root_file_system/etc/network.tl-wr841n-v11 b/bsp/ar71xx/root_file_system/etc/network.tl-wr841n-v11
> new file mode 100644
> index 0000000..02cefd8
> --- /dev/null
> +++ b/bsp/ar71xx/root_file_system/etc/network.tl-wr841n-v11
> @@ -0,0 +1,11 @@
> +
> +WANDEV=eth1
> +# WANDEV=eth0
> +SWITCHDEV=eth0
> +CLIENT_PORTS="1 2 0t"
> +WAN_PORTS=
> +BATMAN_PORTS="3 4 0t"
> +
> +CLIENTIF="eth0.1 w2ap"
> +ETHMESHMAC=eth1
> +ROUTERMAC=eth0
> diff --git a/bsp/board_ar71xx.bsp b/bsp/board_ar71xx.bsp
> index ea94acd..6270ed3 100644
> --- a/bsp/board_ar71xx.bsp
> +++ b/bsp/board_ar71xx.bsp
> @@ -10,6 +10,7 @@ images=("openwrt-ar71xx-generic-ubnt-nano-m-squashfs-sysupgrade.bin"
>          "openwrt-ar71xx-generic-tl-wr841-v8-squashfs-sysupgrade.bin"
>          "openwrt-ar71xx-generic-tl-wr841-v9-squashfs-sysupgrade.bin"
>          "openwrt-ar71xx-generic-tl-wr841-v10-squashfs-sysupgrade.bin"
> +        "openwrt-ar71xx-generic-tl-wr841-v11-squashfs-sysupgrade.bin"
>          "openwrt-ar71xx-generic-tl-wr842n-v2-squashfs-sysupgrade.bin"
>          "openwrt-ar71xx-generic-tl-wr1043nd-v1-squashfs-sysupgrade.bin"
>          "openwrt-ar71xx-generic-tl-wr1043nd-v2-squashfs-sysupgrade.bin"
> diff --git a/bsp/default/root_file_system/etc/rc.local.tpl b/bsp/default/root_file_system/etc/rc.local.tpl
> index 73f0709..cb8aa04 100755
> --- a/bsp/default/root_file_system/etc/rc.local.tpl
> +++ b/bsp/default/root_file_system/etc/rc.local.tpl
> @@ -22,6 +22,7 @@ case "$BOARD" in
>          ;;
>      tl-wr841n-v9)
>          grep "v10" /var/sysinfo/model && BOARD=tl-wr841n-v10
> +        grep "v11" /var/sysinfo/model && BOARD=tl-wr841n-v11
>          ;;
>      nanostation-m)
>          BOARD=ubnt-nano-m
> diff --git a/build_patches/openwrt/0005-ar71xx-Add-TL-WR841N-ND-v11-support.patch b/build_patches/openwrt/0005-ar71xx-Add-TL-WR841N-ND-v11-support.patch
> new file mode 100644
> index 0000000..0a65980
> --- /dev/null
> +++ b/build_patches/openwrt/0005-ar71xx-Add-TL-WR841N-ND-v11-support.patch
> @@ -0,0 +1,47 @@
> +From d71d620ac7d5a496bc7be16f9f1046d9c6133d14 Mon Sep 17 00:00:00 2001
> +From: blogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
> +Date: Fri, 1 Apr 2016 07:11:23 +0000
> +Subject: [PATCH] ar71xx: Add TL-WR841N/ND v11 support
> +
> +This patch adds support for the TP-Link TL-WR841N/ND to trunk. It is
> +similar to the already supported v10 - see [1]. I have added support
> +based on that topic; in the meantime it has been confirmed working
> +(see the forum thread, and also [2]).
> +
> +Signed-off by Stijn Segers <francesco.borromini@inventati.org>
> +
> +[1]: https://forum.openwrt.org/viewtopic.php?id=61309
> +[2]: https://forum.openwrt.org/viewtopic.php?id=63657
> +
> +git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49099 3c298f89-4303-0410-b956-a3cf2f4a3e73
> +---
> + target/linux/ar71xx/image/Makefile | 9 ++++++++-
> + 1 file changed, 8 insertions(+), 1 deletion(-)
> +
> +diff --git target/linux/ar71xx/image/Makefile target/linux/ar71xx/image/Makefile
> +index fcf3853..eb3efb5 100644
> +--- target/linux/ar71xx/image/Makefile
> ++++ target/linux/ar71xx/image/Makefile
> +@@ -577,6 +577,13 @@ define Device/tl-wr841-v10
> +     TPLINK_HWID := 0x08410010
> + endef
> + 
> ++define Device/tl-wr841-v11
> ++    $(Device/tplink-4mlzma)
> ++    BOARDNAME := TL-WR841N-v9
> ++    DEVICE_PROFILE := TLWR841
> ++    TPLINK_HWID := 0x08410011
> ++endef
> ++
> + define Device/tl-wr842n-v2
> +     $(Device/tplink-8mlzma)
> +     BOARDNAME := TL-WR842N-v2
> +@@ -597,7 +604,7 @@ define Device/tl-wr847n-v8
> +     DEVICE_PROFILE := TLWR841
> +     TPLINK_HWID := 0x08470008
> + endef
> +-TARGET_DEVICES += tl-wr841-v8 tl-wr841-v9 tl-wr841-v10 tl-wr842n-v2 tl-wr843nd-v1 tl-wr847n-v8
> ++TARGET_DEVICES += tl-wr841-v8 tl-wr841-v9 tl-wr841-v10 tl-wr841-v11 tl-wr842n-v2 tl-wr843nd-v1 tl-wr847n-v8
> + 
> + define Device/tl-wr941nd-v5
> +     $(Device/tplink-4mlzma)
> -- 
> 2.8.1
>
Tobias Klaus April 22, 2016, 4:01 p.m.
Hey Jan,

On Freitag, 22. April 2016 17:48:47 CEST mayosemmel wrote:
> Hi Tobias,
> 
> dieser Kommentar betrifft sowohl deinen Cover-Letter, Patch 2 und Patch
> 3:
> Hier in Patch 3 fügst du in der rc.local eine Korrektur des BOARD Namen
> auf wr841n ein. In Patch 2 bastelst du daran wiederum in der
> sysupgrade.sh rum.
Naja, das sind halt logisch 2 getrennte Änderungen und es soll jedes mal 
"konsistent" sein. Näheres einen Abschnitt weiter unten.

> Ich würde folgendes vorschlagen:
> Wir fixen in der rc.local einfach alle 841er auf den Namen ohne n. Da
> mit dem neuen Namensschema noch keine Firmware released wurde, ist das
> jetzt eigentlich noch egal, ob sich an den Namen vom 841 was ändert.
Das eklige an der Umbenennung ist, dass wirklich _nur_ der imagename geändert 
wurde. Die Variable BOARD bleibt faktisch genau so wie sie war. Deswegen gibts 
den "dateinamenhack" nur kurz bevor man nen Dateinamen braucht. Vielleicht 
sollte man da auch gleich eine neue Variable einführen.

> Aufgrund der Änderung vom Namensschema müssen wir in der Zwischenzeit
> sowieso per Hand an den Namen schrauben und diese ablegen.
> Dazu würde ich folgendes vorschlagen: Man nimmt das kommende Release und
> legt es mit dem alten und dem neuen Namensschema ab. Alle weiteren nur
> noch mit dem neuen.> Das eine Release lässt man dann einfach liegen und
> dokumentiert im Wiki das ab Version XYZ 2 mal ein sysupgrade
> durchgeführt werden muss.
Das Ganze über Doku zu lesen ist eigentlich recht gut. Anderseits würde man 
sich ja eh ein skript schreiben und könnte dann auch noch ne Weile beide 
Namensschemata parallel durchziehen. Das würde den Betreuungsaufwand 
reduzieren...


> Ausnahme: Der Dezentrale KeyExchange (oder sonstige grobe
> Kompatibilitätsbrüche) werden eingebaut, dann sollte man das alte
> Namensschema ggf. nochmal austauschen.
Auch ein guter Vorschlag :-)

> Sobald man der Meinung ist, das die Restmenge unerheblich ist, kann man
> das alte Schema komplett vergessen.
+1

Grüße und Danke fürs kommentieren!
Tobias

> Viele Grüße
> Jan
> 
> Am Freitag, den 22.04.2016, 17:22 +0200 schrieb Tobias Klaus:
> > From: Tobias Klaus <tk@meskal.net>
> > 
> > * adds openwrt patch
> > * adds networkconfig
> > 
> > power-LED is not working
> > 
> > Signed-off-by: Tobias Klaus <tk+ff@meskal.net>
> > Tested-by: Johannes Müller <freifunk@ebern.de>
> > Tested-by: tian81 <tian81@arcor.de>
> > ---
> > 
> >  .../root_file_system/etc/network.tl-wr841n-v11     | 11 +++++
> >  bsp/board_ar71xx.bsp                               |  1 +
> >  bsp/default/root_file_system/etc/rc.local.tpl      |  1 +
> >  .../0005-ar71xx-Add-TL-WR841N-ND-v11-support.patch | 47
> >  ++++++++++++++++++++++ 4 files changed, 60 insertions(+)
> >  create mode 100644 bsp/ar71xx/root_file_system/etc/network.tl-wr841n-v11
> >  create mode 100644
> >  build_patches/openwrt/0005-ar71xx-Add-TL-WR841N-ND-v11-support.patch> 
> > diff --git a/bsp/ar71xx/root_file_system/etc/network.tl-wr841n-v11
> > b/bsp/ar71xx/root_file_system/etc/network.tl-wr841n-v11 new file mode
> > 100644
> > index 0000000..02cefd8
> > --- /dev/null
> > +++ b/bsp/ar71xx/root_file_system/etc/network.tl-wr841n-v11
> > @@ -0,0 +1,11 @@
> > +
> > +WANDEV=eth1
> > +# WANDEV=eth0
> > +SWITCHDEV=eth0
> > +CLIENT_PORTS="1 2 0t"
> > +WAN_PORTS=
> > +BATMAN_PORTS="3 4 0t"
> > +
> > +CLIENTIF="eth0.1 w2ap"
> > +ETHMESHMAC=eth1
> > +ROUTERMAC=eth0
> > diff --git a/bsp/board_ar71xx.bsp b/bsp/board_ar71xx.bsp
> > index ea94acd..6270ed3 100644
> > --- a/bsp/board_ar71xx.bsp
> > +++ b/bsp/board_ar71xx.bsp
> > @@ -10,6 +10,7 @@
> > images=("openwrt-ar71xx-generic-ubnt-nano-m-squashfs-sysupgrade.bin"> 
> >          "openwrt-ar71xx-generic-tl-wr841-v8-squashfs-sysupgrade.bin"
> >          "openwrt-ar71xx-generic-tl-wr841-v9-squashfs-sysupgrade.bin"
> >          "openwrt-ar71xx-generic-tl-wr841-v10-squashfs-sysupgrade.bin"
> > 
> > +        "openwrt-ar71xx-generic-tl-wr841-v11-squashfs-sysupgrade.bin"
> > 
> >          "openwrt-ar71xx-generic-tl-wr842n-v2-squashfs-sysupgrade.bin"
> >          "openwrt-ar71xx-generic-tl-wr1043nd-v1-squashfs-sysupgrade.bin"
> >          "openwrt-ar71xx-generic-tl-wr1043nd-v2-squashfs-sysupgrade.bin"
> > 
> > diff --git a/bsp/default/root_file_system/etc/rc.local.tpl
> > b/bsp/default/root_file_system/etc/rc.local.tpl index 73f0709..cb8aa04
> > 100755
> > --- a/bsp/default/root_file_system/etc/rc.local.tpl
> > +++ b/bsp/default/root_file_system/etc/rc.local.tpl
> > @@ -22,6 +22,7 @@ case "$BOARD" in
> > 
> >          ;;
> >      
> >      tl-wr841n-v9)
> >      
> >          grep "v10" /var/sysinfo/model && BOARD=tl-wr841n-v10
> > 
> > +        grep "v11" /var/sysinfo/model && BOARD=tl-wr841n-v11
> > 
> >          ;;
> >      
> >      nanostation-m)
> >      
> >          BOARD=ubnt-nano-m
> > 
> > diff --git
> > a/build_patches/openwrt/0005-ar71xx-Add-TL-WR841N-ND-v11-support.patch
> > b/build_patches/openwrt/0005-ar71xx-Add-TL-WR841N-ND-v11-support.patch
> > new file mode 100644
> > index 0000000..0a65980
> > --- /dev/null
> > +++ b/build_patches/openwrt/0005-ar71xx-Add-TL-WR841N-ND-v11-support.patch
> > @@ -0,0 +1,47 @@
> > +From d71d620ac7d5a496bc7be16f9f1046d9c6133d14 Mon Sep 17 00:00:00 2001
> > +From: blogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
> > +Date: Fri, 1 Apr 2016 07:11:23 +0000
> > +Subject: [PATCH] ar71xx: Add TL-WR841N/ND v11 support
> > +
> > +This patch adds support for the TP-Link TL-WR841N/ND to trunk. It is
> > +similar to the already supported v10 - see [1]. I have added support
> > +based on that topic; in the meantime it has been confirmed working
> > +(see the forum thread, and also [2]).
> > +
> > +Signed-off by Stijn Segers <francesco.borromini@inventati.org>
> > +
> > +[1]: https://forum.openwrt.org/viewtopic.php?id=61309
> > +[2]: https://forum.openwrt.org/viewtopic.php?id=63657
> > +
> > +git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49099
> > 3c298f89-4303-0410-b956-a3cf2f4a3e73 +---
> > + target/linux/ar71xx/image/Makefile | 9 ++++++++-
> > + 1 file changed, 8 insertions(+), 1 deletion(-)
> > +
> > +diff --git target/linux/ar71xx/image/Makefile
> > target/linux/ar71xx/image/Makefile +index fcf3853..eb3efb5 100644
> > +--- target/linux/ar71xx/image/Makefile
> > ++++ target/linux/ar71xx/image/Makefile
> > +@@ -577,6 +577,13 @@ define Device/tl-wr841-v10
> > +     TPLINK_HWID := 0x08410010
> > + endef
> > +
> > ++define Device/tl-wr841-v11
> > ++    $(Device/tplink-4mlzma)
> > ++    BOARDNAME := TL-WR841N-v9
> > ++    DEVICE_PROFILE := TLWR841
> > ++    TPLINK_HWID := 0x08410011
> > ++endef
> > ++
> > + define Device/tl-wr842n-v2
> > +     $(Device/tplink-8mlzma)
> > +     BOARDNAME := TL-WR842N-v2
> > +@@ -597,7 +604,7 @@ define Device/tl-wr847n-v8
> > +     DEVICE_PROFILE := TLWR841
> > +     TPLINK_HWID := 0x08470008
> > + endef
> > +-TARGET_DEVICES += tl-wr841-v8 tl-wr841-v9 tl-wr841-v10 tl-wr842n-v2
> > tl-wr843nd-v1 tl-wr847n-v8 ++TARGET_DEVICES += tl-wr841-v8 tl-wr841-v9
> > tl-wr841-v10 tl-wr841-v11 tl-wr842n-v2 tl-wr843nd-v1 tl-wr847n-v8 +
> > + define Device/tl-wr941nd-v5
> > +     $(Device/tplink-4mlzma)