P_Shep
Legendary
Offline
Activity: 1804
Merit: 1230
This is not OK.
|
|
May 24, 2012, 04:44:30 PM Last edit: May 24, 2012, 05:21:12 PM by P_Shep |
|
I don't know, I think success should return success, and failure should return failure. In this case, it terminates a successful conversion with failure. Also, I changed it in my code to || last night... still working fine for me
|
|
|
|
wogaut
Donator
Sr. Member
Offline
Activity: 448
Merit: 250
|
|
May 24, 2012, 04:50:06 PM |
|
I'm reposting this from this newbie thread (since I think here's a better place for it: Re: Running an FPGA on Raspberry Pi, possible? OK, here's how far I got installing cgminer on my Raspberry Pi: sudo apt-get update sudo apt-get install autoconf sudo apt-get install libtool sudo apt-get install libncurses-dev sudo apt-get install yasm sudo apt-get install curl sudo apt-get install libcurl4-openssl-dev sudo apt-get install pkg-config
Download zip archive from https://github.com/ckolivas/cgminerunzip ckolivas-cgminer-v2.4.1-9-gb69d735.zip cd ckolivas-cgminer-b69d735/ ./autogen.sh ./configure --enable-bitforce
configure then quits after a while with the following errors: ./configure: line 9269: syntax error near unexpected token `PKG_CHECK_MODULES' ./configure: line 9269: `PKG_CHECK_MODULES(LIBCURL, libcurl >= 7.15.6, AC_DEFINE([CURL_HAS_SOCKOPT], [1], [Defined if version of curl supports sockopts.]),'
Doing a results in so the libcurl version should work. Does anybody have an idea what the issue might be?
|
|
|
|
Inaba
Legendary
Offline
Activity: 1260
Merit: 1000
|
|
May 24, 2012, 04:51:47 PM |
|
got libcurl-dev installed?
|
If you're searching these lines for a point, you've probably missed it. There was never anything there in the first place.
|
|
|
P_Shep
Legendary
Offline
Activity: 1804
Merit: 1230
This is not OK.
|
|
May 24, 2012, 04:54:01 PM |
|
Does anybody have an idea what the issue might be?
to get it working in openwrt, i had to manually specify the location of the lib. LIBCURL_CFLAGS=-L/path/to/lib LIBCURL_LIBS=-lcurl
|
|
|
|
wogaut
Donator
Sr. Member
Offline
Activity: 448
Merit: 250
|
|
May 24, 2012, 05:40:55 PM Last edit: May 24, 2012, 05:57:59 PM by wogaut |
|
Does anybody have an idea what the issue might be?
to get it working in openwrt, i had to manually specify the location of the lib. LIBCURL_CFLAGS=-L/path/to/lib LIBCURL_LIBS=-lcurl Good catch, but after defining these variables myself ./configure worksLIBCURL_CFLAGS='-I/usr/include/curl' LIBCURL_LIBS='-L/usr/lib -lcurl' and having a closer look at the error, it appears to me that it doesn't like the syntax of PKG_CHECK_MODULES. Commenting out these two lines unfortunately leads to an undefined variable ACEOF which causes more issues. Did you have these issues too?Scratch that, I had to run aclocal before ./autogen.sh
|
|
|
|
P_Shep
Legendary
Offline
Activity: 1804
Merit: 1230
This is not OK.
|
|
May 24, 2012, 06:00:46 PM |
|
Great!
|
|
|
|
crazyates
Legendary
Offline
Activity: 952
Merit: 1000
|
|
May 24, 2012, 09:34:44 PM |
|
Question: If I upgrade one of my 58XX cards to a 79XX card, and consequently upgrade my SDK from 2.5 to 2.6, I can still use the phatk .bin from 2.5 on the 5870, correct?
2.6 will be installed, but I'd be using a phatk.bin from 2.5 on my 5870, and a diakgcn.bin from 2.6 on the 79XX for the best speed, correct?
Now how do I keep those .bins in use in future versions of CGMiner? (I do keep backups of my known good working bins in a separate folder)
|
|
|
|
bulanula
|
|
May 25, 2012, 03:15:23 PM |
|
They will only clock back up if the temperature drops enough again.
How long will this take ? I left them about 15 minutes after the heat stopped and the cold begun and they did not clock back automatically ( I had to do it manually ). Thanks !
|
|
|
|
wogaut
Donator
Sr. Member
Offline
Activity: 448
Merit: 250
|
|
May 25, 2012, 06:39:58 PM |
|
I've been trying to run cgminer with remoting into my Raspberry Pi via ssh. I tried no use nohup to avoid for cgminer to receive a SIGHUP when I leave ssh, but whenever the input is redirected no /dev/null (what nohup does), cgminer maxes out the CPU usage. Bad thing on the RPi.
How can I get around this?
|
|
|
|
P_Shep
Legendary
Offline
Activity: 1804
Merit: 1230
This is not OK.
|
|
May 25, 2012, 06:50:32 PM |
|
Use screen instead?
Look at the scripts in my dd-wrt implementation in my sig. may help you.
|
|
|
|
wogaut
Donator
Sr. Member
Offline
Activity: 448
Merit: 250
|
|
May 25, 2012, 07:10:14 PM |
|
Use screen instead?
Look at the scripts in my dd-wrt implementation in my sig. may help you.
Ah, the S99cgminer script I presume. I'll try the screen command. Thanks!
|
|
|
|
P_Shep
Legendary
Offline
Activity: 1804
Merit: 1230
This is not OK.
|
|
May 25, 2012, 07:16:56 PM |
|
There's an updated to that script I've not added yet: For the kill commands, change them to the following: Killall -s SIGINT cgminer sleep 1 Killall screen
|
|
|
|
kano
Legendary
Offline
Activity: 4620
Merit: 1851
Linux since 1997 RedHat 4
|
|
May 25, 2012, 10:45:46 PM |
|
I've been trying to run cgminer with remoting into my Raspberry Pi via ssh. I tried no use nohup to avoid for cgminer to receive a SIGHUP when I leave ssh, but whenever the input is redirected no /dev/null (what nohup does), cgminer maxes out the CPU usage. Bad thing on the RPi.
How can I get around this?
Add to cgminer: ... --api-listen --api-allow W:127.0.0.1,192.168.0/24 ... (of course you'll have to correct 192.168.0 to match your network) Then to exit cgminer: echo -n quit | nc 127.0.0.1 4028 ; echo OR, if you don't have nc (or ncat) then you can use: java API quit if you have API.class in the current directory i.e. see if a clean exit resolves it Also, killing screen after 1 second is often before cgminer completes exiting (since it has to wait on a bunch of threads and then exit with the summary) ... just get the screen to exit when cgminer exits Edit: OK that reply is a mix of comments to the previous posts ... but the point is yes use screen ... and also a clean exit
|
|
|
|
wogaut
Donator
Sr. Member
Offline
Activity: 448
Merit: 250
|
|
May 26, 2012, 12:59:15 AM |
|
I've been trying to run cgminer with remoting into my Raspberry Pi via ssh. I tried no use nohup to avoid for cgminer to receive a SIGHUP when I leave ssh, but whenever the input is redirected no /dev/null (what nohup does), cgminer maxes out the CPU usage. Bad thing on the RPi.
How can I get around this?
Add to cgminer: ... --api-listen --api-allow W:127.0.0.1,192.168.0/24 ... (of course you'll have to correct 192.168.0 to match your network) Then to exit cgminer: echo -n quit | nc 127.0.0.1 4028 ; echo OR, if you don't have nc (or ncat) then you can use: java API quit if you have API.class in the current directory i.e. see if a clean exit resolves it Also, killing screen after 1 second is often before cgminer completes exiting (since it has to wait on a bunch of threads and then exit with the summary) ... just get the screen to exit when cgminer exits Edit: OK that reply is a mix of comments to the previous posts ... but the point is yes use screen ... and also a clean exit screen works well. the api-listen I'll try soon too, seems quite convenient for remote control.
|
|
|
|
cuz0882
|
|
May 26, 2012, 02:03:54 AM |
|
Since I updated cgminer the program seems to freeze up a lot. My pool will report that the miner disconnects and reconnects every couple minutes. If I then restart cgminer, it stops responding and even task manager can't close it. It has happened on most of my rigs. Is anyone else having this problem?
|
|
|
|
kano
Legendary
Offline
Activity: 4620
Merit: 1851
Linux since 1997 RedHat 4
|
|
May 26, 2012, 02:19:38 AM |
|
Since I updated cgminer the program seems to freeze up a lot. My pool will report that the miner disconnects and reconnects every couple minutes. If I then restart cgminer, it stops responding and even task manager can't close it. It has happened on most of my rigs. Is anyone else having this problem?
Firstly, make sure you always run with --api-listen (at least) Then on a rig that has disconnected and reconnected many times, post here the output of 'devdetails' and 'notify' On windows, the easiest is probably a command prompt in the cgminer directory and type: java API devdetails java API notify
|
|
|
|
dmcurser
|
|
May 26, 2012, 02:34:14 AM |
|
can you write exactly what i need to type and i will do it for you it seem mine freeze up after a few hours but it doesn't freeze my comp just cg
|
1Q7TPBHHVmGCvqffYHpXCCBgbcBQ4NwXdW
|
|
|
kano
Legendary
Offline
Activity: 4620
Merit: 1851
Linux since 1997 RedHat 4
|
|
May 26, 2012, 02:45:46 AM |
|
can you write exactly what i need to type and i will do it for you it seem mine freeze up after a few hours but it doesn't freeze my comp just cg
Well it relates to cuz0882 since he says he is getting disconnects and 'notify' might say why Anyway, make sure you also include --api-listen when running cgminer then: (above reworded ) Start -> run -> cmd (or Start Menu -> accessories -> command prompt) ... or wherever it is now then cd to wherever cgminer is then the two commands (assuming you have java installed): java API devdetails java API notify (before cgminer freezes) Edit: of course if you are just overclocking you card too far, you simply just need to clock it down a bit more ...
|
|
|
|
cuz0882
|
|
May 26, 2012, 07:20:15 AM |
|
Firstly, make sure you always run with --api-listen (at least) Then on a rig that has disconnected and reconnected many times, post here the output of 'devdetails' and 'notify' On windows, the easiest is probably a command prompt in the cgminer directory and type: java API devdetails java API notify [/quote] I have java 7 installed but the commands are not recognized. I put api listen on though.
|
|
|
|
kano
Legendary
Offline
Activity: 4620
Merit: 1851
Linux since 1997 RedHat 4
|
|
May 26, 2012, 01:33:24 PM |
|
Firstly, make sure you always run with --api-listen (at least) Then on a rig that has disconnected and reconnected many times, post here the output of 'devdetails' and 'notify' On windows, the easiest is probably a command prompt in the cgminer directory and type: java API devdetails java API notify
I have java 7 installed but the commands are not recognized. I put api listen on though. Well if you just type java and it gives an error that java is not found then it wont work - oh well. If on the other hand when you type java you get a reply stating the options for java then for some unknown reason you didn't cd to the directory where cgminer is. In the cgminer directory there is a file API.class which means you can type java API notify when that is your current directory Also type java API devdetailsIf you can't do that - then I give up
|
|
|
|
|