Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Miner reports speed and then hangs without mining #5

Open
njappboy opened this issue Mar 21, 2014 · 7 comments
Open

Miner reports speed and then hangs without mining #5

njappboy opened this issue Mar 21, 2014 · 7 comments

Comments

@njappboy
Copy link

I'm running this on a raspberry pi Model B, with 2014-01-07-wheezy-raspbian.

After first boot and running the pi config I proceed to install cgminer-gc3355:

sudo apt-get update
sudo apt-get install libudev-dev libcurl4-openssl-dev
git clone github.com/dtbartle/cgminer-gc3355.git cgminer
cd cgminer
./configure --enable-scrypt --enable-gridseed
make && make install

The make/make install does output some errors:

pi@raspberrypi ~/cgminer $ sudo make && make install
make all-recursive
make[1]: Entering directory /home/pi/cgminer' Making all in lib make[2]: Entering directory/home/pi/cgminer/lib'
make all-recursive
make[3]: Entering directory /home/pi/cgminer/lib' make[4]: Entering directory/home/pi/cgminer/lib'
make[4]: Nothing to be done for all-am'. make[4]: Leaving directory/home/pi/cgminer/lib'
make[3]: Leaving directory /home/pi/cgminer/lib' make[2]: Leaving directory/home/pi/cgminer/lib'
Making all in compat
make[2]: Entering directory /home/pi/cgminer/compat' Making all in jansson-2.5 make[3]: Entering directory/home/pi/cgminer/compat/jansson-2.5'
make all-recursive
make[4]: Entering directory /home/pi/cgminer/compat/jansson-2.5' Making all in src make[5]: Entering directory/home/pi/cgminer/compat/jansson-2.5/src'
make[5]: Nothing to be done for all'. make[5]: Leaving directory/home/pi/cgminer/compat/jansson-2.5/src'
make[5]: Entering directory /home/pi/cgminer/compat/jansson-2.5' make[5]: Leaving directory/home/pi/cgminer/compat/jansson-2.5'
make[4]: Leaving directory /home/pi/cgminer/compat/jansson-2.5' make[3]: Leaving directory/home/pi/cgminer/compat/jansson-2.5'
Making all in libusb-1.0
make[3]: Entering directory /home/pi/cgminer/compat/libusb-1.0' make all-recursive make[4]: Entering directory/home/pi/cgminer/compat/libusb-1.0'
Making all in libusb
make[5]: Entering directory /home/pi/cgminer/compat/libusb-1.0/libusb' make[5]: Nothing to be done forall'.
make[5]: Leaving directory /home/pi/cgminer/compat/libusb-1.0/libusb' make[5]: Entering directory/home/pi/cgminer/compat/libusb-1.0'
make[5]: Leaving directory /home/pi/cgminer/compat/libusb-1.0' make[4]: Leaving directory/home/pi/cgminer/compat/libusb-1.0'
make[3]: Leaving directory /home/pi/cgminer/compat/libusb-1.0' make[3]: Entering directory/home/pi/cgminer/compat'
make[3]: Nothing to be done for all-am'. make[3]: Leaving directory/home/pi/cgminer/compat'
make[2]: Leaving directory /home/pi/cgminer/compat' Making all in ccan make[2]: Entering directory/home/pi/cgminer/ccan'
make[2]: Nothing to be done for all'. make[2]: Leaving directory/home/pi/cgminer/ccan'
make[2]: Entering directory /home/pi/cgminer' make[2]: Leaving directory/home/pi/cgminer'
make[1]: Leaving directory /home/pi/cgminer' Making install in lib make[1]: Entering directory/home/pi/cgminer/lib'
make install-recursive
make[2]: Entering directory /home/pi/cgminer/lib' make[3]: Entering directory/home/pi/cgminer/lib'
make[4]: Entering directory /home/pi/cgminer/lib' make[4]: Nothing to be done forinstall-exec-am'.
make[4]: Nothing to be done for install-data-am'. make[4]: Leaving directory/home/pi/cgminer/lib'
make[3]: Leaving directory /home/pi/cgminer/lib' make[2]: Leaving directory/home/pi/cgminer/lib'
make[1]: Leaving directory /home/pi/cgminer/lib' Making install in compat make[1]: Entering directory/home/pi/cgminer/compat'
Making install in jansson-2.5
make[2]: Entering directory /home/pi/cgminer/compat/jansson-2.5' Making install in src make[3]: Entering directory/home/pi/cgminer/compat/jansson-2.5/src'
make[4]: Entering directory /home/pi/cgminer/compat/jansson-2.5/src' /bin/mkdir -p '/usr/local/lib' /bin/bash ../libtool --mode=install /usr/bin/install -c libjansson.la '/usr/local/lib' libtool: install: /usr/bin/install -c .libs/libjansson.so.4.5.0 /usr/local/lib/libjansson.so.4.5.0 /usr/bin/install: cannot create regular file/usr/local/lib/libjansson.so.4.5.0': Permission denied
make[4]: *** [install-libLTLIBRARIES] Error 1
make[4]: Leaving directory /home/pi/cgminer/compat/jansson-2.5/src' make[3]: *** [install-am] Error 2 make[3]: Leaving directory/home/pi/cgminer/compat/jansson-2.5/src'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory /home/pi/cgminer/compat/jansson-2.5' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory/home/pi/cgminer/compat'
make: *** [install-recursive] Error 1

The make completes so I start cgminer:

sudo ./cgminer/cgminer --scrypt -o stratum+tcp://stratum-us.anc.hashfaster.com:3337 -u xxxxx.xx -p xx -T

But it hangs after the last line of output here:
screen shot 2014-03-21 at 10 31 17 am

@CartmanSPC
Copy link

I use:
sudo apt-get install build-essential autoconf automake pkg-config libtool libcurl4-openssl-dev libncurses5-dev libudev-dev

@njappboy
Copy link
Author

I'll retry the build with those libraries installed.

@njappboy
Copy link
Author

Retried but the result was the same. Never actually starts mining.

sudo apt-get update
sudo apt-get install build-essential autoconf automake pkg-config libtool libcurl4-openssl-dev libncurses5-dev libudev-dev

git clone git://github.com/dtbartle/cgminer-gc3355.git cgminer
cd cgminer
sudo autoconf
sudo ./configure --enable-scrypt --enable-gridseed --disable-opencl --prefix=/home/pi
sudo make && make install

@Mansouu
Copy link
Contributor

Mansouu commented Mar 30, 2014

Try to start cgminer with enabled hotplug:

--hotplug=1

@njappboy
Copy link
Author

njappboy commented Apr 1, 2014

Mansouu - thank you for the suggestion. I rebuilt the raspberrypi and cgminer-gc3355 and tried using --hotplug=1 switch, but I'm still seeing error output. I wish I could confirm if this is software or hardware related. The GC3355 is brand new so I'm hoping it is not the issue.

Here is the log output if anyone is interested.
[2014-04-01 21:14:45] Started cgminer 3.7.2
[2014-04-01 21:14:45] USB scan devices: checking for GSD devices
[2014-04-01 21:14:45] RES: thread starting
[2014-04-01 21:14:45] GSD looking for and found GSD 0483:5740
[2014-04-01 21:14:45] USB lock gridseed 1-4
[2014-04-01 21:14:45] RES: gridseed (1:4) lock=1
[2014-04-01 21:14:45] USB res lock gridseed 1-4
[2014-04-01 21:14:45] RES: gridseed (1:4) lock ok=1
[2014-04-01 21:14:45] USB init, kernel attached ... - GSD device 1:4
[2014-04-01 21:14:45] USB init, kernel detached ifinfo 0 interface 1 successfully - GSD device 1:4
[2014-04-01 21:14:45] USB init - GSD device 1:4 usbver=0200 prod='STM32 Virtual COM Port ' manuf='STMicroelectronics' serial='6D81337D5148'
[2014-04-01 21:14:45] GridSeed options: 'baud=115200,freq=1000,chips=5,modules=1,usefifo=0'
[2014-04-01 21:14:45] Device found, firmware version 01140113, driver version v3.8.5.20140210.02
[2014-04-01 21:14:45] System reseting
[2014-04-01 21:14:45] GSD0: GetResults (amt=0 err=-7 ern=25)
[2014-04-01 21:14:45] Set GC3355 core frequency to 1000 MHz
[2014-04-01 21:14:45] GSD looking for GSD 0483:5740 but found 0424:ec00 instead
[2014-04-01 21:14:45] GSD looking for GSD 10c4:ea60 but found 0424:ec00 instead
[2014-04-01 21:14:45] GSD looking for GSD 0403:6010 but found 0424:ec00 instead
[2014-04-01 21:14:45] GSD looking for GSD 067b:2303 but found 0424:ec00 instead
[2014-04-01 21:14:45] GSD looking for GSD 0483:5740 but found 0424:9512 instead
[2014-04-01 21:14:45] GSD looking for GSD 10c4:ea60 but found 0424:9512 instead
[2014-04-01 21:14:45] GSD looking for GSD 0403:6010 but found 0424:9512 instead
[2014-04-01 21:14:45] GSD looking for GSD 067b:2303 but found 0424:9512 instead
[2014-04-01 21:14:45] GSD looking for GSD 0483:5740 but found 1d6b:0002 instead
[2014-04-01 21:14:45] GSD looking for GSD 10c4:ea60 but found 1d6b:0002 instead
[2014-04-01 21:14:45] GSD looking for GSD 0403:6010 but found 1d6b:0002 instead
[2014-04-01 21:14:45] GSD looking for GSD 067b:2303 but found 1d6b:0002 instead
[2014-04-01 21:14:45] Probing for an alive pool
[2014-04-01 21:14:45] Testing pool stratum+tcp://stratum-us.anc.hashfaster.com:3337
[2014-04-01 21:14:45] Popping work to stage thread
[2014-04-01 21:14:46] Succeeded delayed connect
[2014-04-01 21:14:46] Failed to get sessionid in initiate_stratum
[2014-04-01 21:14:46] Pool 0 difficulty changed to 16
[2014-04-01 21:14:46] Stratum authorisation success for pool 0
[2014-04-01 21:14:46] Pool 0 stratum+tcp://stratum-us.anc.hashfaster.com:3337 alive
[2014-04-01 21:14:46] Pushing sem post to thread 0
[2014-04-01 21:14:46] Work update message received
[2014-04-01 21:14:46] Selecting pool 0 for work
[2014-04-01 21:14:46] Generated stratum merkle 8faafa708e46cb0a73147d6b29c9ddd53f8dfe71cb933ad30e36cee17cdf1458
[2014-04-01 21:14:46] Generated stratum header 000000019ef836874e08aada79dc5913aa611990a6924b114023133a09c1004da5fe91e98faafa708e46cb0a73147d6b29c9ddd53f8dfe71cb933ad30e36cee17cdf1458533b2c1e1c065e3b000000000000008000000000000000000000000000000000000000000000000000000000000000
[2014-04-01 21:14:46] Work job_id 769e nonce2 0 ntime 533b2c1e
[2014-04-01 21:14:46] API not running - API will not be available
[2014-04-01 21:14:46] Generated target 000000000000000000000000000000000000000000000000000000f0ff0f0000
[2014-04-01 21:14:46] Generated stratum work
[2014-04-01 21:14:46] Pushing work from pool 0 to hash queue
[2014-04-01 21:14:46] Network diff set to 40
[2014-04-01 21:14:46] Waiting on sem in miner thread
[2014-04-01 21:14:46] New block: a5fe91e909c1004d4023133aa6924b11aa61199079dc59134e08aada9ef83687... diff 40
[2014-04-01 21:14:46] Popping work from get queue to get work
[2014-04-01 21:14:46] Selecting pool 0 for work
[2014-04-01 21:14:46] Generated stratum merkle cc46789e4ec6fc85e2b58c80de7df60128f53e5cb766f22d508f1a0acaa5109e
[2014-04-01 21:14:46] Got work from get queue to get work for thread 0
[2014-04-01 21:14:46] Generated stratum header 000000019ef836874e08aada79dc5913aa611990a6924b114023133a09c1004da5fe91e9cc46789e4ec6fc85e2b58c80de7df60128f53e5cb766f22d508f1a0acaa5109e533b2c1e1c065e3b000000000000008000000000000000000000000000000000000000000000000000000000000000
[2014-04-01 21:14:46] Work job_id 769e nonce2 1 ntime 533b2c1e
[2014-04-01 21:14:46] Generated target 000000000000000000000000000000000000000000000000000000f0ff0f0000
[2014-04-01 21:14:46] Generated stratum work
[2014-04-01 21:14:46] Pushing work from pool 0 to hash queue
[2014-04-01 21:14:46] Selecting pool 0 for work
[2014-04-01 21:14:46] Generated stratum merkle 8c1614f304e00bd4a959a30ce841afa221ffb3326d97f9398ab1392fe36bb673
[2014-04-01 21:14:46] Generated stratum header 000000019ef836874e08aada79dc5913aa611990a6924b114023133a09c1004da5fe91e98c1614f304e00bd4a959a30ce841afa221ffb3326d97f9398ab1392fe36bb673533b2c1e1c065e3b000000000000008000000000000000000000000000000000000000000000000000000000000000
[2014-04-01 21:14:46] Work job_id 769e nonce2 2 ntime 533b2c1e
[2014-04-01 21:14:46] Generated target 000000000000000000000000000000000000000000000000000000f0ff0f0000
[2014-04-01 21:14:46] Generated stratum work
[2014-04-01 21:14:46] Pushing work from pool 0 to hash queue
[2014-04-01 21:14:46] Generated target 00000000000000000000000000000000000000000000000000000000ffff0000
[2014-04-01 21:14:47] GSD0: GetResults (amt=0 err=-7 ern=25)
[2014-04-01 21:14:47] GSD0: GetResults (amt=0 err=-7 ern=25)
[2014-04-01 21:14:47] GSD0: GetResults (amt=0 err=-7 ern=25)
[2014-04-01 21:14:47] GSD0: GetResults (amt=0 err=-7 ern=25)
[2014-04-01 21:14:47] GSD0: GetResults (amt=0 err=-7 ern=25)
[2014-04-01 21:14:47] GSD0: GetResults (amt=0 err=-7 ern=25)
[2014-04-01 21:14:47] GSD0: GetResults (amt=0 err=-7 ern=25)
[2014-04-01 21:14:47] GSD0: GetResults (amt=0 err=-7 ern=25)
[2014-04-01 21:14:47] GSD0: GetResults (amt=0 err=-7 ern=25)
[2014-04-01 21:14:47] GSD0: GetResults (amt=0 err=-7 ern=25)
[2014-04-01 21:14:47] [thread 0: 449392 hashes, 421.8 khash/sec]

@ghost
Copy link

ghost commented Apr 7, 2014

You are probably running cgminer from the folder you compiled it in, but your initial install with sudo make && make install won't actually install it to the system. You have to use sudo make install, obviously. Not sure why nobody realized this from the errors in his first post. Also, as far as I know, you'll have to run sudo cgminer if you've properly used make install.

freq=1000,chips=5,modules=1,usefifo=0 - That's a pretty high frequency. I don't think this version of cgminer supports modules=. Not sure why you have usefifo= set, either. All you need is freq=850 for your settings, to start with.

@njappboy
Copy link
Author

So the reason for the errors was not enough amps. Moved up to a 7amp power supply and I'm good. Of course I didn't use cgminer-gc3355, instead I took the zoomhash.com raspberry pi image and have the Gridseed controlled by the pi. Works like a charm now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants