aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files
diff options
context:
space:
mode:
authorImre Kaloz <kaloz@openwrt.org>2014-07-23 12:47:25 +0000
committerImre Kaloz <kaloz@openwrt.org>2014-07-23 12:47:25 +0000
commitdc628f2e0870d448313e790398bfaf36850c4702 (patch)
tree2d62e7d3870497ed4ab6e158aba7faead11b9fe3 /target/linux/ar71xx/base-files
parent039fe23f8ebd0a5bdc7b4aba07f9e7468e2883ff (diff)
downloadupstream-dc628f2e0870d448313e790398bfaf36850c4702.tar.gz
upstream-dc628f2e0870d448313e790398bfaf36850c4702.tar.bz2
upstream-dc628f2e0870d448313e790398bfaf36850c4702.zip
add support for the archer c5
Signed-off-by: Imre Kaloz <kaloz@openwrt.org> SVN-Revision: 41814
Diffstat (limited to 'target/linux/ar71xx/base-files')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/diag.sh1
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/uci-defaults/01_leds1
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/uci-defaults/02_network1
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/ar71xx.sh3
-rw-r--r--target/linux/ar71xx/base-files/lib/preinit/05_set_preinit_iface_ar71xx1
-rw-r--r--target/linux/ar71xx/base-files/lib/preinit/81_load_ath10k_board_bin1
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/upgrade/platform.sh1
7 files changed, 9 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index 487a325368..2984777d9d 100755
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -207,6 +207,7 @@ get_status_led() {
tl-wr941nd)
status_led="tp-link:green:system"
;;
+ archer-c5 | \
archer-c7 | \
tl-wdr4900-v2 | \
tl-mr10u | \
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
index 7c86b05931..a93b5faeed 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
@@ -283,6 +283,7 @@ tl-wdr4300)
ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:blue:wlan2g" "phy0tpt"
;;
+archer-c5|\
archer-c7|\
tl-wdr4900-v2)
ucidef_set_led_usbdev "usb1" "USB1" "tp-link:green:usb1" "1-1"
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
index 2ab1d0b636..c9ee86769a 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
@@ -53,6 +53,7 @@ tl-wr1043nd-v2)
ucidef_add_switch_vlan "switch0" "2" "5 6"
;;
+archer-c5 |\
archer-c7 |\
tl-wdr4900-v2)
ucidef_set_interfaces_lan_wan "eth1" "eth0"
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index 70f74829ca..a067604df9 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -277,6 +277,9 @@ ar71xx_board_detect() {
*AP83)
name="ap83"
;;
+ *"Archer C5")
+ name="archer-c5"
+ ;;
*"Archer C7")
name="archer-c7"
;;
diff --git a/target/linux/ar71xx/base-files/lib/preinit/05_set_preinit_iface_ar71xx b/target/linux/ar71xx/base-files/lib/preinit/05_set_preinit_iface_ar71xx
index 47b008242d..10651fccd4 100644
--- a/target/linux/ar71xx/base-files/lib/preinit/05_set_preinit_iface_ar71xx
+++ b/target/linux/ar71xx/base-files/lib/preinit/05_set_preinit_iface_ar71xx
@@ -13,6 +13,7 @@ set_preinit_iface() {
ap135-020 |\
ap136-020 |\
ap83 |\
+ archer-c5 |\
archer-c7 |\
dir-505-a1 |\
gl-inet |\
diff --git a/target/linux/ar71xx/base-files/lib/preinit/81_load_ath10k_board_bin b/target/linux/ar71xx/base-files/lib/preinit/81_load_ath10k_board_bin
index 14e1913536..a28932f824 100644
--- a/target/linux/ar71xx/base-files/lib/preinit/81_load_ath10k_board_bin
+++ b/target/linux/ar71xx/base-files/lib/preinit/81_load_ath10k_board_bin
@@ -11,6 +11,7 @@ do_load_ath10k_board_bin() {
bs=1 skip=20480 count=2116 \
of=/tmp/ath10k-board.bin
;;
+ archer-c5 | \
archer-c7)
local mac
mac=$(macaddr_add $(cat /sys/class/net/eth1/address) -2)
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index de831b2eae..ced42ed044 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -251,6 +251,7 @@ platform_check_image() {
return 1
;;
+ archer-c5 | \
archer-c7 | \
el-m150 | \
el-mini | \