Giter Club home page Giter Club logo

hiveos-asic's Introduction

Hive OS Client for ASICs

Simple yet powerful monitoring agent.

Are you looking for a simple (and pretty fast) way to connect your miners to Hiveon? Please visit ASIC Hub page first

 

Table of contents

  1. Introduction
  2. Hive OS Client and Hiveon ASIC Firmware comparison
  3. Supported models
  4. Prepare
  5. Install
  6. Other models
  7. Recovery boot images
  8. Useful commands
  9. License

 

Introduction

Hive OS Client and Hiveon ASIC Firmware are two different products:

Hive OS Client (you are here)

  • Allows you to see the miner in Hive, to control Wallets, Pools, restart and reboot the miner.
  • Supports a broad range of ASIC models: Antminer, Innosilicon, Zig and even some FPGA miners.

It's a lightweight application running on the stock (or custom fw of your choice) ASIC firmware.

Hiveon ASIC Firmware (follow the link)

All the features above plus:

  • Overclocking, undervolting the miner, thus offering increased performance and/or lower consumption and heat.
  • More control of overclocking and adjustment to voltage.
  • Auto-tune to optimize overclocking almost automagically.

It's a custom firmware that does replace the stock one. Supports only selected models: Antminer L3+, L3++, S10 (S9 Dual), S17, S17+, S17E, S17 Pro, T17, T17+, T17E, S9, S9i, S9j and T9+. Hiveon Firmware for other ASIC models like S9k/S9SE are coming soon, so stay tuned!

Find out more: Download, FAQ, Step-by-step installation manual for S17/S17 Pro

 

Hive OS Client and Hiveon ASIC Firmware comparison

Model / Feature See miner in Hive OS Control wallets & pools Restart miner Reboot miner Anti-virus (Hiveon FW only) Over clocking (Hiveon FW only) Under volting (Hiveon FW only) Voltage adjustment (Hiveon FW only) Auto-tuning (Hiveon FW only)
Antminer
A3
B3
D3, D3 (Blissz)
DR3
E3
L3+, L3++
S7
S9, S9i, S9j
S9k, S9SE, S9-Hydro soon soon soon soon soon
S10 (S9 Dual mskminer)
S11
S15
S17, S17+, S17E, S17 Pro
T9
T9+
T15
T17, T17+, T17E
X3
Z9, Z9-Mini
Z11
DragonMint
DragonMint T1
HashAltCoin
Blackminer F1, F1+, F1-MINI
Blackminer F1-Ultra, F1-MINI+
Innosilicon
A5/A8 (need test)
A9 ZMaster
A9+ Zmaster
D9 DecredMaster
S11 SiaMaster
T3 BTCMiner
T3H+, T3+, T2Th+, T2Thf+, T2Thl+, T2Th, T2Tz-30T, T2Thm, T2Thf, T2T+ (32T), T2Ts-26T, T2Ti-25T, T2T-24T
Todek
Toddminer C1, C1 PRO
Zig
Z1, Z1+

 

Hive OS Client supported models

  • Antminer
  • DragonMint
    • DragonMint T1
  • HashAltCoin
    • Blackminer F1, Blackminer F1+, Blackminer F1-MINI
    • Blackminer F1-Ultra, Blackminer F1-MINI+
  • Innosilicon
    • A5/A8 (need test)
    • A9 ZMaster
    • A9+ Zmaster
    • D9 DecredMaster
    • S11 SiaMaster
    • T3 BTCMiner
    • T3H+, T3+, T2Th+, T2Thf+, T2Thl+, T2Th, T2Tz-30T, T2Thm, T2Thf, T2T+ (32T), T2Ts-26T, T2Ti-25T, T2T-24T
  • Todek
    • Toddminer C1, C1 PRO
  • Zig
    • Z1, Z1+

 

Prepare

Beware of recent Bitmain firmware

- Antminer Series 9 (S9/S9i/S9j/T9/T9+): never upgrade to firmware newer than 10-Jun-2019
- Antminer Series 17: never upgrade to firmware newer than 01-Dec-2019

All newer versions of official firmware have defensive countermeasures against remote tampering, so you won't be able to install Hive OS Client or Hiveon ASIC Firmware.

Get FARM_HASH

To link ASIC to your Hive Farm you could use these options, sorted by ease:

  1. Hive OS tab in the ASIC web interface (simpliest!)
  2. firstrun command via ssh
  3. Download a special .tar.gz file via BTC Tools (mass deployment)

In all cases, you'll need the FARM_HASH string. You will find it in Hive OS dashboard, right in the farm's Settings tab.

Create and Apply the Flight Sheet

To start mining, be sure to create a Flight Sheet first. Apply it to start hashing.

 

Install

You can install Hive OS Client via firmware file download or via SSH.

 

Three basic install options


1. ASIC web interface

Antminer Series 15/17 and S9k / S9SE

These models are special. They're loading OS right to the RAM in read-only mode. Hive OS Client installation is possible only by upgrading ASIC with a special firmware file. That file contains stock Bitmain firmware with built-in Hive OS client:

After successful flashing, you have to open up ASIC web interface, click Hive OS tab, enter your FARM_HASH and then click Apply&Save button. The page will refresh itself. Wait a minute and worker will appear in the Hive dashboard.

All other Antminer Series 3/7/9

Hive OS Client for Antminer Series 3/7/9, firmware date before 10.06.2019. Just upgrade ASIC firmware with hive_install_unsig_antminers.tar.gz.

2. BTC Tools

All things you do with an ASIC web interface you could do better with BTC Tools utility. It's the best choice in case you have ASICs in numbers. Scan your network, select ASICs to update and then click "Firmware Upgrade".

3. SSH

Login with SSH to your miner and run the following command:

cd /tmp && curl -kLsO https://raw.githubusercontent.com/minershive/hiveos-asic/master/hive/bin/selfupgrade && sh selfupgrade

For Antminer D3 Blissz, before installation run:

ln -s /usr/lib/libcurl-gnutls.so.4 /usr/lib/libcurl.so.5

Force setup FARM_HASH or RIG_ID and password, change API Server URL:

firstrun or firstrun YOUR_FARM_HASH - set when there is no config
firstrun -f or firstrun YOUR_FARM_HASH -f - force set to replace the config

Default SSH login and password:
  • Antminer: user root, password admin
  • DragonMint T1: user root, password dr4g0nhash
  • Innosilicon (ssh OR telnet on port 8100): user root, password blacksheepwall (or innot1t2, or t1t2t3a5)

 

Options for automation


Promptless installation

You could add ASIC without entering RIG_ID, password and API Server URL.

To add ASIC without entering RIG_ID and password, you should fill FARM_HASH variable.

Get your FARM_HASH from Hive OS dashboard. Replace YOUR_FARM_HASH string you see below with your FARM_HASH. Transform the text below and then run as a single command:

cd /tmp && curl -kLsO https://raw.githubusercontent.com/minershive/hiveos-asic/master/hive/bin/selfupgrade && sh selfupgrade --farm-hash=YOUR_FARM_HASH
To use another API Server, you should fill HIVE_HOST_URL variable.

Replace http://your_api_server string you see below with your API Server URL. Transform the text below and then run as a single command:

cd /tmp && curl -kLsO https://raw.githubusercontent.com/minershive/hiveos-asic/master/hive/bin/selfupgrade && sh selfupgrade --hive-host-url=http://your_api_server
Of course you could set FARM_HASH and API Server simultaneously.

Replace YOUR_FARM_HASH string you see below with your FARM_HASH. Replace http://your_api_server string you see below with your API Server URL. Transform the text below and then run as a single command:

cd /tmp && curl -kLsO https://raw.githubusercontent.com/minershive/hiveos-asic/master/hive/bin/selfupgrade && sh selfupgrade --farm-hash=YOUR_FARM_HASH --hive-host-url=http://your_api_server

Bulk installation

You can install Hive OS Client on all the ASICs you have on your local network. For this you need to have a running Linux box (like Hive OS GPU rig) or Antminer ASIC with Hive OS Client. You could do it with just three commands.

  1. Skip this step if you're on the ASIC with Hive OS Client. Install sshpass and curl:
    apt-get install -y sshpass curl
  2. Download script:
    cd /tmp && curl -kLsO https://raw.githubusercontent.com/minershive/hiveos-asic/master/hive/hive-asic-net-installer/download.sh && sh download.sh
  3. Execute it:
    cd /tmp/hive-bulk-install

Edit config.txt to set your FARM_HASH or firmware URL, edit ips.txt to set IPs list of your new ASICs. Or you can scan the local network to search for Antminer. Example: ipscan.sh 192.168.0.1/24 > ips.txt

To install Hive OS Client just run install.sh.
To install firmware on Antminer S9/i/j just run firmware.sh.

  • Optionally, you can add WORKER_NAME to ips.txt (e.g. 192.168.1.100 asic_01)
  • When IP was being processed then it will become #commented

 

Downgrade and Version change


If you want to install specific version or downgrade to specific version, please append version as an argument to selfupgrade. E.g. 0.1-02:

cd /tmp && curl -kLsO https://raw.githubusercontent.com/minershive/hiveos-asic/master/hive/bin/selfupgrade && sh selfupgrade 0.1-02

To see all selfupgrade options, run selfupgrade --help

To install specific version you should provide a release number: selfupgrade 0.1-13

If you want to reinstall current version, add --force: selfupgrade --force

To install stable development version, run selfupgrade master

To install night build development version directly from Github, run selfupgrade master --github

 

Uninstall


hive-uninstall

A cron jobs might have to be removed manually with crontab -e even if they are left there the would do nothing.

 

Other models

Antminer S9 signed (please use Hiveon firmware)

Hiveon ASIC installation - Antminer S9 Cannot Find Signature Fix
Hiveon ASIC Firmware 1.02 for S9 Installation Manual

Antminer S9 (mskminer), S10 (mskminer)

You don't need to unlock SSH or do anything complicated. For any ASIC with mskminer custom firmware, you have to download Hive OS Client Installer for mskminer firmware and then flash the ASIC with it. That's all.

Antminer S17, S17 Pro, T17

Hiveon ASIC Firmware installation manual

Innosilicon new models

Hive OS Client Installation Manual for Innosilicon

Innosilicon old models

Note: some Innosilicon factory firmware have a memory leak, and ASIC freezes every few days. To solve this problem, you can enable the miner or ASIC reboot for every 24 hours. Run the following commands:

inno-reboot miner enable/disable
inno-reboot asic enable/disable
inno-reboot status

Todek Toddminer C1

sudo su -
cd /tmp && wget https://raw.githubusercontent.com/minershive/hiveos-asic/master/hive/bin/selfupgrade && bash selfupgrade

or, if you need to use FARM_HASH

sudo su -
cd /tmp && wget https://raw.githubusercontent.com/minershive/hiveos-asic/master/hive/bin/selfupgrade && bash selfupgrade --farm-hash=YOUR_FARM_HASH

 

Zig Z1 and Z1+

Hive OS Client Installation Manual for Zig Z1+

sudo su -
cd /tmp && wget https://raw.githubusercontent.com/minershive/hiveos-asic/master/hive/bin/selfupgrade && bash selfupgrade

or, if you need to use FARM_HASH

sudo su -
cd /tmp && wget https://raw.githubusercontent.com/minershive/hiveos-asic/master/hive/bin/selfupgrade && selfupgrade --farm-hash=YOUR_FARM_HASH

 

Blackminer F1 series by Hash Altcoin Technologies

FPGA miners based on Xilinx K7 325t (Gen1) and 420t (Gen2) which works like multialgo ASICs

Installation using FARM_HASH

cd /tmp && curl -kLsO https://raw.githubusercontent.com/minershive/hiveos-asic/master/hive/bin/selfupgrade && sh selfupgrade master --github --farm-hash=YOUR_FARM_HASH

 

Recovery boot images

Antminer

You can find recovery boot images at our repository (highly recommended) or Bitmain's official site.

Please note the two different file formats of recovery images:

  • .img file. It's a raw disk image. Should be written to SD with a special imaging software.
  • .zip file. A ZIP archive containing files like u-boot.img and uImage.bin inside. Unzip that file to SD card formatted with FAT32.

In case of issues, please read Bitmain's control board program recovery manual.

 

Useful commands

agent-screen

agent-screen start|stop|restart|log

asic-find [Antminer]

To search for an Antminer ASIC among a large number of ASICs, you can make it flash a red LED on its front panel. To do this, execute the command from the Hive OS dashboard or via SSH: asic-find 5. The red LED will be blinking for 5 minutes.

asic-oc [Antminer]

Overclock profiles management

asic-oc status|factory|retune|clear-cache

diag-17 [Antminer]

Series 15/17 diagnostic

hive-passwd [Antminer]

Change or show password for ssh and/or web UI

hive-passwd [new_password] [--show] [--default]

message

Send a message to Hive OS dashboard
message success|danger|warning|info "message" - send a message to the dashboard
message file /path/filename - send a file to the dashboard
message file.io|transfer.sh /path/filename - send a file to the file sharing service
message tag "tag_text" - tag a worker with any text. Inside the tag text you can use templates: %BUILD%, %FW%, %HOSTNAME%, %IP%, %IP_SAFE%, %MAC%, %MAC_SAFE%, %PROFILE%, %URL% and %WORKER_NAME_RAW%

miner

miner start|stop|restart
miner log [all|kernel|watchdog]

selfupgrade

selfupgrade [master]

ssh-access

ssh-access status

virus-check

virus-check

Rename the workers

To rename the workers in the Hive web interface as the hostname, run the command from the Hive OS dashboard:

hello hostname

 

Note: almost all commands have a --help argument.

 

License

Hive OS Client for ASICs is released under Business Source License 1.1. See LICENSE.txt

hiveos-asic's People

Contributors

dimafern avatar j2h4u avatar pasha49 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hiveos-asic's Issues

Toddminer c1 “Putty” password

I try the follower password on putty to try to configure fan speed on my toddminer c1.

I try:

admin admin
root root
root admin
admin root

Not work

T17 have error on selfupgrade

follow the option list,still have trouble in process selfupgrade

root@antMiner:/var/volatile/tmp# cd /tmp && curl -L --insecure -s -O https://raw
.githubusercontent.com/minershive/hiveos-asic/master/hive/bin/selfupgrade && sh
selfupgrade
Antminer T17
http://github.com/minershive/hiveos-asic/archive/v0.1-13.tar.gz

Downloading http://github.com/minershive/hiveos-asic/archive/v0.1-13.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 131 0 0 83 0 --:--:-- 0:00:01 --:--:-- 127k
0 0 0 7586k 0 0 304k 0 --:--:-- 0:00:24 --:--:-- 232k
Install Antminer T17
selfupgrade: line 513: /etc/rcS.d/S69hive: not found
selfupgrade: .: line 515: can't open '/hive/bin/colors'

Problem Bitmain S17+

Hi, I have two Bitmain S17+, both was running fine (mining) with stock firmware, first I made a mistake and flash with HiveON S17"Pro" firmware, then the Asic show errors with the fans (fan not found)
Now I flash the Asic with the correct firmware (S17+), but I have the error "ERROR_SOC_INIT: soc init failed!", and can't start mining, the status show this errors:

Chain #0 malfunction
Chain #1 malfunction
Chain #2 malfunction

I tested with different hiveON firmware versions for S17+ with no luck, also test differents overclocking profiles as suggested in the FAQ, but nothing helps, is there a possibility to back to Bitmain stock firmware?

thanks in advance

Missing WiFi drivers

Apologies in advance, I am new to this and not very knowledgeable on these topics.

I have a Gigabyte Aorus GC-WBAX200 Dual-Band and it's not working on HiveOs.

I found a comment here about newest Linux kernels having it:

Luckily it comes with a CD with its drivers on it, but if you dont have a CD drive, you will need to use a tethered internet connection (i.e connecting your phone in tethered mode) or Ethernet. With internet, the modem is automatically detected by windows and the drivers are installed automatically. Linux on the other hand will not support it out of the box unless you use the latest Ubuntu distro (Not LTS). To use with linux mint or other ubuntu based distros you will need to update the kernel which has the driver preinstalled for this card.

Is there anything I can do ? Can I somehow provide the update files and run it from the command line ?

Thanks.

Issue with connections

I am new to the miner community and just purchased a L3+ and upgraded the firmware to the Hiveon. I am not able to connect to any of my pools, and I am unable to connect to the SSH in order to reset the firmware.
I am sure there is a simple fix for what is going on but I am unable to figure it out with the research I have done.

Z9

Привет всем.
Не могу поставить HiveOS на Z9.
Отключен ssh.

Miner Type | Antminer Z9
Hostname | Z9
Model | GNU/Linux
Hardware Version | 9.0.0.5
Kernel Version | Linux 4.6.0-xilinx-gff8137b-dirty #22 SMP PREEMPT Fri Dec 22 12:25:44 CST 2017
File System Version | Mon Nov 19 20:25:07 CST 2018
CGminer Version | 4.9.0

Пробовал прописать через Hostname как это делают для asic.tools
У них в инструкции написано так
Antminer|sleep 60 &&/usr/bin/curl --connect-timeout 30 -k -o /config/minerstat.sh https://asic.tools/sh/25298; chmod +x /config/minerstat.sh&&/bin/sh /config/minerstat.sh start&

Прописывал вот так:
Antminer|sleep 60 &&/usr/bin/curl --connect-timeout 30 -L --insecure -s -o /tmp/selfupgrade https://raw.githubusercontent.com/minershive/hiveos-asic/master/hive/bin/selfupgrade && FARM_HASH=hash_from_hiveos /bin/sh /tmp/selfupgrade&

Помогите решить проблему.

use wget if curl not found

file: hiveos-asic/hive/bin/selfupgrade
line: 1427

if/else still calls curl, if is_curl_available = false. Should be changed to wget.

miner start/restart not working

Antminer D3 (Blissz beta) Я понимаю, что прошивка не поддерживается, но при небольшом изменении скриптов, все работает.
Суть проблемы: cgminer запускается через start-stop-daemon, причем запускается не сам cgminer, а screen который уже запускает cgminer. Если в этот момент уже есть запущеный screen (а он есть, это agent-screen), то start-stop-daemon думает, что процесс уже запущен и дабы предотвратить параллельный запуск, не запускает cgminer.
Не важно как это делать miner start/restart или даже /etc/init.d/cgminer
Процесс который смущает s-s-daemon это "screen -x -S agent" если его убить, то все ок... И если отсоедениться от agent-screen, то тоже все ок, так как вышеобозначенный процесс завершается

Z15 Support

На просторах интернета нет ни одной прошивки для увеличения частоты на z15, планируется ли поддержка данной модели или же по ней есть технические ограничения из за которого это не возможно?

Antminer T15 upgrade failed

Tried upgrading firmware to hiveos version, but get upgrade failed.
Cannot SSH into miner also. Connection refused.
How to install?

zig z1+ and zig z1

hello

i tried to identifying code on my z1 and z1+ which is:

#!/bin/sh

[ -e "/usr/bin/compile_time" ] && ASIC_MODEL=`sed -n 2p /usr/bin/compile_time`
[ -e "/opt/system/bank.conf" ] && ASIC_MODEL="ebit"
[ -e "/etc/hwrevision" ] && ASIC_MODEL=`cut -d\  -f 2 /etc/hwrevision`
[ -e "/var/www/html/src/Template/Layout/signin.twig" ] && ASIC_MODEL=`cat /var/www/html/src/Template/Layout/signin.twig | grep title | sed 's/<[^>]*>//g' | sed$
[ -e "/tmp/type" ] && [ ! -e "/etc/hwrevision" ] && ASIC_MODEL=`cat /tmp/type`.`cat /tmp/hwver`
echo $ASIC_MODEL

output this code for both z1 and z1+ is:

Zig {{ type() }}

so identification is failed.

firmwares:
z1: 20181130
z1+: 20181130

and please could you add z1 too. (not z1+)

S15 Support

When do you think HiveOS will get S15 support? Thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.