From adbd9d1f1f07f77b0f511027c1cfea87cefe47be Mon Sep 17 00:00:00 2001 From: Robert Marko Date: Sun, 7 Oct 2018 12:21:45 +0200 Subject: ath79: Add support for TP-Link TL-WR842N-v2 This PR adds support for TP-Link TL-WR842N-v2 router which is supported by ar71xx to ath79. This is a low cost model with following specs: CPU: Atheros AR9341 SoC RAM: 32 MB DDR1 Flash: 8 MB NOR SPI Switch: Internal AR9341 5 port 10/100 Mbit Ports: 5x 10/100 Mbit(1x WAN, 4x LAN) USB: 1x USB2.0 WLAN: 2.4 GHZ AR9341 Installation: Simply flash the factory image through stock firmware WEB UI. Signed-off-by: Robert Marko --- target/linux/ath79/base-files/etc/board.d/02_network | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'target/linux/ath79/base-files/etc/board.d/02_network') diff --git a/target/linux/ath79/base-files/etc/board.d/02_network b/target/linux/ath79/base-files/etc/board.d/02_network index f782affe34..0cfe2c8247 100755 --- a/target/linux/ath79/base-files/etc/board.d/02_network +++ b/target/linux/ath79/base-files/etc/board.d/02_network @@ -150,6 +150,11 @@ ath79_setup_interfaces() ucidef_add_switch "switch0" \ "0@eth1" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" ;; + tplink,tl-wr842n-v2) + ucidef_set_interface_wan "eth0" + ucidef_add_switch "switch0" \ + "0@eth1" "1:lan:4" "2:lan:1" "3:lan:2" "4:lan:3" + ;; tplink,tl-wr941-v2) ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan" ;; -- cgit v1.2.3