From 1cae99d5d52bfa7e19a1c4f3da55d8f1a7dadeae Mon Sep 17 00:00:00 2001 From: Fabian Eppig Date: Tue, 18 Aug 2020 11:58:23 +0000 Subject: [PATCH] ath79/generic: add support for TP-Link WR710N v1 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. Signed-off-by: Fabian Eppig [add commit message, apply alphetic sorting in bsp, remove config changes apart from adding CONFIG_TARGET_DEVICE] Signed-off-by: Adrian Schmutzler --- bsp/ath79-generic.bsp | 1 + bsp/ath79-generic/.config | 2 ++ .../fff/fff-network/mips/network.tplink,tl-wr710n-v1 | 7 +++++++ 3 files changed, 10 insertions(+) create mode 100644 src/packages/fff/fff-network/mips/network.tplink,tl-wr710n-v1 diff --git a/bsp/ath79-generic.bsp b/bsp/ath79-generic.bsp index 752bfdd..e650812 100644 --- a/bsp/ath79-generic.bsp +++ b/bsp/ath79-generic.bsp @@ -17,6 +17,7 @@ images=("openwrt-${chipset}-${subtarget}-glinet_gl-ar150-squashfs-*" "openwrt-${chipset}-${subtarget}-tplink_tl-wr1043nd-v3-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-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 1f25ae2..029f57f 100644 --- a/bsp/ath79-generic/.config +++ b/bsp/ath79-generic/.config @@ -38,6 +38,8 @@ CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_tplink_tl-wr1043nd-v4=y CONFIG_TARGET_DEVICE_PACKAGES_ath79_generic_DEVICE_tplink_tl-wr1043nd-v4="" 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-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-v1 b/src/packages/fff/fff-network/mips/network.tplink,tl-wr710n-v1 new file mode 100644 index 0000000..66ab834 --- /dev/null +++ b/src/packages/fff/fff-network/mips/network.tplink,tl-wr710n-v1 @@ -0,0 +1,7 @@ +WANDEV=eth1 +SWITCHDEV=eth0 +CLIENT_PORTS="3 0t" +WAN_PORTS= +BATMAN_PORTS="0t" + +ROUTERMAC=$(cat /sys/class/ieee80211/phy0/macaddress)