Post
Topic
Board Mining support
Re: Bitmain AntMiner U1 Tips & Tricks
by
chadgroover
on 10/01/2014, 22:50:37 UTC
I tend to get the same, first lock up after around 5-15 mins and the next one after a reboot around 9 hrs later.

Im just gonna deal with it for now until CGMiner fully supports these. I really cant be bothered formatting the SD card, following the adafruit tutorial and getting CGMiner working again.

Just ran PS -ef on mine and also see high CPU useage

Code:
root      2108  2106 28 04:50 ?        01:06:53 python PiMiner.py
root      2109  2106 70 04:50 ?        02:44:05 ./fractalbc/cgminer/cgminer --co

Perhaps its due to how I run cgminer. (nohup) is there a better way to spawn a process that keeps running all the time?

I dunno... I normally just go with a basic script file placed in /etc/init.d and then run "update-rc.d defaults"

I decided to just bite the bullet and start from scratch anyway... Started with a clean Raspbian install (07/01/14 image)
Built cgminer with the following (dropped into a script and ran that as sudo);

Code:
apt-get update
apt-get install git pkg-config libtool autoconf automake libcurl4-openssl-dev libncurses5-dev libudev-dev -y
git clone https://github.com/fractalbc/cgminer.git cgminer-fractalbc
cd cgminer-fractalbc
./autogen.sh
./configure --enable-bmsc --enable-icarus --enable-bitfury
make

Started cgminer without even touching a .conf file;
Code:
sudo ./cgminer --bmsc-options 115200:20 -o eu-stratum.btcguild.com:3333 -u xxxxx -p xxxx --bmsc-freq 0881 --api-listen

Then followed the steps from the following to make sure that the plate was working OK;
http://learn.adafruit.com/adafruit-16x2-character-lcd-plus-keypad-for-raspberry-pi/usage

Then git clone https://github.com/adafruit/PiMiner.git
And finally, sudo python PiMiner/PiMiner.py &

At first it went straight from showing the IP address to "connecting to cgminer" (which might sound bad, bit was more promising than my last efforts!)
So I tried killing cgminer and launching again with  "--api-allow 0/0" at the end of the command line, and hey presto it finally worked!
The bizarre thing is, I haven't really done anything differently to last time! Go figure!

Running for 20+ minutes now and cgminer has been perfectly stable with 0%-1% CPU usage whenever I check (PiMiner consistently seems to take up 28%-30%, but I can live with that!)

Thanks again to fractalbc for stepping up and doing an awesome job, and thanks to cs2000 for showing me the light at the end of the tunnel!

http://s23.postimg.org/umauhwo6j/2014_01_10_22_45_38.jpg