diff options
author | Jing Lin <mumuqz@163.com> | 2016-10-18 16:18:50 +0800 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2016-10-25 17:51:08 +0200 |
commit | 7ba9a3a504909ccf8f6d1aca9b1160443da7215b (patch) | |
tree | aef65f6f925e544dd58b8a807fafd86d01781f82 /target/linux/ar71xx/base-files | |
parent | 81b256ee002f86077b7fd61ad200955ef983b06a (diff) | |
download | upstream-7ba9a3a504909ccf8f6d1aca9b1160443da7215b.tar.gz upstream-7ba9a3a504909ccf8f6d1aca9b1160443da7215b.tar.bz2 upstream-7ba9a3a504909ccf8f6d1aca9b1160443da7215b.zip |
ar71xx: Add support to DomyWifi DW33D
Signed-off-by: Jing Lin <mumuqz@163.com>
Diffstat (limited to 'target/linux/ar71xx/base-files')
6 files changed, 18 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/etc/board.d/01_leds b/target/linux/ar71xx/base-files/etc/board.d/01_leds index 5011af6ec9..89d0b5892b 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/01_leds +++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds @@ -142,6 +142,12 @@ dragino2) ucidef_set_led_netdev "lan" "LAN" "$board:red:lan" "eth0" ucidef_set_led_netdev "wan" "WAN" "$board:red:wan" "eth1" ;; +dw33d) + ucidef_set_led_usbdev "mmc" "MMC" "$board:blue:mmc" "1-1" + ucidef_set_led_usbdev "usb" "USB" "$board:blue:usb" "2-1" + ucidef_set_led_netdev "internet" "INTERNET" "$board:blue:internet" "eth0" + ucidef_set_led_wlan "wlan2g" "WLAN-2.4G" "$board:blue:wlan-2g" "phy1tpt" + ;; eap300v2) ucidef_set_led_netdev "lan" "LAN" "engenius:blue:lan" "eth0" ucidef_set_led_wlan "wlan" "WLAN" "engenius:blue:wlan" "phy0tpt" diff --git a/target/linux/ar71xx/base-files/etc/board.d/02_network b/target/linux/ar71xx/base-files/etc/board.d/02_network index b7b91d0ad8..eaf67180e8 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/02_network +++ b/target/linux/ar71xx/base-files/etc/board.d/02_network @@ -305,6 +305,7 @@ ar71xx_setup_interfaces() ucidef_add_switch "switch0" \ "0@eth0" "2:lan" "3:lan" ;; + dw33d|\ f9k1115v2) ucidef_set_interfaces_lan_wan "eth1" "eth0" ucidef_add_switch "switch0" \ diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index 7a40f44e4a..e225ddbbb5 100644 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -130,6 +130,9 @@ get_status_led() { oolite) status_led="$board:red:system" ;; + dw33d) + status_led="$board:blue:status" + ;; eap120) status_led="$(ar71xx_board_name):green:system" ;; diff --git a/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata b/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata index a0a111b3d1..322998d2cf 100644 --- a/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata +++ b/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata @@ -50,6 +50,10 @@ case "$FIRMWARE" in dlan-pro-1200-ac) ath10kcal_extract "art" 20480 2116 ;; + dw33d) + ath10kcal_extract "art" 20480 2116 + ath10kcal_patch_mac $(mtd_get_mac_binary art 18) + ;; mc-mac1200r) ath10kcal_extract "art" 20480 2116 ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth1/address) -1) diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 1492b50774..85f5bf27dd 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -566,6 +566,9 @@ ar71xx_board_detect() { *"Domino Pi") name="gl-domino" ;; + *"DW33D") + name="dw33d" + ;; *"EAP120") name="eap120" tplink_pharos_board_detect diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index 35e9bb4391..e98c3ce4e1 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -262,6 +262,7 @@ platform_check_image() { bxu2000n-2-a1|\ db120|\ dr344|\ + dw33d|\ f9k1115v2|\ hornet-ub|\ mr12|\ |