-
Notifications
You must be signed in to change notification settings - Fork 3
AvalonMiner 9 development
Johnson-Fan edited this page Sep 20, 2018
·
1 revision
Inside your home directory, download Cgminer git clone https://github.com/Canaan-Creative/cgminer
cd cgminer git checkout origin/avalon9 -b avalon9 ./autogen.sh --enable-avalon9 make -j 4
cd cgminer gcc api-example.c -Icompat/jansson-2.9/src -o cgminer-api
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
Memo: Turn on or off led in the modular Format: '''ascset|ASCN,led,modularid-switch''' ASCN: AUC index modularid: [1, AVA9_DEFAULT_MODULARS - 1] switch: [0/1] eg: cgminer-api "ascset|0,led,1-1"
Memo: Change min and max fan Format: '''ascset|ASCN,fan,fanmin[-fanmax]''' ASCN: AUC index fan: [0, 100] eg: cgminer-api "ascset|0,fan,10" or cgminer-api "ascset|0,fan,10-100"
Memo: Update the voltage input for the asics Format: '''ascset|ASCN,voltage,value[-MMID[-miner_id]]''', ASCN: AUC index value: -15~15, step:1 MMID: [0, AVA9_DEFAULT_MODULARS - 1], 0 means all modulars miner_id: [0, miner_count], 0 means all miners eg: cgminer-api "ascset|0,voltage-level,1-1-1" cgminer-api "ascset|0,voltage-level,1-0-1"
Memo: Update the frequency for the asics Format: '''ascset|ASCN,frequency,value[-MMID[-miner_id]]''', ASCN: AUC index value: [50, 1200], step:25 MMID: [1, AVA9_DEFAULT_MODULARS - 1], 0 means all modulars miner_id: [0, miner_count], 0 means all miners eg: cgminer-api "ascset|0,frequency,300-1-0" cgminer-api "ascset|0,frequency,300-0-1"
Memo: Update polling delay for CGMiner Format: '''ascset|ASCN,delay,value''' ASCN: AUC index pdelay: [1, 65535] eg: cgminer-api "ascset|0,pdelay,1"
Memo: Reboot MM in the modular Format: '''ascset|ASCN,reboot,modularid''' ASCN: AUC index modularid: [1, AVA9_DEFAULT_MODULARS - 1] eg: cgminer-api "ascset|0,reboot,1"