diff options
author | Johann Neuhauser <johann@it-neuhauser.de> | 2018-05-18 18:06:03 +0200 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2018-05-22 20:53:15 +0200 |
commit | a7e1e919afa9659f66dada5e69d1b162f447ced7 (patch) | |
tree | 18d949d909bca4f07d74df18bacf72ba92d70962 /target/linux/ath79/base-files/etc | |
parent | faf0a460c4b8d77bed270156a4454b964a551c95 (diff) | |
download | upstream-a7e1e919afa9659f66dada5e69d1b162f447ced7.tar.gz upstream-a7e1e919afa9659f66dada5e69d1b162f447ced7.tar.bz2 upstream-a7e1e919afa9659f66dada5e69d1b162f447ced7.zip |
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 <johann@it-neuhauser.de>
Diffstat (limited to 'target/linux/ath79/base-files/etc')
-rwxr-xr-x | target/linux/ath79/base-files/etc/board.d/02_network | 6 | ||||
-rw-r--r-- | target/linux/ath79/base-files/etc/diag.sh | 4 | ||||
-rw-r--r-- | target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom | 4 |
3 files changed, 13 insertions, 1 deletions
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 ;; |