Bitcoin Forum
November 19, 2024, 12:49:08 AM *
News: Check out the artwork 1Dq created to commemorate this forum's 15th anniversary
 
   Home   Help Search Login Register More  
Pages: « 1 ... 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 [279] 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 ... 843 »
  Print  
Author Topic: OFFICIAL CGMINER mining software thread for linux/win/osx/mips/arm/r-pi 4.11.1  (Read 5805643 times)
This is a self-moderated topic. If you do not want to be moderated by the person who started this topic, create a new topic. (3 posts by 1+ user deleted.)
P_Shep
Legendary
*
Offline Offline

Activity: 1804
Merit: 1230


This is not OK.


View Profile
May 24, 2012, 04:44:30 PM
Last edit: May 24, 2012, 05:21:12 PM by P_Shep
 #5561

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 Smiley
wogaut
Donator
Sr. Member
*
Offline Offline

Activity: 448
Merit: 250



View Profile
May 24, 2012, 04:50:06 PM
 #5562

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:
Code:
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/cgminer
Code:
unzip 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:
Code:
./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
Code:
curl-config --version
results in
Code:
libcurl 7.21.0
so the libcurl version should work.

Does anybody have an idea what the issue might be?



Inaba
Legendary
*
Offline Offline

Activity: 1260
Merit: 1000



View Profile WWW
May 24, 2012, 04:51:47 PM
 #5563

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 Offline

Activity: 1804
Merit: 1230


This is not OK.


View Profile
May 24, 2012, 04:54:01 PM
 #5564


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 Offline

Activity: 448
Merit: 250



View Profile
May 24, 2012, 05:40:55 PM
Last edit: May 24, 2012, 05:57:59 PM by wogaut
 #5565


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 works
Code:
LIBCURL_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 Offline

Activity: 1804
Merit: 1230


This is not OK.


View Profile
May 24, 2012, 06:00:46 PM
 #5566

Great! Smiley
crazyates
Legendary
*
Offline Offline

Activity: 952
Merit: 1000



View Profile
May 24, 2012, 09:34:44 PM
 #5567

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)

Tips? 1crazy8pMqgwJ7tX7ZPZmyPwFbc6xZKM9
Previous Trade History - Sale Thread
bulanula
Hero Member
*****
Offline Offline

Activity: 518
Merit: 500



View Profile
May 25, 2012, 03:15:23 PM
 #5568

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 Offline

Activity: 448
Merit: 250



View Profile
May 25, 2012, 06:39:58 PM
 #5569

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 Offline

Activity: 1804
Merit: 1230


This is not OK.


View Profile
May 25, 2012, 06:50:32 PM
 #5570

Use screen instead?

Look at the scripts in my dd-wrt implementation in my sig. may help you.
wogaut
Donator
Sr. Member
*
Offline Offline

Activity: 448
Merit: 250



View Profile
May 25, 2012, 07:10:14 PM
 #5571

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 Offline

Activity: 1804
Merit: 1230


This is not OK.


View Profile
May 25, 2012, 07:16:56 PM
 #5572

There's an updated to that script I've not added yet:

For the kill commands, change them to the following:

Code:
Killall -s SIGINT cgminer
sleep 1
Killall screen
kano
Legendary
*
Offline Offline

Activity: 4620
Merit: 1851


Linux since 1997 RedHat 4


View Profile
May 25, 2012, 10:45:46 PM
 #5573

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

Pool: https://kano.is - low 0.5% fee PPLNS 3 Days - Most reliable Solo with ONLY 0.5% fee   Bitcointalk thread: Forum
Discord support invite at https://kano.is/ Majority developer of the ckpool code - k for kano
The ONLY active original developer of cgminer. Original master git: https://github.com/kanoi/cgminer
wogaut
Donator
Sr. Member
*
Offline Offline

Activity: 448
Merit: 250



View Profile
May 26, 2012, 12:59:15 AM
 #5574

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
Sr. Member
****
Offline Offline

Activity: 392
Merit: 250


View Profile
May 26, 2012, 02:03:54 AM
 #5575

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 Offline

Activity: 4620
Merit: 1851


Linux since 1997 RedHat 4


View Profile
May 26, 2012, 02:19:38 AM
 #5576

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

Pool: https://kano.is - low 0.5% fee PPLNS 3 Days - Most reliable Solo with ONLY 0.5% fee   Bitcointalk thread: Forum
Discord support invite at https://kano.is/ Majority developer of the ckpool code - k for kano
The ONLY active original developer of cgminer. Original master git: https://github.com/kanoi/cgminer
dmcurser
Hero Member
*****
Offline Offline

Activity: 502
Merit: 500


View Profile
May 26, 2012, 02:34:14 AM
 #5577

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 Offline

Activity: 4620
Merit: 1851


Linux since 1997 RedHat 4


View Profile
May 26, 2012, 02:45:46 AM
 #5578

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 Smiley)
Start -> run -> cmd (or Start Menu -> accessories -> command prompt) ... or wherever it is now Tongue
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 ...

Pool: https://kano.is - low 0.5% fee PPLNS 3 Days - Most reliable Solo with ONLY 0.5% fee   Bitcointalk thread: Forum
Discord support invite at https://kano.is/ Majority developer of the ckpool code - k for kano
The ONLY active original developer of cgminer. Original master git: https://github.com/kanoi/cgminer
cuz0882
Sr. Member
****
Offline Offline

Activity: 392
Merit: 250


View Profile
May 26, 2012, 07:20:15 AM
 #5579

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 Offline

Activity: 4620
Merit: 1851


Linux since 1997 RedHat 4


View Profile
May 26, 2012, 01:33:24 PM
 #5580

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 devdetails

If you can't do that - then I give up Smiley

Pool: https://kano.is - low 0.5% fee PPLNS 3 Days - Most reliable Solo with ONLY 0.5% fee   Bitcointalk thread: Forum
Discord support invite at https://kano.is/ Majority developer of the ckpool code - k for kano
The ONLY active original developer of cgminer. Original master git: https://github.com/kanoi/cgminer
Pages: « 1 ... 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 [279] 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 ... 843 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!