aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files/etc
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2015-07-07 13:46:54 +0000
committerJohn Crispin <john@openwrt.org>2015-07-07 13:46:54 +0000
commit055663201b7ce579815ec1cd23424237aede5134 (patch)
tree49c47adec24bfb6b00c03a2b573ef21d9f72b8bb /target/linux/ar71xx/base-files/etc
parent9f2b8b3902c38dfd68db74a4c235c7f38f177822 (diff)
downloadupstream-055663201b7ce579815ec1cd23424237aede5134.tar.gz
upstream-055663201b7ce579815ec1cd23424237aede5134.tar.bz2
upstream-055663201b7ce579815ec1cd23424237aede5134.zip
ar71xx: Add Support for the Bitmain Antminer S3
This patch adds support for the Bitmain Antminer S3 Cryptocurrency Miner http://wiki.openwrt.org/toh/bitmain/s3 Signed-off-by: L. D. Pinney <ldpinney@gmail.com> SVN-Revision: 46236
Diffstat (limited to 'target/linux/ar71xx/base-files/etc')
-rw-r--r--target/linux/ar71xx/base-files/etc/diag.sh3
-rw-r--r--target/linux/ar71xx/base-files/etc/uci-defaults/01_leds6
-rw-r--r--target/linux/ar71xx/base-files/etc/uci-defaults/02_network1
3 files changed, 9 insertions, 1 deletions
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index f3625712e0..b73e26dfaa 100644
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -12,7 +12,8 @@ get_status_led() {
all0305)
status_led="eap7660d:green:ds4"
;;
- antminer-s1)
+ antminer-s1|\
+ antminer-s3)
status_led="bitmain:green:system"
;;
ap132)
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 ec7303c066..89aefca8f7 100644
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
@@ -36,6 +36,12 @@ antminer-s1)
ucidef_set_led_wlan "wlan" "WLAN" "bitmain:green:wlan" "phy0tpt"
;;
+antminer-s3)
+ ucidef_set_led_wlan "wlan" "WLAN" "bitmain:green:wlan" "phy0tpt"
+ ucidef_set_led_default "sys" "SYS" "bitmain:green:sys" "0"
+ ucidef_set_led_default "lan" "LAN" "bitmain:yellow:lan" "0"
+ ;;
+
ap113)
ucidef_set_led_usbdev "usb" "USB" "ap113:green:usb" "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 6762adfdd4..0eeae2b8c0 100644
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
@@ -346,6 +346,7 @@ wp543)
;;
antminer-s1 |\
+antminer-s3 |\
dir-505-a1)
ucidef_set_interface_lan "eth1"
;;