Bitcoin Forum
February 17, 2019, 03:04:14 PM *
News: Latest Bitcoin Core release: 0.17.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 ... 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 [360] 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 ... 844 »
  Print  
Author Topic: OFFICIAL CGMINER mining software thread for linux/win/osx/mips/arm/r-pi 4.11.1  (Read 5776338 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. (2 posts by 2 users deleted.)
BitMinerN8
Hero Member
*****
Offline Offline

Activity: 626
Merit: 500


Mining since May 2011.


View Profile
September 27, 2012, 05:29:37 PM
 #7181

While I see r-pi listed in the subject, I see no instructions or downloads provided. Am I missing something?

I think it was more of a statement, "cgminer works on a Pi" like "cgminer works on Windows". I personally have many BFLs on several Pi, for which it works rather well.  Actually mining with it, not so much.
Creating a Bitcoin client that fully implements the network protocol is extremely difficult. Bitcoin Core and some of its derivatives are the only known safe implementations of full nodes. Some other projects attempt to compete, but it is not recommended to use such software for anything serious. (Lightweight clients like Electrum and Bither are OK.)
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1550415854
Hero Member
*
Offline Offline

Posts: 1550415854

View Profile Personal Message (Offline)

Ignore
1550415854
Reply with quote  #2

1550415854
Report to moderator
streetuff
Full Member
***
Offline Offline

Activity: 150
Merit: 100



View Profile
September 27, 2012, 05:34:21 PM
 #7182

While I see r-pi listed in the subject, I see no instructions or downloads provided. Am I missing something?

I think it was more of a statement, "cgminer works on a Pi" like "cgminer works on Windows". I personally have many BFLs on several Pi, for which it works rather well.  Actually mining with it, not so much.

i got my 2nd pi in the mailbox last week. at the moment i got some problems with wireless under raspbian. want to drive my ztex single and ztex quad with it anytime soon... :-D
-ck
Moderator
Legendary
*
Offline Offline

Activity: 2786
Merit: 1154


Ruu \o/


View Profile WWW
September 27, 2012, 05:45:00 PM
 #7183

While I see r-pi listed in the subject, I see no instructions or downloads provided. Am I missing something?

stock 700mhz ARM gets right around 118Kh/s.
You  do not mine with the hardware itself... you use it to attach FPGAs to mine with.

Developer/maintainer for cgminer and ckpool/ckproxy.
ZERO FEE Pooled mining at ckpool.org, 1% Fee Solo mining at solo.ckpool.org
-ck
ocminer
Legendary
*
Offline Offline

Activity: 2338
Merit: 1229



View Profile WWW
September 27, 2012, 06:35:01 PM
 #7184

After upgrading some of my rigs most of them fail with this segmentation fault:

http://imageshack.us/a/img211/3752/bildschirmfoto20120927u.png


http://imageshack.us/a/img836/397/bildschirmfoto20120927ub.png

Ideas ? Smiley

suprnova pools - reliable mining pools - #suprnova on freenet
https://www.suprnova.cc - FOLLOW us @ Twitter ! twitter.com/SuprnovaPools
Krak
Hero Member
*****
Offline Offline

Activity: 591
Merit: 500



View Profile WWW
September 27, 2012, 06:38:40 PM
 #7185

After upgrading some of my rigs most of them fail with this segmentation fault:

http://imageshack.us/a/img211/3752/bildschirmfoto20120927u.png


http://imageshack.us/a/img836/397/bildschirmfoto20120927ub.png

Ideas ? Smiley
Weird, I've been getting HW errors after upgrading to 2.7.6 also. I thought my GPU was on the way out because I've never gotten any before.

BTC: 1KrakenLFEFg33A4f6xpwgv3UUoxrLPuGn
ocminer
Legendary
*
Offline Offline

Activity: 2338
Merit: 1229



View Profile WWW
September 27, 2012, 07:27:10 PM
 #7186

I've had few H/W error before also, but cgminer 2.7.6 seems to "freak out" and crashes randomly when a h/w error occurs.

thats not the case with good old 2.4.2, it just counts up the errors Smiley

suprnova pools - reliable mining pools - #suprnova on freenet
https://www.suprnova.cc - FOLLOW us @ Twitter ! twitter.com/SuprnovaPools
kano
Legendary
*
Offline Offline

Activity: 2730
Merit: 1103


Linux since 1997 RedHat 4


View Profile
September 27, 2012, 10:07:07 PM
Last edit: September 27, 2012, 10:18:03 PM by kano
 #7187

I've had few H/W error before also, but cgminer 2.7.6 seems to "freak out" and crashes randomly when a h/w error occurs.

thats not the case with good old 2.4.2, it just counts up the errors Smiley
As per the README FAQ ...
Add "-T -D --verbose"
and post a log

However, it's better with a core dump to show exactly where the problem is.
Before you run cgminer:
ulimit -c 2097152

However that won't give much details about where it crashed without:

If you compile it your self, then (as I said 2 pages back):
CFLAGS="-g -W -Wall" ./autogen.sh --enable-icarus --enable-bitforce --enable-ztex --enable-modminer --enable-scrypt
make clean
make


And of course you don't have to include all the options on the end you don't need ... Smiley

Once it crashes you'll have a core.nnnn in the directory
where nnnn is the process number.
Find it with
ls -ort core*

Then:
gdb cgminer core.nnnn
bt


and bt will tell you where it crashed ... to add to the pastebin


Edit: however, with that many errors, it's likely to just be in the ATI driver and you probably need to clock it down more?
Nope - it doesn't look like it's lots of error in the HW: counter ... anyway as above ...

Pool: https://kano.is Here on Bitcointalk: Forum BTC: 1KanoPb8cKYqNrswjaA8cRDk4FAS9eDMLU
FreeNode IRC: irc.freenode.net channel #kano.is Majority developer of the ckpool code
Help keep Bitcoin secure by mining on pools with full block verification on all blocks - and NO empty blocks!
kano
Legendary
*
Offline Offline

Activity: 2730
Merit: 1103


Linux since 1997 RedHat 4


View Profile
September 27, 2012, 10:16:25 PM
 #7188

Thanks kano, --no-restart worked, you are right, the fan reading on gpu 3 fails, even though
all three cards are 5970s, so there is actually just 1 fan on each card..

Strange that it works with card 0 and card 2, but not card 1 ?!

Maybe a BIOS error of the card ??

I actually only have the problem on this particular rig..

here a screenshot:
http://imageshack.us/a/img685/3752/bildschirmfoto20120927u.png

My only guess now, as I mentioned before, you may need --gpu-map
It looks like it not associating the fan with both GPUs ... but I don't have any dual GPU cards so I've no idea other than read the README Smiley

Pool: https://kano.is Here on Bitcointalk: Forum BTC: 1KanoPb8cKYqNrswjaA8cRDk4FAS9eDMLU
FreeNode IRC: irc.freenode.net channel #kano.is Majority developer of the ckpool code
Help keep Bitcoin secure by mining on pools with full block verification on all blocks - and NO empty blocks!
ocminer
Legendary
*
Offline Offline

Activity: 2338
Merit: 1229



View Profile WWW
September 28, 2012, 01:30:23 AM
 #7189

Hey Kano,

did that now, exactly same crash, this is my "debugging info":


License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /home/ocminer/cgminer-2.7.6/cgminer...done.
[New LWP 29064]
[New LWP 23278]
[New LWP 23279]
[New LWP 23277]
[New LWP 23298]
[New LWP 23295]
[New LWP 23291]
[New LWP 23289]
[New LWP 23287]
[New LWP 23285]
[New LWP 23282]
[New LWP 23280]
[New LWP 23313]
[New LWP 23301]
[New LWP 23300]
[New LWP 23293]
[New LWP 23299]
[New LWP 23281]
[New LWP 23283]
[New LWP 23292]
[New LWP 23297]
[New LWP 23296]
[New LWP 23294]
[New LWP 23290]
[New LWP 23286]
[New LWP 23288]

warning: Can't read pathname for load map: Eingabe-/Ausgabefehler. (<-- That means I/O Error in german)
[Thread debugging using libthread_db enabled]
Core was generated by `./cgminer -o http://us.eclipsemc.com:8337 -u ocminer_bkw02 -p ****** -o http://pit'.
Program terminated with signal 11, Segmentation fault.
#0  0x00000000004308a7 in postcalc_hash (userdata=0x329f020) at findnonce.c:256
256                     uint32_t nonce = pcd->res[entry];
(gdb) bt
#0  0x00000000004308a7 in postcalc_hash (userdata=0x329f020) at findnonce.c:256
#1  0x00007f4e485ccefc in start_thread ()
   from /lib/x86_64-linux-gnu/libpthread.so.0
#2  0x00007f4e47a3659d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#3  0x0000000000000000 in ?? ()
(gdb)

Is that of any help ??

suprnova pools - reliable mining pools - #suprnova on freenet
https://www.suprnova.cc - FOLLOW us @ Twitter ! twitter.com/SuprnovaPools
kano
Legendary
*
Offline Offline

Activity: 2730
Merit: 1103


Linux since 1997 RedHat 4


View Profile
September 28, 2012, 01:52:50 AM
 #7190

Hey Kano,

did that now, exactly same crash, this is my "debugging info":

...

warning: Can't read pathname for load map: Eingabe-/Ausgabefehler. (<-- That means I/O Error in german)
[Thread debugging using libthread_db enabled]
Core was generated by `./cgminer -o http://us.eclipsemc.com:8337 -u ocminer_bkw02 -p ****** -o http://pit'.
Program terminated with signal 11, Segmentation fault.
#0  0x00000000004308a7 in postcalc_hash (userdata=0x329f020) at findnonce.c:256
256                     uint32_t nonce = pcd->res[entry];
(gdb) bt
#0  0x00000000004308a7 in postcalc_hash (userdata=0x329f020) at findnonce.c:256
#1  0x00007f4e485ccefc in start_thread ()
   from /lib/x86_64-linux-gnu/libpthread.so.0
#2  0x00007f4e47a3659d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#3  0x0000000000000000 in ?? ()
(gdb)

Is that of any help ??
Yep - thanks. The line doesn't explain the problem - but it shows it's at least in findnonce when it crashes for you - so probably a bug I introduced.

I've also thought of a easy (should have thought of before Tongue) way to try reproduce it myself.
Add 1 to each nonce value returned should give me LOTS of HW errors to hopefully get the same result.

I'll try sort that out later today - thanks for the info.
If I can't get it to happen I'll ask for more help to run a debug version I'll put up for you.
But I'll let you know first.

Pool: https://kano.is Here on Bitcointalk: Forum BTC: 1KanoPb8cKYqNrswjaA8cRDk4FAS9eDMLU
FreeNode IRC: irc.freenode.net channel #kano.is Majority developer of the ckpool code
Help keep Bitcoin secure by mining on pools with full block verification on all blocks - and NO empty blocks!
ChipGeek
Full Member
***
Offline Offline

Activity: 198
Merit: 100


View Profile
September 28, 2012, 02:10:19 AM
 #7191

While I see r-pi listed in the subject, I see no instructions or downloads provided. Am I missing something?

For Raspbian, my steps went something like this:
<... snip ...>

Thank you VERY much for this guide.  I did encounter a problem with this step:

Quote
root@raspberrypi:/usr/src/cgminer# bash ./autogen.sh --enable-scrypt --enable-bitforce --enable-icarus  --enable-modminer --enable-ztex --with-libudev
Running autoreconf -if...
Configuring...
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type:  --enable-modminer
checking build system type... Invalid configuration ` --enable-modminer': machine ` --enable' not recognized
configure: error: /bin/bash ./config.sub  --enable-modminer failed
root@raspberrypi:/usr/src/cgminer#

Then I remembered I did not need modminer (no HW for me - YET) so I trimmed it down to the command that I needed:
Quote
root@raspberrypi:/usr/src/cgminer# bash ./autogen.sh --enable-bitforce --with-libudev
 

... and it worked.  But then "make all" also failed:
Quote
root@raspberrypi:/usr/src/cgminer# make all
make: *** No rule to make target `all'.  Stop.

root@raspberrypi:/usr/src/cgminer# make
make: *** No targets specified and no makefile found.  Stop.

root@raspberrypi:/usr/src/cgminer# ls -l M*
-rw-r--r-- 1 root root  2470 Sep 27 20:31 Makefile.am
-rw-r--r-- 1 root root 91117 Sep 27 20:47 Makefile.in

Now I'm stuck.  Damnit - I hate being a n00b at new stuff!   Wink  (Although I used linux in a previous life a little bit, I'm mostly a Windblows guy.   Grin )

Tip jar: 1ChipGeeK7PDxaAWG4VgsTi31SfJ6peKHw
ChipGeek
Full Member
***
Offline Offline

Activity: 198
Merit: 100


View Profile
September 28, 2012, 02:16:15 AM
Last edit: September 28, 2012, 02:28:45 AM by ChipGeek
 #7192

Ah crap.  I scrolled up and I see the problem:

Quote
checking for working alloca.h... yes
checking for alloca... yes
checking for OpenCL... no
checking for pthread_create in -lpthread... yes
checking for json_loads in -ljansson... no
checking for library containing addstr... -lncurses
checking for yasm... /usr/bin/yasm
checking if yasm version is greater than 1.0.1... yes
checking libudev.h usability... no
checking libudev.h presence... no
checking for libudev.h... no
configure: error: libudev not found
root@raspberrypi:/usr/src/cgminer#

Fixing now...

Edit: Or I'm trying to fix it but I'm clueless (apparently).  I tried:
Quote
apt-get install libudev

with no luck.  If someone can help me with this I would appreciate it.

Tip jar: 1ChipGeeK7PDxaAWG4VgsTi31SfJ6peKHw
kano
Legendary
*
Offline Offline

Activity: 2730
Merit: 1103


Linux since 1997 RedHat 4


View Profile
September 28, 2012, 02:27:43 AM
 #7193

Never built on that - but the ./autogen.sh should work that way fine with 2.7.6
I guess there's more to getting it working - you'll need to ask P_Shep I guess?
He seems to get it working on the usual hardware Smiley

Pool: https://kano.is Here on Bitcointalk: Forum BTC: 1KanoPb8cKYqNrswjaA8cRDk4FAS9eDMLU
FreeNode IRC: irc.freenode.net channel #kano.is Majority developer of the ckpool code
Help keep Bitcoin secure by mining on pools with full block verification on all blocks - and NO empty blocks!
SAC
Sr. Member
****
Offline Offline

Activity: 322
Merit: 250


View Profile
September 28, 2012, 02:50:59 AM
 #7194

Ah crap.  I scrolled up and I see the problem:

Quote
checking for working alloca.h... yes
checking for alloca... yes
checking for OpenCL... no
checking for pthread_create in -lpthread... yes
checking for json_loads in -ljansson... no
checking for library containing addstr... -lncurses
checking for yasm... /usr/bin/yasm
checking if yasm version is greater than 1.0.1... yes
checking libudev.h usability... no
checking libudev.h presence... no
checking for libudev.h... no
configure: error: libudev not found
root@raspberrypi:/usr/src/cgminer#

Fixing now...

Edit: Or I'm trying to fix it but I'm clueless (apparently).  I tried:
Quote
apt-get install libudev

with no luck.  If someone can help me with this I would appreciate it.

When compiling you need the development package of the library when it is not found so to find it install apt-file.

Code:

apt-file search libudev.h
libudev-dev: /usr/include/libudev.h
ChipGeek
Full Member
***
Offline Offline

Activity: 198
Merit: 100


View Profile
September 28, 2012, 03:00:09 AM
 #7195

When compiling you need the development package of the library when it is not found so...

Code:
apt-file search libudev.h
libudev-dev: /usr/include/libudev.h
Thanks but that did not work for me:
Code:
root@raspberrypi:/usr/src/cgminer# apt-file search libudev.h
bash: apt-file: command not found

- The linux n00b

Edit: I hope this is not too off-topic but I believe it will be useful for other (n00b) users to get cgminer working on their Raspberry Pi.  Or at least those that want to compile from source.  Now that I think about it, didn't someone offer pre-compiled binaries for the RPi?  Or was that for one of the Bitcoin clients???

Tip jar: 1ChipGeeK7PDxaAWG4VgsTi31SfJ6peKHw
burger
Full Member
***
Offline Offline

Activity: 195
Merit: 100


View Profile
September 28, 2012, 05:49:22 AM
 #7196

When compiling you need the development package of the library when it is not found so...

Code:
apt-file search libudev.h
libudev-dev: /usr/include/libudev.h
Thanks but that did not work for me:
Code:
root@raspberrypi:/usr/src/cgminer# apt-file search libudev.h
bash: apt-file: command not found

- The linux n00b

Edit: I hope this is not too off-topic but I believe it will be useful for other (n00b) users to get cgminer working on their Raspberry Pi.  Or at least those that want to compile from source.  Now that I think about it, didn't someone offer pre-compiled binaries for the RPi?  Or was that for one of the Bitcoin clients???


can't you just do:

Code:
apt-get install libudev-dev

ocminer
Legendary
*
Offline Offline

Activity: 2338
Merit: 1229



View Profile WWW
September 28, 2012, 07:27:39 AM
 #7197

Hope you'll find it, let me know if I can help you any further Smiley

suprnova pools - reliable mining pools - #suprnova on freenet
https://www.suprnova.cc - FOLLOW us @ Twitter ! twitter.com/SuprnovaPools
ddd1
Full Member
***
Offline Offline

Activity: 154
Merit: 100


View Profile
September 28, 2012, 04:11:18 PM
 #7198

Is there a way to make mining on a PC that has a AMD 7950 and Intel HD Graphics possible?

My Motherboard is a Z68, I would like to connect 1 or 2 Computer Displays to the HDMI and DVI on Z68 motherboard and 1 or 2 displays to my AMD 7950.

When I start Cgminer it says too many gpus or something along those lines.
Yes there is, but you will need to use a combination of parameters to these options: -d, --remove-disabled, --gpu-platform and --gpu-map. Start with 'cgminer -n' to read  what cgminer finds and then read the advanced section on gpu-map in the readme.

So this allows me to use the 7950 to mining when it's not doing much in windows 7?
I can have 2 displays connected to 7950 and 2 displays connected to Z68 HD3000 and just before I start gaming I just disable 7950 in cgminer?

Obviously primary display in windows 7 needs to be connected to 7950 so that games start on 7950.

Ok if you need the HD7950 for gaming you can't mine on it at the same time without a noticeable lag.  Disable lucid MVP and connect a cable to your mobo and then use just HD3000 for gaming. Mine on the 7950.

Thanks for suggestion but I do not want to game on HD3000, I want to mine on the 7950 only when I'm not gaming (I'm not gaming 90% of the time.)
-ck
Moderator
Legendary
*
Offline Offline

Activity: 2786
Merit: 1154


Ruu \o/


View Profile WWW
September 28, 2012, 04:14:48 PM
 #7199

Is there a way to make mining on a PC that has a AMD 7950 and Intel HD Graphics possible?

My Motherboard is a Z68, I would like to connect 1 or 2 Computer Displays to the HDMI and DVI on Z68 motherboard and 1 or 2 displays to my AMD 7950.

When I start Cgminer it says too many gpus or something along those lines.
Yes there is, but you will need to use a combination of parameters to these options: -d, --remove-disabled, --gpu-platform and --gpu-map. Start with 'cgminer -n' to read  what cgminer finds and then read the advanced section on gpu-map in the readme.

So this allows me to use the 7950 to mining when it's not doing much in windows 7?
I can have 2 displays connected to 7950 and 2 displays connected to Z68 HD3000 and just before I start gaming I just disable 7950 in cgminer?

Obviously primary display in windows 7 needs to be connected to 7950 so that games start on 7950.
If you set the 7950 to dynamic intensity mode, you will be able to game without a problem without needing to disable it.

Developer/maintainer for cgminer and ckpool/ckproxy.
ZERO FEE Pooled mining at ckpool.org, 1% Fee Solo mining at solo.ckpool.org
-ck
ChipGeek
Full Member
***
Offline Offline

Activity: 198
Merit: 100


View Profile
September 28, 2012, 08:30:11 PM
 #7200

Thanks to dlasher, SAC, burger, and especially ckolivas and kano; my BFL single is now running on my R-Pi!  Soon I will re-post dlasher's guide with the corrections I used to make it work for me.  (First I will test with a fresh Raspbian install.)

Code:
cgminer version 2.7.6 - Started: [2012-09-28 13:26:28]
--------------------------------------------------------------------------------
 (5s):433.4 (avg):714.6 Mh/s | Q:4  A:12  R:0  HW:0  E:300%  U:17.1/m
 TQ: 0  ST: 2  SS: 0  DW: 1  NB: 2  LW: 15  GF: 0  RF: 0  WU: 18.5
 Connected to http://us1.eclipsemc.com:8337 with LP as user <myusername>
 Block: 00000038ba38b354b3fd8173cd55cebb...  Started: [13:26:28]
--------------------------------------------------------------------------------
 [P]ool management [S]ettings [D]isplay options [Q]uit
 BFL 0:  45.7C         | 771.9/918.7Mh/s | A:13 R:0 HW:0 U:18.54/m
--------------------------------------------------------------------------------

 [2012-09-28 13:26:27] Started cgminer 2.7.6
 [2012-09-28 13:26:28] Probing for an alive pool
 [2012-09-28 13:26:28] Long-polling activated for http://us1.eclipsemc.com:8337/LP
 [2012-09-28 13:26:28] Pool 0 http://us1.eclipsemc.com:8337 alive
 [2012-09-28 13:26:28] New block detected on network before longpoll
 [2012-09-28 13:26:28] Pool 1 http://us.ozco.in:8331 alive
 [2012-09-28 13:26:33] Accepted 00e6e730 Diff 1 BFL 0 pool 0
 [2012-09-28 13:26:38] Accepted 09631bd0 Diff 1 BFL 0 pool 0
 [2012-09-28 13:26:43] Accepted a45652a8 Diff 1 BFL 0 pool 0
 [2012-09-28 13:26:43] Accepted a79f96ba Diff 1 BFL 0 pool 0
 [2012-09-28 13:26:48] Accepted 280b28cf Diff 1 BFL 0 pool 0

Tip jar: 1ChipGeeK7PDxaAWG4VgsTi31SfJ6peKHw
Pages: « 1 ... 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 [360] 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 ... 844 »
  Print  
 
Jump to:  

Bitcointalk.org is not available or authorized for sale. Do not believe any fake listings.
Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!