Heya,
I like being able to manage CipherMine's hardware via APIs. With our Avalons all we can do is read from them which is a bit frustrating (can't modify pool listings for instance, which is how our software switches between coins), but since the BitFuries are based on a Raspberry Pi and Debian (I think) I'm hopeful we can get the API working.
The presence ofhome/pi/bfgminer suggests that they use bfgminer or some fork of it.etc/rc.local callsopt/bitfury/start-stratumproxy.sh andopt/bitfury/start-miner.sh, the latter of which is presumably the thing that starts actual mining. start-miner.sh is pretty minimalist too:
#!/bin/sh
killall miner
cpopt/bitfury/empty_stat.jsonrun/shm/stat.json
if [ -fopt/bitfury/best.cnf ]; then
cpopt/bitfury/best.cnfrun/shm/.chip.cnf
fi
cdrun/shm
screen -d -mopt/bitfury/chainminer/miner
exit 0
/opt/bitfury/best.cnf is not present on our units, norrun/shm/.chip.cnf. That file is a potential candidate for some configuration, but if so I don't know what it should look like.
My first thought /opt/bitfury/chainminer/miner (a binary file) is a custom compiled version of bfgminer, but having run it I've concluded that's not the case. I can achieve what I want just with some command-line options to bfgminer which is the frustrating thing. I tried changing the above to:
screen -d -mopt/bitfury/chainminer/miner --api-listen --api-port 5001 --api-allow W:127.0.0.1
But that didn't appear to do anything:
root@bitfury:~# telnet 127.0.0.1 5001
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
Any suggestions?
Kate.
EDIT: Punin responded almost instantly - the man's dedicated to supporting his customers is awe-inspiring!We are not in fact using BFGMiner by default although the latest version supports our product. Our own software is called chainminer and can be found inopt/bitfury/chainminer
Our web based setup interface also works together with chainminer. If you want to run bfgminer, you must modify youretc/rc.local or start-miner.sh to run bfgminer instead of chainminer. Please see github for latest version of BFGMiner that will work with your unit.
If you want to tweak things by hand please let the rig run for 5-10 mins then run:
cprun/shm/.stat.logopt/bitfury/best.cnf
and then edit the file.
I guess compiling bfgminer it is then!