Title: asic mining on raspberian on a pi Post by: gravitate on July 19, 2013, 06:37:03 AM I have read the adfruit guide with an lcd screen ansd tried to modify it to work via ssh only but can not get my block eruptors mining. This is what I do:
Or to delete the download and start again with the make while in the topmost cgminer directory This will delete the entire directory cd .. then type rm -rf /cgminer-3.1.1 You probably have all the files but start here anyway sudo apt-get install libusb-1.0-0-dev libusb-1.0-0 libcurl4-openssl-dev libncurses5-dev libudev-dev wget http://ck.kolivas.org/apps/cgminer/3.1/ ... .1.tar.bz2 2 & 3!! tar xvf cgminer-3.1.1.tar.bz2 cd cgminer-3.1.1 ./configure --enable-icarus make Crucial to look for any errors after the config and then after you run make We can now test it with export DISPLAY=:0 ./cgminer SEE BELOW 1 if nothing It won't work but it should say can't find any usb devices then continue on by making the conf file and run the last command. sudo nano cgminer.conf stratum.bitcoin.cz:3333 .worker1 password copy the file in and put in your settings now ready to run ./cgminer-3.1.1/cgminer --config /home/pi/cgminer.conf -S /dev/ttyUSB0 -S /dev/ttyUSB1 >/dev/null 2>&1& troubleshouting dmesg | grep -i usb dmesg | grep -i tty Those two should show a lot of info maybe copy it all into a doc. Run one and look over the lines for anything suspicious like failures, etc then do the same for tty. Q: On linux I can see the /dev/ttyUSB* devices for my Icarus FPGAs, but cgminer can't mine on them A: Make sure you have the required priviledges to access the /dev/ttyUSB* devices: sudo ls -las /dev/ttyUSB* will give output like: 0 crw-rw---- 1 root dialout 188, 0 2012-09-11 13:49 /dev/ttyUSB0 This means your account must have the group 'dialout' or root privileges To see what groups an account has groups <username> To permanently give your account the 'dialout' group: sudo usermod -G dialout -a `whoami` Then logout and back in again 1. The first part ./cgminer It doesn't show any errors? I can't figure out what it's doing it should return something. You can type ps aux | grep cgminer As seen in this pic the second line root 4097, root 4098 look for a line that has cgminer at the end (example shows python Piminer.py look in that spot for cgminer) Like this one After root is the PID use this line to kill cgminer if it is running sudo kill 4097 In the first example PiMiner.py is running under the PID of 4097 find the PID of cgminer and kill it. Also the instructions do show that the conf file is not in the cgminer directory you point to it in the run line --config /home/pi/cgminer.conf I missed that part (they do make good tutorials but if you skip a line it's can get messy it seems like you followed it word for word but are getting something not expected) 2. wget http://ck.kolivas.org/apps/cgminer/3.1/ ... .1.tar.bz2 3. wget http://ck.kolivas.org/apps/cgminer/3.1/ ... .1.tar.bz2 But everytime I try and run ./cgminer-3.1.1/cgminer --config /home/pi/cgminer.conf -S /dev/ttyUSB0 >/dev/null 2>&1& Nothing happens apart from [1] 2191 Does anyone have any ideas please :( Title: Re: asic mining on raspberian on a pi Post by: J35st3r on July 19, 2013, 06:55:42 AM But everytime I try and run ./cgminer-3.1.1/cgminer --config /home/pi/cgminer.conf -S /dev/ttyUSB0 >/dev/null 2>&1& Nothing happens apart from [1] 2191 I'll just mention the obvious that you won't get any output if you're redirecting to /dev/null. If you do want to run it in the background and see the output I'd suggest using a log file eg. ./cgminer-3.1.1/cgminer --config /home/pi/cgminer.conf -S /dev/ttyUSB0 >cgminer.log 2>&1& Then "tail -f cgminer.log" to monitor its progress. But this doesn't solve your original problem of getting it to mine (sorry). PS. Its a bit difficult to see from your post which parts you've quoted from the tutorial and which you've actually written yourself, but just to be sure, have you actually tried running the miner interactively ie without the redirects and the final & which places it in background? ./cgminer-3.1.1/cgminer --config /home/pi/cgminer.conf -S /dev/ttyUSB0 |