ath79/generic: add support for TP-Link WR710N v2.1

Submitted by Adrian Schmutzler on Aug. 18, 2020, 3:37 p.m.

Details

Message ID 20200818153709.57664-1-freifunk@adrianschmutzler.de
State Superseded
Headers show

Commit Message

Adrian Schmutzler Aug. 18, 2020, 3:37 p.m.
Flashing instructions:

The factory image needs to be uploaded via the OEM firmware GUI.

Notes:

The device is implemented as two-port in OpenWrt, i.e. it has
eth0/eth1 interfaces without switch setup. As our firmware currently
does not support that, this uses a switch setup with one port for
LAN.

The OpenWrt patch to support this device has been submitted.

Attention:

This only supports the v2.1 with has 8M flash. The v2.0 has 4M
flash and will be bricked if this images is installed (however,
the factory image is expected to be rejected by the OEM firmware).

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
---
 bsp/ath79-generic.bsp                                      | 1 +
 bsp/ath79-generic/.config                                  | 2 ++
 .../fff/fff-network/mips/network.tplink,tl-wr710n-v2.1     | 7 +++++++
 3 files changed, 10 insertions(+)
 create mode 100644 src/packages/fff/fff-network/mips/network.tplink,tl-wr710n-v2.1

Patch hide | download patch | download mbox

diff --git a/bsp/ath79-generic.bsp b/bsp/ath79-generic.bsp
index e6508127..eae618c2 100644
--- a/bsp/ath79-generic.bsp
+++ b/bsp/ath79-generic.bsp
@@ -18,6 +18,7 @@  images=("openwrt-${chipset}-${subtarget}-glinet_gl-ar150-squashfs-*"
         "openwrt-${chipset}-${subtarget}-tplink_tl-wr1043nd-v4-squashfs-*"
         "openwrt-${chipset}-${subtarget}-tplink_tl-wr1043n-v5-squashfs-*"
         "openwrt-${chipset}-${subtarget}-tplink_tl-wr710n-v1-squashfs-*"
+        "openwrt-${chipset}-${subtarget}-tplink_tl-wr710n-v2.1-squashfs-*"
         "openwrt-${chipset}-${subtarget}-tplink_tl-wr842n-v2-squashfs-*"
         "openwrt-${chipset}-${subtarget}-ubnt_bullet-m-squashfs-*"
         "openwrt-${chipset}-${subtarget}-ubnt_nanostation-loco-m-squashfs-*"
diff --git a/bsp/ath79-generic/.config b/bsp/ath79-generic/.config
index 029f57f1..e470b87d 100644
--- a/bsp/ath79-generic/.config
+++ b/bsp/ath79-generic/.config
@@ -40,6 +40,8 @@  CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_tplink_tl-wr1043n-v5=y
 CONFIG_TARGET_DEVICE_PACKAGES_ath79_generic_DEVICE_tplink_tl-wr1043n-v5=""
 CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_tplink_tl-wr710n-v1=y
 CONFIG_TARGET_DEVICE_PACKAGES_ath79_generic_DEVICE_tplink_tl-wr710n-v1=""
+CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_tplink_tl-wr710n-v2.1=y
+CONFIG_TARGET_DEVICE_PACKAGES_ath79_generic_DEVICE_tplink_tl-wr710n-v2.1=""
 CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_tplink_tl-wr842n-v2=y
 CONFIG_TARGET_DEVICE_PACKAGES_ath79_generic_DEVICE_tplink_tl-wr842n-v2=""
 CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_ubnt_bullet-m=y
diff --git a/src/packages/fff/fff-network/mips/network.tplink,tl-wr710n-v2.1 b/src/packages/fff/fff-network/mips/network.tplink,tl-wr710n-v2.1
new file mode 100644
index 00000000..66ab834e
--- /dev/null
+++ b/src/packages/fff/fff-network/mips/network.tplink,tl-wr710n-v2.1
@@ -0,0 +1,7 @@ 
+WANDEV=eth1
+SWITCHDEV=eth0
+CLIENT_PORTS="3 0t"
+WAN_PORTS=
+BATMAN_PORTS="0t"
+
+ROUTERMAC=$(cat /sys/class/ieee80211/phy0/macaddress)