From patchwork Fri Apr 22 15:22:18 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [3/3] Adds support for WR841-v11 From: Tobias Klaus X-Patchwork-Id: 86 Message-Id: <1461338538-4439-4-git-send-email-tk+ff@meskal.net> To: franken-dev@freifunk.net Cc: Tobias Klaus , Tobias Klaus Date: Fri, 22 Apr 2016 17:22:18 +0200 From: Tobias Klaus * adds openwrt patch * adds networkconfig power-LED is not working Signed-off-by: Tobias Klaus Tested-by: Johannes Müller Tested-by: tian81 --- .../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 +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 + +[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)