diff options
author | John Crispin <blogic@openwrt.org> | 2015-06-18 20:24:15 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2015-06-18 20:24:15 +0000 |
commit | 3df0da9819e0e5bb9faa1afec6d5eb0be8e156e9 (patch) | |
tree | ff4904243d466e263236886ada31dfd67ca1ad0f /target/linux/ar71xx/base-files | |
parent | e8f2f57bd1a9450d5ffb00018a6f703c2a53614b (diff) | |
download | upstream-3df0da9819e0e5bb9faa1afec6d5eb0be8e156e9.tar.gz upstream-3df0da9819e0e5bb9faa1afec6d5eb0be8e156e9.tar.bz2 upstream-3df0da9819e0e5bb9faa1afec6d5eb0be8e156e9.zip |
ar71xx: Add Support for the Bitmain Antminer S1
This patch adds support for the Bitmain Antminer S1 Cryptocurrency Miner
http://wiki.openwrt.org/toh/bitmain/s1
Signed-off-by: L. D. Pinney <ldpinney@gmail.com>
Acked-by: James Hilliard <james.hilliard1@gmail.com>
Backport of r46044
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@46054 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/base-files')
4 files changed, 12 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index 055325179b..f6e4a875fc 100644 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -12,6 +12,9 @@ get_status_led() { all0305) status_led="eap7660d:green:ds4" ;; + antminer-s1) + status_led="bitmain:green:system" + ;; ap132) status_led="ap132:green:status" ;; 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 41eeeebe32..19814f4e4a 100644 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds @@ -31,6 +31,11 @@ all0315n) ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "all0315n:green:rssihigh" "wlan0" "70" "100" "-69" "8" ;; +antminer-s1) + ucidef_set_led_default "sys" "SYS" "bitmain:green:sys" "0" + ucidef_set_led_wlan "wlan" "WLAN" "bitmain:green:wlan" "phy0tpt" + ;; + 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 f5c6865240..9fdaca0721 100644 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network @@ -343,6 +343,7 @@ wp543) ucidef_set_interface_lan "eth0" ;; +antminer-s1 |\ dir-505-a1) ucidef_set_interface_lan "eth1" ;; diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index b13be1e5f9..4a4101de33 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -107,6 +107,9 @@ tplink_board_detect() { "015300"*) model="EasyLink EL-MINI" ;; + "04440001"*) + model="BITMAIN ANTMINER S1" + ;; "120000"*) model="MERCURY MAC1200R" ;; |