Skip to content

AvalonMiner 721 development

MikeQin edited this page Jul 17, 2017 · 5 revisions

Table of Contents

Avalon7 CGMiner under Ubuntu 14.04.4 LTS

Download

 Inside your home directory, download Cgminer
 git clone https://github.com/Canaan-Creative/cgminer

Compile

 cd cgminer
 git checkout origin/master -b avalon7
 ./autogen.sh --enable-avalon7
 make -j 4

Run without ssplus

 sudo ./cgminer -o http://stratum.pool:3333 -u  work -p pass
 or
 sudo ./cgminer  -o http://stratum.pool:3333 -u  work -p pass --api-allow W:127.0.0.1 --api-listen 2>./log

Run with ssplus (Only works on AvalonMiner Controller Gen2)

 sudo ./cgminer -o http://stratum.pool:3333 -u  work -p pass --avalon7-ssplus-enable
 or
 sudo ./cgminer  -o http://stratum.pool:3333 -u  work -p pass --avalon7-ssplus-enable --api-allow W:127.0.0.1 --api-listen 2>./log

Tweak

  • Led
  Memo: Turn on or off red led in the modular
  Format: '''ascset|ASCN,led,modularid-switch'''
    modularid: [1, AVA7_DEFAULT_MODULARS - 1]
    switch: [0/1]
  eg: cgminer-api "ascset|0,led,1-1"
  • Fan
  Memo: Change min and max fan
  Format: '''ascset|ASCN,fan,fanmin[-fanmax]'''
    fan: [0, 100]
  eg: cgminer-api "ascset|0,fan,10" or cgminer-api "ascset|0,fan,10-100"
  • Voltage
  Memo: Update the voltage input for the asics
  Format: '''ascset|ASCN,voltage,value[-MMID-miner_id]''', 
    MMID: [0, AVA7_DEFAULT_MODULARS - 1], 0 means all modulars
    miner_id: [0, miner_count], 0 means all miners
  eg: cgminer-api "ascset|0,voltage,7750-1"
      cgminer-api "ascset|0,voltage,7750-0-2"
  • Frequency
  Memo: Update the frequency for the asics
  Format: '''ascset|ASCN,frequency,value[-MMID-miner_id]''', 
    MMID: [0, AVA7_DEFAULT_MODULARS - 1], 0 means all modulars
    miner_id: [0, miner_count], 0 means all miners
  eg: cgminer-api "ascset|0,frequency,300-1"
      cgminer-api "ascset|0,frequency,300-0-2"
  • Polling delay
  Memo: Update polling delay for CGMiner
  Format: '''ascset|ASCN,delay,value'''
    pdelay: [1, 65535]
  eg: cgminer-api "ascset|0,pdelay,1"
  • Reboot modular
  Memo: Reboot MM in the modular
  Format: '''ascset|ASCN,reboot,modularid'''
    modularid: [1, AVA7_DEFAULT_MODULARS - 1]
  eg: cgminer-api "ascset|0,reboot,1"