From a7e1e919afa9659f66dada5e69d1b162f447ced7 Mon Sep 17 00:00:00 2001 From: Johann Neuhauser Date: Fri, 18 May 2018 18:06:03 +0200 Subject: ath79: preliminary support for TP-Link WDR3600 / WDR4300 (AR9344) working: - leds - buttons - lan / wan - usb (hub port 1 + 2) - wifi 5g - sysupgrade - ... not working: - wifi 2g Signed-off-by: Johann Neuhauser --- target/linux/ath79/base-files/etc/board.d/02_network | 6 ++++++ target/linux/ath79/base-files/etc/diag.sh | 4 +++- .../linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom | 4 ++++ 3 files changed, 13 insertions(+), 1 deletion(-) (limited to 'target/linux/ath79/base-files') 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 19361f161e..12176c1877 100755 --- a/target/linux/ath79/base-files/etc/board.d/02_network +++ b/target/linux/ath79/base-files/etc/board.d/02_network @@ -13,6 +13,12 @@ ath79_setup_interfaces() ucidef_set_interface_lan "eth0" ;; + "tplink,tl-wdr3600"|\ + "tplink,tl-wdr4300") + ucidef_add_switch "switch0" \ + "0@eth0" "2:lan:1" "3:lan:2" "4:lan:3" "5:lan:4" "1:wan" + ;; + "tplink,tl-wr1043nd-v1") ucidef_add_switch "switch0" \ "1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "5@eth0" diff --git a/target/linux/ath79/base-files/etc/diag.sh b/target/linux/ath79/base-files/etc/diag.sh index 8022151378..b18463413a 100644 --- a/target/linux/ath79/base-files/etc/diag.sh +++ b/target/linux/ath79/base-files/etc/diag.sh @@ -2,6 +2,8 @@ . /lib/functions/leds.sh +status_led="$(get_dt_led status)" + get_status_led() { local board=$(board_name) local boardname="${board##*,}" @@ -23,7 +25,7 @@ get_status_led() { } set_state() { - get_status_led + [ -z "$status_led" ] && get_status_led case "$1" in preinit) diff --git a/target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom b/target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom index c2d87f58de..c09dca11d7 100644 --- a/target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom +++ b/target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom @@ -50,6 +50,10 @@ case "$FIRMWARE" in "avm,fritz300e") ath9k_eeprom_extract_reverse "urloader" 5441 1088 ;; + "tplink,tl-wdr3600"|\ + "tplink,tl-wdr4300") + ath9k_eeprom_extract "art" 20480 1088 + ;; "ubnt,unifi") ath9k_eeprom_extract "art" 4096 2048 ;; -- cgit v1.2.3