Bitcoin Forum
December 10, 2016, 03:04:08 AM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: « 1 ... 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 [623] 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 ... 830 »
  Print  
Author Topic: OFFICIAL CGMINER mining software thread for linux/win/osx/mips/arm/r-pi 4.9.2  (Read 4825603 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.
notme
Legendary
*
Offline Offline

Activity: 1526


View Profile
September 12, 2013, 06:25:37 AM
 #12441

When building CGMiner with only Icarus support, I notices cgminer-driver-opencl.c, cgminer-ocl.c, and cgminer-adl.c are still compiled and linked in. Why? Also, the OpenCL kernels are installed, even though without any OpenCL mining built in, they are less than useless.
That's because the default is to build for opencl. You'll see that ./configure shows:
--disable-opencl
As for install, it's ancient and hardly anyone uses installs via "make install" so no attempt was made to modernise it.

I explicitly disabled OpenCL, instead of letting it not find OpenCL and disable it on its own, and those files are still compiled in.

The files have the OpenCL dependent code excluded by the precompiler.  The compiler never sees that code.  It sees roughly this for driver-opencl.c for example:

Code:
includes, function prototypes, externs, etc

void manage_gpu(void)
{
}

void *reinit_gpu(__maybe_unused void *userdata)
{
return NULL;
}

https://www.bitcoin.org/bitcoin.pdf
While no idea is perfect, some ideas are useful.
12jh3odyAAaR2XedPKZNCR4X4sebuotQzN
1481339048
Hero Member
*
Offline Offline

Posts: 1481339048

View Profile Personal Message (Offline)

Ignore
1481339048
Reply with quote  #2

1481339048
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
spacebob
Newbie
*
Offline Offline

Activity: 13


View Profile
September 12, 2013, 12:47:37 PM
 #12442

Yeah your kernel crashed on you.
99.9999% likely an SD card problem.
Get a new SD and also make sure it is Class 10.
(and always make sure you shut it own properly, don't just switch it off)

So I brought up this issue over at the Raspberry Pi support Forums and it sounds like this is probably a kernel bug.

http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=55370
-ck
Moderator
Legendary
*
Offline Offline

Activity: 2002


Ruu \o/


View Profile WWW
September 12, 2013, 02:10:09 PM
 #12443

Yeah your kernel crashed on you.
99.9999% likely an SD card problem.
Get a new SD and also make sure it is Class 10.
(and always make sure you shut it own properly, don't just switch it off)

So I brought up this issue over at the Raspberry Pi support Forums and it sounds like this is probably a kernel bug.

http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=55370
Very interesting!

...except cgminer does not use the cp210x driver they're blaming in that thread. It uses libusb to do direct USB communications.

Primary developer/maintainer for cgminer and ckpool/ckproxy.
Pooled mine at kano.is, solo mine at solo.ckpool.org
-ck
PulsarAV
Newbie
*
Offline Offline

Activity: 11



View Profile
September 12, 2013, 02:53:35 PM
 #12444

How do I tell cgminer to ignore a specific USB device?
...
  By the way, the original Icarus has
  iManufacturer 'Prolific Technology Inc. '
  iProduct 'USB-Serial Controller D'

What does your device have?
You get that info with cgminer -n

Thanks for the quick response Kano!  I'll try editing usbutils.c .

I'm not certain what you're asking for.  The entire output of cgminer -n is in my original post.  I would be happy to investigate further if you guide me.

Thanks again,

~PulsarAV~

PulsarAV
13FquMwkrDwj2yYFp2XJSgf4uKbfLbzTPc
Acejam
Sr. Member
****
Offline Offline

Activity: 283


View Profile
September 12, 2013, 07:06:16 PM
 #12445

Has anyone experienced any crashes when trying to mine with specific pools using cgminer? It seems that whenever I try to use cgminer against 50BTC's pool, I get a crash after a couple hours. If I change my pool to BTCGuild, it works flawlessly with no crashes.

I'm using something like this in my batch file:
cgminer-nogpu.exe -o http://stratum.50btc.com:3333 -u myuser@goeshere -p mypass -G --no-submit-stale

I have tried pool.50btc.com:8332 as well and still get the same crashes.
dlasher
Sr. Member
****
Offline Offline

Activity: 468



View Profile WWW
September 12, 2013, 10:06:10 PM
 #12446


http://middlecoin.com/

If you paid attention, you'd know it pays out in BTC, and is the only auto-switching auto-exchanging pool. It's also fairly big and getting bigger.

Smart, and about time.

kano
Legendary
*
Offline Offline

Activity: 1932


Linux since 1997 RedHat 4


View Profile
September 13, 2013, 06:44:29 AM
 #12447

How do I tell cgminer to ignore a specific USB device?
...
  By the way, the original Icarus has
  iManufacturer 'Prolific Technology Inc. '
  iProduct 'USB-Serial Controller D'

What does your device have?
You get that info with cgminer -n

Thanks for the quick response Kano!  I'll try editing usbutils.c .

I'm not certain what you're asking for.  The entire output of cgminer -n is in my original post.  I would be happy to investigate further if you guide me.

Thanks again,

~PulsarAV~
Ah right, yeah that doesn't show it though - windows fault (the -12 error)
I guess I could add to the list of possible changes (on windows), to force cgminer to ignore any device that gets a -12 a few times ...

Pool: https://kano.is BTC: 1KanoiBupPiZfkwqB7rfLXAzPnoTshAVmb
CKPool and CGMiner developer, IRC FreeNode #ckpool and #cgminer kanoi
Help keep Bitcoin secure by mining on pools with Stratum, the best protocol to mine Bitcoins with ASIC hardware
Lantis
Newbie
*
Offline Offline

Activity: 23


View Profile
September 13, 2013, 11:04:34 AM
 #12448

I managed to compile cgminer in Android and trying to run it in my SGS4 with opencl, and I have some problems running it (spare me the "why bother" response, I think running cgminer in my phone is kinda cool, and with the advancement of GPUs in the mobile space, you'll never know  Grin)

Anyway-- running cgminer -n gives me:

Code:
[2013-09-13 12:07:15] CL Platform 0 vendor: QUALCOMM
[2013-09-13 12:07:15] CL Platform 0 name : QUALCOMM Snapdragon(TM)
[2013-09-13 12:07:15] CL Platform 0 name : OpenCL 1.1 QUALCOMM build:   (CL3579225)
Build Date: 04/22/13 Mon
Local Branch: adreno_sba_20130419
Remote Branch:
Local Patches:
Reconstruct Branch:
[2013-09-13 12:07:15] Platform 0 devices: 1
[2013-09-13 12:07:15] 0          QUALCOMM Adreno(TM)
[2013-09-13 12:07:15] 1 GPU devices max detected

So it should be ok, right?  But trying to run cgminer with the usual parameters (--scrypt -o <host:port> -u <username> -p <password>) gives me:
Code:
[2013-09-13 12:08:12] Started cgminer 3.1.1
[2013-09-13 12:08:12] Probing for an alive pool
Assertion failed: !spillIs.empty() && "No spill intervals?", file vendor/qcom/proprietary/gles/adreno200/llvm/lib/CodeGen/QGPURegAlloc.cpp, line 2628

I compiled cgminer with OpenCL Adreno SDK instead of AMD SDK (for obvious reasons).

BTC : 162vF41ycBjZDWkZv1eouiaki4zxZ8PEmt
LTC : LackB1YdYLxqRpiYqvWfAzxViDe5WFjpMs
Wolf0
Legendary
*
Offline Offline

Activity: 1400


Miner Developer


View Profile
September 13, 2013, 11:46:55 AM
 #12449

Where can I find documentation for Block Erupters? I'd like to write my own driver.

Code:
Donations: BTC: 1Jp2R7dF9gYr872FkXiap2MaYaHNEfwWhZ -- XMR: 42QWoLF7pdwMcTXDviJvNkWEHJ4TXnMBh2Cx6HNkVAW57E48Zfw6wLwDUYFDYJAqY7PLJUTz9cHWB5C4wUA7UJPu5wPf4sZ -- GPG Key ID: 0x88CBE71ADD5FB10F
kano
Legendary
*
Offline Offline

Activity: 1932


Linux since 1997 RedHat 4


View Profile
September 13, 2013, 12:05:37 PM
 #12450

Where can I find documentation for Block Erupters? I'd like to write my own driver.
cgminer version 3.1.1 Cheesy

Pool: https://kano.is BTC: 1KanoiBupPiZfkwqB7rfLXAzPnoTshAVmb
CKPool and CGMiner developer, IRC FreeNode #ckpool and #cgminer kanoi
Help keep Bitcoin secure by mining on pools with Stratum, the best protocol to mine Bitcoins with ASIC hardware
Wolf0
Legendary
*
Offline Offline

Activity: 1400


Miner Developer


View Profile
September 13, 2013, 12:13:31 PM
 #12451

Where can I find documentation for Block Erupters? I'd like to write my own driver.
cgminer version 3.1.1 Cheesy
Cute. Code is not documentation, though. I'd prefer not to have to dig through it, though I guess I will if I have to.

Code:
Donations: BTC: 1Jp2R7dF9gYr872FkXiap2MaYaHNEfwWhZ -- XMR: 42QWoLF7pdwMcTXDviJvNkWEHJ4TXnMBh2Cx6HNkVAW57E48Zfw6wLwDUYFDYJAqY7PLJUTz9cHWB5C4wUA7UJPu5wPf4sZ -- GPG Key ID: 0x88CBE71ADD5FB10F
-ck
Moderator
Legendary
*
Offline Offline

Activity: 2002


Ruu \o/


View Profile WWW
September 13, 2013, 12:14:02 PM
 #12452

New release: Version 3.4.3, 13th September 2013

Stable codebase, feature upgrade version - Proxy support on stratum and per pool quota support. I also sneaked onto my wife's laptop to get osx working.


Human readable changelog:

- Build fixes for cgminer releases to build on OSX (building from git still requires massaging).
- Fix for an extremely rare cause of crashes.
- Updated the screen to show when there is block change notification with multipool strategies and stratum.
- Don't show the "waiting for work" message unless it is longer than it takes to switch pools during lag periods.
- Cope with trailing slashes being used on stratum based URLs.
- miner.php updates.
- Native proxy support on stratum for http1.0, http1.1, socks4, socks4a, socks5 and socks5h proxies without using libcurl for maximum stability.
- A completely rewritten load-balance strategy that now supports per pool quota support. See the following from the updated documentation to see how it works:

LOAD BALANCE:
This strategy sends work to all the pools on a quota basis. By default, all
pools are allocated equal quotas unless specified with --quota. This
apportioning of work is based on work handed out, not shares returned so is
independent of difficulty targets or rejected shares. While a pool is disabled
or dead, its quota is dropped until it is re-enabled. Quotas are forward
looking, so if the quota is changed on the fly, it only affects future work.
If all pools are set to zero quota or all pools with quota are dead, it will
fall back to a failover mode. See quota below for more information.

The failover-only flag has special meaning in combination with load-balance
mode and it will distribute quota back to priority pool 0 from any pools that
are unable to provide work for any reason so as to maintain quota ratios
between the rest of the pools.

QUOTAS

The load-balance multipool strategy works off a quota based scheduler. The
quotas handed out by default are equal, but the user is allowed to specify any
arbitrary ratio of quotas. For example, if all the quota values add up to 100,
each quota value will be a percentage, but if 2 pools are specified and pool0
is given a quota of 1 and pool1 is given a quota of 9, pool0 will get 10% of
the work and pool1 will get 90%. Quotas can be changed on the fly by the API,
and do not act retrospectively. Setting a quota to zero will effectively
disable that pool unless all other pools are disabled or dead. In that
scenario, load-balance falls back to regular failover priority-based strategy.
While a pool is dead, it loses its quota and no attempt is made to catch up
when it comes back to life.

To specify quotas on the command line, pools should be specified with a
semicolon separated --quota(or -U) entry instead of --url. Pools specified with
--url are given a nominal quota value of 1 and entries can be mixed.

For example:
Code:
--url poola:porta -u usernamea -p passa --quota "2;poolb:portb" -u usernameb -p passb
Will give poola 1/3 of the work and poolb 2/3 of the work.

Writing configuration files with quotas is likewise supported. To use the above
quotas in a configuration file they would be specified thus:

Code:
"pools" : [
        {
                "url" : "poola:porta",
                "user" : "usernamea",
                "pass" : "passa"
        },
        {
                "quota" : "2;poolb:portb",
                "user" : "usernameb",
                "pass" : "passb"
        }
]


Full changelog:

- Put corefoundation and iokit separate in ldflags for darwin.
- Add rules for libusb Makefile.am building on osx
- Add flags for building libusb statically on osx.
- Find the greatest common denominator in quotas and use the smallest number of
consecutive work items per pool in quota load balance mode to smooth hashrate
across pools with large quotas. Give excess quota to priority pool 0 instead of
pool 0.
- Avoid dynamically adding stack memory for nonce2 in the stratum send thread
and check the pool's nonce2_len will not cause an overflow.
- Add subdir-objects to automake options.
- Use inet_addr instead of inet_network to fix windows build.
- Remove unused pbase variable.
- Add support for socks4/4a proxies with stratum, and drop back to socks4
support via the global --socks-proxy command to not break previous
configurations.
- Fix warning on mingw build.
- Only show long-poll message in pool summary if it's not using stratum.
- Increase the time for the waiting for work message to be given to be greater
than that required for a pool swap in the scheduler which is set to 5s.
- Change message in status when using a balanced pool strategy to notify if
there's a stratum pool as well.
- Use the --failover-only flag to have special meaning in combination with
load-balance mode to distribute any unused quota back to pool 0 to maintain
ratios amongst other pools.
- Display quota and allow it to be modified via the pool menu.
- Add API commands and modify output to support pool quota displaying and
changing.
- Change message in status when using a balanced pool strategy to notify if
there's a stratum pool as well.
- Add quota support to configuration files.
- Rotate pools on all failures to set a pool in select_pool.
- Use quotas for load-balance pool strategy.
- Provide a mechanism for setting a pool quota to be used by load-balance.
- Use the --socks-proxy option with stratum, changing it to defaulting to socks5
and give appropriate message should it fail to connect.
- Cope with trailing slashes in stratum urls.
- Add more debugging messages when negotiating with proxies for stratum.
- Test specifically for socks5h in socks support for stratum.
- Add support for socks5 proxy with stratum
- Provide support for negotiating a stratum connection via http proxies.
- Connect to the proxy URL and port if specified for stratum sockets instead of
the pool directly.
- Extract any proxy url and port to be used by sockaddr if possible using
extract_sockaddr.
- Make extract_sockaddr set variables passed to it rather than pool struct
members.
- miner.php sort the mcast rigs so they are always in the same relative order
- miner.php allow sending the muticast message multiple times
- miner.php mcast ignore duplicate replies

Primary developer/maintainer for cgminer and ckpool/ckproxy.
Pooled mine at kano.is, solo mine at solo.ckpool.org
-ck
os2sam
Legendary
*
Offline Offline

Activity: 1918


Think for yourself


View Profile
September 13, 2013, 12:15:07 PM
 #12453

Where can I find documentation for Block Erupters? I'd like to write my own driver.
cgminer version 3.1.1 Cheesy
Cute. Code is not documentation, though. I'd prefer not to have to dig through it, though I guess I will if I have to.

Look for the specs on the Icarus FPGA since that is the interface BE use.  Seems plausible to me anyway.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
kano
Legendary
*
Offline Offline

Activity: 1932


Linux since 1997 RedHat 4


View Profile
September 13, 2013, 12:35:11 PM
 #12454

Where can I find documentation for Block Erupters? I'd like to write my own driver.
cgminer version 3.1.1 Cheesy
Cute. Code is not documentation, though. I'd prefer not to have to dig through it, though I guess I will if I have to.

Look for the specs on the Icarus FPGA since that is the interface BE use.  Seems plausible to me anyway.
That's why the one Icarus driver does all 5 ICA, BLT, LLT, CMR, AMU
They all work the same way ... just different speeds and different core counts.

CMR does, however, also have a glasswalker bitream that has extra options, but the other 4 are ... well ... missing any useful functionality other than simply hash 4 billion times in a row.
That's why an AMU costs SFA to make and why Friedcat has literally made something like a million selling them.

Pool: https://kano.is BTC: 1KanoiBupPiZfkwqB7rfLXAzPnoTshAVmb
CKPool and CGMiner developer, IRC FreeNode #ckpool and #cgminer kanoi
Help keep Bitcoin secure by mining on pools with Stratum, the best protocol to mine Bitcoins with ASIC hardware
Wolf0
Legendary
*
Offline Offline

Activity: 1400


Miner Developer


View Profile
September 13, 2013, 12:40:10 PM
 #12455

Where can I find documentation for Block Erupters? I'd like to write my own driver.
cgminer version 3.1.1 Cheesy
Cute. Code is not documentation, though. I'd prefer not to have to dig through it, though I guess I will if I have to.

Look for the specs on the Icarus FPGA since that is the interface BE use.  Seems plausible to me anyway.
That's why the one Icarus driver does all 5 ICA, BLT, LLT, CMR, AMU
They all work the same way ... just different speeds and different core counts.

CMR does, however, also have a glasswalker bitream that has extra options, but the other 4 are ... well ... missing any useful functionality other than simply hash 4 billion times in a row.
That's why an AMU costs SFA to make and why Friedcat has literally made something like a million selling them.

All right, thanks.

Code:
Donations: BTC: 1Jp2R7dF9gYr872FkXiap2MaYaHNEfwWhZ -- XMR: 42QWoLF7pdwMcTXDviJvNkWEHJ4TXnMBh2Cx6HNkVAW57E48Zfw6wLwDUYFDYJAqY7PLJUTz9cHWB5C4wUA7UJPu5wPf4sZ -- GPG Key ID: 0x88CBE71ADD5FB10F
mdude77
Legendary
*
Offline Offline

Activity: 1358


View Profile
September 13, 2013, 12:57:11 PM
 #12456

I ran into a problem with the USB block erupters.  They work great under 3.4.2 on my main PC, plugged straight into my USB 3.0 ports.  They work great on one of my rigs, plugged into multiple USB 3.0/2.0 hubs.  No configuration, just the WinUSB driver and it "just works".

Not so on my laptop. Sad  3.4.2 (and 3.4.3) do not find the miners.  WinUSB is installed.  It looks the same in device manager on my laptop as it does my PC.  But cgminer doesn't see them.

I'm going to try updating my drivers on the laptop.  They should be up to date, but I'm going to check anyhow.

Any ideas?

M

MMinerMonitor author, monitor/auto/schedule reboots/alerts/remote/MobileMiner for Ants and Spondoolies! Latest (5.2). MPoolMonitor author, monitor stats/workers for most pools, global BTC stats (current/nxt diff/USD val/hashrate/calc)! Latest (v4.2) 
Buyer beware of Bitmain hardware and services.
Zanatos666
Sr. Member
****
Offline Offline

Activity: 280


Sometimes man, just sometimes.....


View Profile
September 13, 2013, 01:55:28 PM
 #12457

I ran into a problem with the USB block erupters.  They work great under 3.4.2 on my main PC, plugged straight into my USB 3.0 ports.  They work great on one of my rigs, plugged into multiple USB 3.0/2.0 hubs.  No configuration, just the WinUSB driver and it "just works".

Not so on my laptop. Sad  3.4.2 (and 3.4.3) do not find the miners.  WinUSB is installed.  It looks the same in device manager on my laptop as it does my PC.  But cgminer doesn't see them.

I'm going to try updating my drivers on the laptop.  They should be up to date, but I'm going to check anyhow.

Any ideas?

M

Plugging them directly into the laptop?  If so, probably the reason they arent running.  Laptop ports are notoriously under powered.

Squiggly letters, written really fast, with a couple of dots for good measure.
os2sam
Legendary
*
Offline Offline

Activity: 1918


Think for yourself


View Profile
September 13, 2013, 01:59:06 PM
 #12458

Not so on my laptop. Sad  3.4.2 (and 3.4.3) do not find the miners.  WinUSB is installed.  It looks the same in device manager on my laptop as it does my PC.

What OS is on your laptop?

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
mdude77
Legendary
*
Offline Offline

Activity: 1358


View Profile
September 13, 2013, 02:38:46 PM
 #12459

Not so on my laptop. Sad  3.4.2 (and 3.4.3) do not find the miners.  WinUSB is installed.  It looks the same in device manager on my laptop as it does my PC.

What OS is on your laptop?

Win7 x64, just like the PCs.

I could see them being underpowered.  But cgminer doesn't see them.  It's not like it sees them and they don't work, it's like they aren't there.

M

MMinerMonitor author, monitor/auto/schedule reboots/alerts/remote/MobileMiner for Ants and Spondoolies! Latest (5.2). MPoolMonitor author, monitor stats/workers for most pools, global BTC stats (current/nxt diff/USD val/hashrate/calc)! Latest (v4.2) 
Buyer beware of Bitmain hardware and services.
KyrosKrane
Sr. Member
****
Offline Offline

Activity: 292


View Profile WWW
September 13, 2013, 04:25:06 PM
 #12460

Win7 x64, just like the PCs.

I could see them being underpowered.  But cgminer doesn't see them.  It's not like it sees them and they don't work, it's like they aren't there.

M
I had the same issue. By any chance, is it a very recent PC, with a Z87 chipset? In my case, the conclusion was that my particular chipset or USB port wasn't supported by the libusb that cgminer uses. Windows was seeing the BE fine and loading the right drivers, but they still appeared invisible to cgminer. Ultimately I had to find a different platform to mine on.

Tips and donations: 1KyrosREGDkNLp1rMd9wfVwfkXYHTd6j5U  |  BTC P2Pool node: p2pool.kyros.info:9332
Pages: « 1 ... 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 [623] 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 ... 830 »
  Print  
 
Jump to:  

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!