Pages:
Author

Topic: OFFICIAL CGMINER mining software thread for linux/win/osx/mips/arm/r-pi 4.11.0 - page 21. (Read 5805649 times)

legendary
Activity: 1015
Merit: 1000
Anyone know how to send the API command to change miner frequency?

I'm trying sending the command "setconfig" with params like this "bitmain-freq,400", but it sends me an error config not found.
newbie
Activity: 41
Merit: 0
Got it set up on my rig, thanks!
newbie
Activity: 1
Merit: 0
thanks for sharing, runs good. Will update tonight as I'm not known with this software.
legendary
Activity: 4592
Merit: 1851
Linux since 1997 RedHat 4
Hi. I am installing cgminer on my Pi and im following this guide: https://www.youtube.com/watch?v=a8kN9GDsB0U . I'm having some trouble when I run the "sudo ./autogen.sh" command. I get an error Sad Any suggestions?

Code:
pi@raspberrypi:~/cgminer $ sudo ./autogen.sh
./autogen.sh: 6: ./autogen.sh: autoreconf: not found
We obviously have nothing to do with that video.

Read the README and it will tell you that you didn't install everything you need to install.
newbie
Activity: 1
Merit: 0
Hi. I am installing cgminer on my Pi and im following this guide: https://www.youtube.com/watch?v=a8kN9GDsB0U . I'm having some trouble when I run the "sudo ./autogen.sh" command. I get an error Sad Any suggestions?

Code:
pi@raspberrypi:~/cgminer $ sudo ./autogen.sh
./autogen.sh: 6: ./autogen.sh: autoreconf: not found
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
Hi folks. In expect of bitcoin core v0.13 with segwit, will the cgminer be updated in part of solo mining? Guess that there may be also a changes in RPC part of bitcoin core.
Unlikely. The demand and utility for plain cgminer and the need for solo mining to work on it these days is somewhat pointless so there's no desire on my part to provide said update unless someone wants to contribute code pushes it to git and asks me to pull their request. The only new hardware coming out that will use official cgminer code will be upcoming avalon hardware and that will be running on low power controllers that won't be capable of solo mining in any meaningful capacity.
full member
Activity: 217
Merit: 101
Hi folks. In expect of bitcoin core v0.13 with segwit, will the cgminer be updated in part of solo mining? Guess that there may be also a changes in RPC part of bitcoin core.
sr. member
Activity: 295
Merit: 250
Just a quick compliment to CK, Kano, and the other cgminer devs. I recently rebuilt my mining rig based on a Raspberry Pi and a few Asicminer Block Erupters I still had. One compilation with appropriate flags later, and cgminer was happily chomping away and telling me I haven't found a block yet! Smiley It's pretty impressive to have software continue to work with ancient hardware in an environment as fast-moving as bitcoin. Major props and thanks! Smiley
legendary
Activity: 3990
Merit: 2695
THX, also no chance to a successful run?
Let it cool down, try a lower voltage and then start lowering the clock speed on each startup. You might find a speed where it works again, or half works, or it may never work again. They're just not very reliable and don't have much of a life expectancy.

THX, i will test at next ry with this settings:

Quote
"au3-freq" : "200",
"au3-volt" : "750",

 Wink
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
THX, also no chance to a successful run?
Let it cool down, try a lower voltage and then start lowering the clock speed on each startup. You might find a speed where it works again, or half works, or it may never work again. They're just not very reliable and don't have much of a life expectancy.
legendary
Activity: 3990
Merit: 2695
I have an problem with the cgminer and th U3, anyone have an idea?
Quote
cgminer version 4.9.2 - Started: [2016-07-30 23:57:50.402]
--------------------------------------------------------------------------------
 (5s):1.349M (1m):9.538G (5m):28.75G (15m):18.21G (avg):43.79Gh/s
 A:4898  R:0  HW:4  WU:612.0/m
 Connected to multiple pools with block change notify
 Block: 6084db13...  Diff:2.52M  Started: [00:03:33.486]  Best share: 16.1K
--------------------------------------------------------------------------------
 USB management Pool management Settings Display options Quit
 0: AU3 0       : 225MHz 775mV            | 1.349M / 43.79Gh/s WU:612.0/m
--------------------------------------------------------------------------------
 [2016-07-31 00:06:45.165] AU3 0: Idle for more than 60 seconds, declaring SICK!
 [2016-07-31 00:06:45.167] AU3 0: Attempting to restart

 Huh

Looks typical of the U3, it's a steaming pile of shit and it's started failing for you.

THX, also no chance to a successful run?
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
I have an problem with the cgminer and th U3, anyone have an idea?
Quote
cgminer version 4.9.2 - Started: [2016-07-30 23:57:50.402]
--------------------------------------------------------------------------------
 (5s):1.349M (1m):9.538G (5m):28.75G (15m):18.21G (avg):43.79Gh/s
 A:4898  R:0  HW:4  WU:612.0/m
 Connected to multiple pools with block change notify
 Block: 6084db13...  Diff:2.52M  Started: [00:03:33.486]  Best share: 16.1K
--------------------------------------------------------------------------------
 USB management Pool management Settings Display options Quit
 0: AU3 0       : 225MHz 775mV            | 1.349M / 43.79Gh/s WU:612.0/m
--------------------------------------------------------------------------------
 [2016-07-31 00:06:45.165] AU3 0: Idle for more than 60 seconds, declaring SICK!
 [2016-07-31 00:06:45.167] AU3 0: Attempting to restart

 Huh

Looks typical of the U3, it's a steaming pile of shit and it's started failing for you.
legendary
Activity: 3990
Merit: 2695
I have an problem with the cgminer and th U3, anyone have an idea?
Quote
cgminer version 4.9.2 - Started: [2016-07-30 23:57:50.402]
--------------------------------------------------------------------------------
 (5s):1.349M (1m):9.538G (5m):28.75G (15m):18.21G (avg):43.79Gh/s
 A:4898  R:0  HW:4  WU:612.0/m
 Connected to multiple pools with block change notify
 Block: 6084db13...  Diff:2.52M  Started: [00:03:33.486]  Best share: 16.1K
--------------------------------------------------------------------------------
 USB management Pool management Settings Display options Quit
 0: AU3 0       : 225MHz 775mV            | 1.349M / 43.79Gh/s WU:612.0/m
--------------------------------------------------------------------------------
 [2016-07-31 00:06:45.165] AU3 0: Idle for more than 60 seconds, declaring SICK!
 [2016-07-31 00:06:45.167] AU3 0: Attempting to restart

 Huh
sr. member
Activity: 257
Merit: 250
Could also try building with clang its available in EPEL.
Code:
milton@milton:~/temp/cgminer$ clang --version
clang version 3.8.0 (tags/RELEASE_380/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
buildlog here: http://dpaste.com/3Z7962Z
got it going with some old gear here:
 
Code:
cgminer version 4.9.2 - Started: [2016-07-16 12:24:27.338]
--------------------------------------------------------------------------------
 (5s):37.26G (1m):37.85G (5m):24.31G (15m):11.01G (avg):37.62Gh/s
 A:2000  R:0  HW:2  WU:525.1/m
 Connected to stratum.ckpool.org diff 1K with stratum as user 1PKN98VN2z5gwSGZvGKS2bj8aADZBkyhkZ.0
 Block: 4454ec80...  Diff:213G  Started: [12:25:55.222]  Best share: 1.71K
--------------------------------------------------------------------------------
 [U]SB management [P]ool management [S]ettings [D]isplay options [Q]uit
  0: ANU 0       : 250MHz                  | 3.301G / 1.926Gh/s WU:26.9/m
  1: ANU 1       : 250MHz                  | 3.030G / 2.105Gh/s WU:29.4/m
  2: ANU 2       : 250MHz                  | 1.461G / 2.270Gh/s WU:31.7/m
  3: ANU 3       : 250MHz                  | 2.177G / 1.678Gh/s WU:23.5/m
  4: ANU 4       : 250MHz                  | 2.614G / 2.174Gh/s WU:30.4/m
  5: ANU 5       : 250MHz                  | 1.917G / 1.912Gh/s WU:26.7/m
  6: ANU 6       : 250MHz                  | 2.579G / 2.022Gh/s WU:28.3/m
  7: ANU 7       : 250MHz                  | 1.733G / 1.555Gh/s WU:21.7/m
  8: ANU 8       : 250MHz                  | 950.8M / 1.926Gh/s WU:26.9/m
  9: ANU 9       : 250MHz                  | 3.413G / 1.857Gh/s WU:26.0/m
 10: ANU 10      : 250MHz                  | 2.224G / 2.174Gh/s WU:30.4/m
 11: ANU 11      : 250MHz                  | 2.550G / 2.022Gh/s WU:28.3/m
 12: ANU 12      : 250MHz                  | 1.348G / 1.857Gh/s WU:26.0/m
 13: ANU 13      : 250MHz                  | 5.615G / 2.201Gh/s WU:30.8/m
 14: ANU 14      : 250MHz                  | 2.573G / 2.009Gh/s WU:28.1/m
 15: ANU 15      : 250MHz                  | 2.950G / 1.775Gh/s WU:24.8/m
 16: ANU 16      : 250MHz                  | 2.231G / 1.981Gh/s WU:27.7/m
 17: ANU 17      : 250MHz                  | 2.598G / 1.981Gh/s WU:27.7/m
 18: ANU 18      : 250MHz                  | 2.181G / 2.174Gh/s WU:30.0/m
--------------------------------------------------------------------------------
 [2016-07-16 12:24:05.797] Started cgminer 4.9.2
 [2016-07-16 12:24:26.338] Probing for an alive pool
 [2016-07-16 12:24:26.912] Pool 0 difficulty changed to 1000
 [2016-07-16 12:24:27.182] Pool 0 message: Authorised, welcome to solo.ckpool.org 1PKN98VN2z5gwSGZvGKS2bj8aADZBkyhkZ!
 [2016-07-16 12:24:27.339] Network diff set to 213G
 [2016-07-16 12:25:55.222] Stratum from pool 0 detected new block at height 420910
 [2016-07-16 12:27:14.942] Pool 0 message: New best ever share for user: 1100.238928
 [2016-07-16 12:27:14.942] Stratum reconnect requested from pool 0 to stratum.ckpool.org:443
 [2016-07-16 12:27:15.873] Pool 0 difficulty changed to 1000
 [2016-07-16 12:27:16.100] Stratum from pool 0 requested work restart
 [2016-07-16 12:27:16.101] Pool 0 message: Authorised, welcome to solo.ckpool.org 1PKN98VN2z5gwSGZvGKS2bj8aADZBkyhkZ!
 [2016-07-16 12:27:50.230] Accepted 400ca180 Diff 1.02K/1000 ANU 13
 [2016-07-16 12:28:58.395] Pool 0 message: New best ever share for user: 1713.233558
 [2016-07-16 12:28:58.395] Accepted 264091fc Diff 1.71K/1000 ANU 4
legendary
Activity: 4592
Merit: 1851
Linux since 1997 RedHat 4
It's a new rule in the latest gcc that fails the DRIVER_ADD_COMMAND macro in miner.h

A quick work around so you can compile miner.h and usbutils.c is to change 2 places in miner.h and 1 place in usbutils.c

Firstly:
https://github.com/ckolivas/cgminer/blob/master/miner.h#L236
Code:
#define FPGA_PARSE_COMMANDS(DRIVER_ADD_COMMAND) \
        DRIVER_ADD_COMMAND(bitforce) \
        DRIVER_ADD_COMMAND(modminer)

change the above #define to just be:
Code:
#define FPGA_PARSE_COMMANDS(DRIVER_ADD_COMMAND)
(note remove the '\' on the end also)

and Secondly:
https://github.com/ckolivas/cgminer/blob/master/miner.h#L236
Code:
#define ASIC_PARSE_COMMANDS(DRIVER_ADD_COMMAND) \
.
.
.
remove all the driver lines below it that you didn't include in your ./configure command.

e.g. if you
CFLAGS="-O2 -Wall -march=native" ./configure --enable-icarus

Then the changed result would just be:
Code:
#define ASIC_PARSE_COMMANDS(DRIVER_ADD_COMMAND) \
        DRIVER_ADD_COMMAND(icarus)

(a '\' after every line but the last line)

Thirdly in usbutils.c
https://github.com/ckolivas/cgminer/blob/master/usbutils.c#L3744

Remove all the "case DRIVER_*" lines but the ones you compiled in e.g. for only icarus, change it to just be:
Code:
               switch (cgpu->drv->drv_id) {
                        case DRIVER_icarus:
                                DEVWLOCK(cgpu, pstate);
                                release_cgpu(cgpu);
                                DEVWUNLOCK(cgpu, pstate);
                                count++;
                                break;
                        default:
                                break;
                }
newbie
Activity: 1
Merit: 0
I too am having the same problem after upgrading from Fedora 23 to Fedora 24 and trying to recompile CGMiner.   Some of the research I have done points to it being the newer gcc version 6 in Fedora 24 (was 5.3 in Fedora 23).   I have not found a work around though.   If I come up with something I will pass it along.

-Brianna007

Trying to compile latest cgminer on Arch Linux.
Getting lots of errors like these:

Code:
miner.h:228:21: error: storage size of 'bitforce_drv' isn't known
  DRIVER_ADD_COMMAND(bitforce) \
                     ^
miner.h:258:47: note: in definition of macro 'DRIVER_PROTOTYPE'
 #define DRIVER_PROTOTYPE(X) struct device_drv X##_drv;
                                               ^
miner.h:254:2: note: in expansion of macro 'FPGA_PARSE_COMMANDS'
  FPGA_PARSE_COMMANDS(DRIVER_ADD_COMMAND) \
  ^~~~~~~~~~~~~~~~~~~
miner.h:267:1: note: in expansion of macro 'DRIVER_PARSE_COMMANDS'
 DRIVER_PARSE_COMMANDS(DRIVER_PROTOTYPE)
 ^~~~~~~~~~~~~~~~~~~~~
miner.h:229:21: error: storage size of 'modminer_drv' isn't known
  DRIVER_ADD_COMMAND(modminer)
                     ^
miner.h:258:47: note: in definition of macro 'DRIVER_PROTOTYPE'
 #define DRIVER_PROTOTYPE(X) struct device_drv X##_drv;
                                               ^
miner.h:254:2: note: in expansion of macro 'FPGA_PARSE_COMMANDS'
  FPGA_PARSE_COMMANDS(DRIVER_ADD_COMMAND) \
  ^~~~~~~~~~~~~~~~~~~
miner.h:267:1: note: in expansion of macro 'DRIVER_PARSE_COMMANDS'
 DRIVER_PARSE_COMMANDS(DRIVER_PROTOTYPE)

Any help?
legendary
Activity: 4592
Merit: 1851
Linux since 1997 RedHat 4
Trying to compile latest cgminer on Arch Linux.
Getting lots of errors like these:
...
Any help?
Looks like a C compiler problem.
If following the full compile instructions in the README leads to that problem, then there's some problem with your C compiler.
newbie
Activity: 13
Merit: 0
Trying to compile latest cgminer on Arch Linux.
Getting lots of errors like these:

Code:
miner.h:228:21: error: storage size of 'bitforce_drv' isn't known
  DRIVER_ADD_COMMAND(bitforce) \
                     ^
miner.h:258:47: note: in definition of macro 'DRIVER_PROTOTYPE'
 #define DRIVER_PROTOTYPE(X) struct device_drv X##_drv;
                                               ^
miner.h:254:2: note: in expansion of macro 'FPGA_PARSE_COMMANDS'
  FPGA_PARSE_COMMANDS(DRIVER_ADD_COMMAND) \
  ^~~~~~~~~~~~~~~~~~~
miner.h:267:1: note: in expansion of macro 'DRIVER_PARSE_COMMANDS'
 DRIVER_PARSE_COMMANDS(DRIVER_PROTOTYPE)
 ^~~~~~~~~~~~~~~~~~~~~
miner.h:229:21: error: storage size of 'modminer_drv' isn't known
  DRIVER_ADD_COMMAND(modminer)
                     ^
miner.h:258:47: note: in definition of macro 'DRIVER_PROTOTYPE'
 #define DRIVER_PROTOTYPE(X) struct device_drv X##_drv;
                                               ^
miner.h:254:2: note: in expansion of macro 'FPGA_PARSE_COMMANDS'
  FPGA_PARSE_COMMANDS(DRIVER_ADD_COMMAND) \
  ^~~~~~~~~~~~~~~~~~~
miner.h:267:1: note: in expansion of macro 'DRIVER_PARSE_COMMANDS'
 DRIVER_PARSE_COMMANDS(DRIVER_PROTOTYPE)

Any help?
newbie
Activity: 26
Merit: 0
Sorry im new with this, but may i know what is this error please?  Sad

https://i.imgur.com/PsUwcgg.png
It means you don't have any mining devices, as it says. Cgminer is just controlling software to allow your computer to control mining hardware attached to it. The computer itself doesn't do the mining.

Ok now im understand, thank  Smiley
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
Sorry im new with this, but may i know what is this error please?  Sad


It means you don't have any mining devices, as it says. Cgminer is just controlling software to allow your computer to control mining hardware attached to it. The computer itself doesn't do the mining.
Pages:
Jump to: