Interesting evening getting these working on my pi.
Il detail my steps incase anyone is stuck.
Firstly, I used cgminer.config to save having my pool details in the launch string, to create this, type the following
cd
sudo nano cgminer.conf
///Paste the below info, editing the pool details\\\{
"pools" : [
{
"url" : "PoolAddress:Port",
"user" : "UserName.WorkerName",
"pass" : "Password"
}
]
,
"api-listen" : true,
"api-port" : "4028",
"expiry" : "120",
"failover-only" : true,
"log" : "5",
"no-pool-disable" : true,
"queue" : "2",
"scan-time" : "60",
"worktime" : true,
"shares" : "0",
"kernel-path" : "/usr/local/bin",
"api-allow" : "0/0",
}
///Press ctrl+x to exit, y to save the file and then the Enter key to confirm...\\\Now, its time to tackle cgminer itself.....
sudo apt-get install autoconf
git pull
https://github.com/bitmaintech/cgminerwget
http://ck.kolivas.org/apps/cgminer/3.8/cgminer-3.8.5.tar.bz2tar xvf cgminer-3.8.5.tar.bz2
mv ./cgminer-3.8.5/configure ./cgminer/configure
///This is done because the next command kept moaning that there was no configure directory, so I gave it one....\\\./autogen.sh
This takes a long time...../configure --enable-bmsc
This also takes a long time....make-j
Next, is that all important file change to stop cgminer crashing as discussed on page 2 of this topic, but basically...
cd
cd cgminer
sudo nano driver-bmsc.c
///Press ctrl+w then paste this...\\\memcpy((char *)&nonce, nonce_bin, sizeof(nonce_bin));
///Remove that and replace with this...\\\memcpy((char *)&nonce, nonce_bin, sizeof(nonce));
///Press ctrl+x to exit, y to save the file and then the Enter key to confirm...\\\To test, run the following...
sudo ./cgminer/cgminer --config /home/pi/cgminer.conf --bmsc-options 115200:20
You should see CGminer start mining, if you do, press CTRL+c to exit.
Then, I launch with the following line on bootup by typing...
sudo nano /etc/rc.local
Paste the line below befpore the Exit 0 line in there...nohup ./cgminer/cgminer --config /home/pi/cgminer.conf --bmsc-options 115200:20
This was (as im sure people realise) based heavily off of the adafruit PiMiner tutorial, but im putting it here in one single place so anyone such as me finds it easier to start mining with their Antminers.