[PATCH] Adds support for WR841n-v11
Tobias Klaus
tk+ff at meskal.net
Sa Apr 23 19:18:35 CEST 2016
* adds openwrt patch
* adds networkconfig
power-LED is not working
Signed-off-by: Tobias Klaus <tk+ff at meskal.net>
---
.../root_file_system/etc/network.tl-wr841n-v11 | 11 +++++
bsp/board_ar71xx.bsp | 1 +
bsp/default/root_file_system/etc/rc.local.tpl | 1 +
.../0006-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/0006-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 4c406ca..e246dc4 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-wr841n-v8-squashfs-sysupgrade.bin"
"openwrt-ar71xx-generic-tl-wr841n-v9-squashfs-sysupgrade.bin"
"openwrt-ar71xx-generic-tl-wr841n-v10-squashfs-sysupgrade.bin"
+ "openwrt-ar71xx-generic-tl-wr841n-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/0006-ar71xx-Add-TL-WR841N-ND-v11-support.patch b/build_patches/openwrt/0006-ar71xx-Add-TL-WR841N-ND-v11-support.patch
new file mode 100644
index 0000000..7b0bc61
--- /dev/null
+++ b/build_patches/openwrt/0006-ar71xx-Add-TL-WR841N-ND-v11-support.patch
@@ -0,0 +1,47 @@
+From d71d620ac7d5a496bc7be16f9f1046d9c6133d14 Mon Sep 17 00:00:00 2001
+From: blogic <blogic at 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 at 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 0cc142d..2526ae5 100644
+--- target/linux/ar71xx/image/Makefile
++++ target/linux/ar71xx/image/Makefile
+@@ -577,6 +577,13 @@ define Device/tl-wr841n-v10
+ TPLINK_HWID := 0x08410010
+ endef
+
++define Device/tl-wr841n-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-wr841n-v8 tl-wr841n-v9 tl-wr841n-v10 tl-wr842n-v2 tl-wr843nd-v1 tl-wr847n-v8
++TARGET_DEVICES += tl-wr841n-v8 tl-wr841n-v9 tl-wr841n-v10 tl-wr841n-v11 tl-wr842n-v2 tl-wr843nd-v1 tl-wr847n-v8
+
+ define Device/tl-wr941nd-v5
+ $(Device/tplink-4mlzma)
--
2.8.1
Mehr Informationen über die Mailingliste franken-dev