Bitcoin Forum
July 24, 2017, 01:05:57 PM *
News: Due to BIP91, it would starting now be prudent to require 5 times more confirmations than usual before trusting transactions.
 
   Home   Help Search Donate Login Register  
Pages: « 1 ... 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 [762] 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 ... 835 »
  Print  
Author Topic: OFFICIAL CGMINER mining software thread for linux/win/osx/mips/arm/r-pi 4.10.0  (Read 5303743 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.
Buchi-88
Legendary
*
Online Online

Activity: 1316



View Profile
June 21, 2014, 08:04:59 PM
 #15221

New release: Version 4.4.1, 21st June 2014

Catching a flight in a few hours but couldn't stand the thought I might be able to fix some bugs, so this is an attempt to rectify a couple of known issues.


Human readable changelog:

- Failover stopped working on some recent releases when a pool was down for an extended period it would never fail back even though the pool was alive. This is an attempt to rectify that code.
- An attempt to rectify the problem with Antminer U* devices not working for some people.
- Finally stop calling the Icarus devices FPGA via the API - I'm quite sure no one is still running an actual Icarus FPGA any more, they're all just ASICs that used the original Icarus protocol (I wish they didn't since the protocol was designed for much slower devices).


Full changelog:

- Move icarus driver to being seen as an asic
- Clear usb reads on each pass through icarus detect to hopefully prevent false
positives for detecting rboxes
- Clean up pool failure and failover code for stratum


Thanks for the Fix, but my problem https://bitcointalk.org/index.php?topic=28402.msg7420495#msg7420495 is still present!

I have start the cgminer in "debug" modus where can i find the debug file?

regards

KICKICO██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
|██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
Truman
Legendary
*
Offline Offline

Activity: 812



View Profile
June 22, 2014, 12:20:56 PM
 #15222

Having an error since Version 4.4.0 at saving the config:

https://dl.dropboxusercontent.com/u/67023860/Screenshot%202014-06-22%2014.18.50.png

Config file is created, but empty!

Windows 7 64bit
Dizzee
Jr. Member
*
Offline Offline

Activity: 36


View Profile
June 22, 2014, 09:45:24 PM
 #15223

Hi,
Apparently Avalon3 is supposed to be accessible using Avalon2
I however get the following
Avalon2 Detect: Failed to open /dev/ttyUSB0

this error is the same as if the miner is not connected however the miner is connected to a hub at that address (everything is connected to USB0)
basil3legs
Newbie
*
Offline Offline

Activity: 13


View Profile
June 22, 2014, 11:42:36 PM
 #15224

Hi, I've read through a good chunk of this thread and wanted some guidance or at least to clarify some things.

I am running S1s and S2s and have only recently come across this thread.  I have had a little look at the CGMiner source code, most of which is beyond me at the moment but I haven't delved that deeply yet.

First question, there is mention that Bitmain's S1 (and S2) drivers have a few flaws and kano recommends using his (for the S1 so far anyway).  If I load kano's latest version of CGMiner onto my S1s is that issue addressed and can be forgotten about?

Secondly I would really like to compile a version of CGMiner from the source and load it onto one of my S1s, even if it is just a copy of an existing version.  Can this be compiled on anything (e.g. Windoze 7) or does it need to be compiled on Ubuntu to then run on the S1?  Once I have a machine that is set up to compile CGMiner successfully so it can be loaded onto an S1, I want to delve deeper into the workings of CGMiner (not that there will probably much benefit to that, it is more out of interest).  I have MinGW etc. on my system and there appear to be a couple of issues building CGMiner on it but haven't really looked into that yet as there is little point if I can't then run it on the S1.

Any help would be greatly appreciated.
norgan
Sr. Member
****
Offline Offline

Activity: 308

Decentralize your hashing - p2pool - Norgz Pool


View Profile WWW
June 22, 2014, 11:49:12 PM
 #15225

Hi, I've read through a good chunk of this thread and wanted some guidance or at least to clarify some things.

I am running S1s and S2s and have only recently come across this thread.  I have had a little look at the CGMiner source code, most of which is beyond me at the moment but I haven't delved that deeply yet.

First question, there is mention that Bitmain's S1 (and S2) drivers have a few flaws and kano recommends using his (for the S1 so far anyway).  If I load kano's latest version of CGMiner onto my S1s is that issue addressed and can be forgotten about?

Secondly I would really like to compile a version of CGMiner from the source and load it onto one of my S1s, even if it is just a copy of an existing version.  Can this be compiled on anything (e.g. Windoze 7) or does it need to be compiled on Ubuntu to then run on the S1?  Once I have a machine that is set up to compile CGMiner successfully so it can be loaded onto an S1, I want to delve deeper into the workings of CGMiner (not that there will probably much benefit to that, it is more out of interest).  I have MinGW etc. on my system and there appear to be a couple of issues building CGMiner on it but haven't really looked into that yet as there is little point if I can't then run it on the S1.

Any help would be greatly appreciated.

as I understand it Kano's patch makes more of a difference in regards to p2pool mining and you need to build it (cgminer, not necessarily kano's driver as it's prebuilt for the S1) on the same flavour of Linux. in this case openwrt and there are guides if you just search build cgminer on openwrt

Miner, tech geek, operator of NorgzPool - Sydney Australia P2Pool Node creator of p2pool fancy front end

Tips: 1NorganBbymShTN2MMpfGzRYJF8mcPeXjv Exchange BTC locally in Australia or Donate to p2pool miners
basil3legs
Newbie
*
Offline Offline

Activity: 13


View Profile
June 23, 2014, 02:37:22 AM
 #15226

Hi, I've read through a good chunk of this thread and wanted some guidance or at least to clarify some things.

I am running S1s and S2s and have only recently come across this thread.  I have had a little look at the CGMiner source code, most of which is beyond me at the moment but I haven't delved that deeply yet.

First question, there is mention that Bitmain's S1 (and S2) drivers have a few flaws and kano recommends using his (for the S1 so far anyway).  If I load kano's latest version of CGMiner onto my S1s is that issue addressed and can be forgotten about?

Secondly I would really like to compile a version of CGMiner from the source and load it onto one of my S1s, even if it is just a copy of an existing version.  Can this be compiled on anything (e.g. Windoze 7) or does it need to be compiled on Ubuntu to then run on the S1?  Once I have a machine that is set up to compile CGMiner successfully so it can be loaded onto an S1, I want to delve deeper into the workings of CGMiner (not that there will probably much benefit to that, it is more out of interest).  I have MinGW etc. on my system and there appear to be a couple of issues building CGMiner on it but haven't really looked into that yet as there is little point if I can't then run it on the S1.

Any help would be greatly appreciated.

as I understand it Kano's patch makes more of a difference in regards to p2pool mining and you need to build it on the same flavour of Linux. in this case openwrt and there are guides if you just search build cgminer on openwrt
Thanks norgan.  That's what I understood with the driver.  Didn't know it had to be openwrt so I shall have a search for that as there are loads of guides about for other operating systems but needed to know if they were any good to me.
norgan
Sr. Member
****
Offline Offline

Activity: 308

Decentralize your hashing - p2pool - Norgz Pool


View Profile WWW
June 23, 2014, 03:59:04 AM
 #15227

no probs. good luck.

Miner, tech geek, operator of NorgzPool - Sydney Australia P2Pool Node creator of p2pool fancy front end

Tips: 1NorganBbymShTN2MMpfGzRYJF8mcPeXjv Exchange BTC locally in Australia or Donate to p2pool miners
canford
Member
**
Offline Offline

Activity: 88


View Profile
June 23, 2014, 04:38:05 AM
 #15228

Hi, I've read through a good chunk of this thread and wanted some guidance or at least to clarify some things.

I am running S1s and S2s and have only recently come across this thread.  I have had a little look at the CGMiner source code, most of which is beyond me at the moment but I haven't delved that deeply yet.

First question, there is mention that Bitmain's S1 (and S2) drivers have a few flaws and kano recommends using his (for the S1 so far anyway).  If I load kano's latest version of CGMiner onto my S1s is that issue addressed and can be forgotten about?

Secondly I would really like to compile a version of CGMiner from the source and load it onto one of my S1s, even if it is just a copy of an existing version.  Can this be compiled on anything (e.g. Windoze 7) or does it need to be compiled on Ubuntu to then run on the S1?  Once I have a machine that is set up to compile CGMiner successfully so it can be loaded onto an S1, I want to delve deeper into the workings of CGMiner (not that there will probably much benefit to that, it is more out of interest).  I have MinGW etc. on my system and there appear to be a couple of issues building CGMiner on it but haven't really looked into that yet as there is little point if I can't then run it on the S1.

Any help would be greatly appreciated.

as I understand it Kano's patch makes more of a difference in regards to p2pool mining and you need to build it on the same flavour of Linux. in this case openwrt and there are guides if you just search build cgminer on openwrt
Thanks norgan.  That's what I understood with the driver.  Didn't know it had to be openwrt so I shall have a search for that as there are loads of guides about for other operating systems but needed to know if they were any good to me.

If all you care about is the end result, you can just install kano's binary: https://github.com/kanoi/cgminer-binaries/tree/master/AntS1.  Runnning this on six S1s and it is rock solid.
basil3legs
Newbie
*
Offline Offline

Activity: 13


View Profile
June 23, 2014, 05:10:26 AM
 #15229

Hi, I've read through a good chunk of this thread and wanted some guidance or at least to clarify some things.

I am running S1s and S2s and have only recently come across this thread.  I have had a little look at the CGMiner source code, most of which is beyond me at the moment but I haven't delved that deeply yet.

First question, there is mention that Bitmain's S1 (and S2) drivers have a few flaws and kano recommends using his (for the S1 so far anyway).  If I load kano's latest version of CGMiner onto my S1s is that issue addressed and can be forgotten about?

Secondly I would really like to compile a version of CGMiner from the source and load it onto one of my S1s, even if it is just a copy of an existing version.  Can this be compiled on anything (e.g. Windoze 7) or does it need to be compiled on Ubuntu to then run on the S1?  Once I have a machine that is set up to compile CGMiner successfully so it can be loaded onto an S1, I want to delve deeper into the workings of CGMiner (not that there will probably much benefit to that, it is more out of interest).  I have MinGW etc. on my system and there appear to be a couple of issues building CGMiner on it but haven't really looked into that yet as there is little point if I can't then run it on the S1.

Any help would be greatly appreciated.

as I understand it Kano's patch makes more of a difference in regards to p2pool mining and you need to build it on the same flavour of Linux. in this case openwrt and there are guides if you just search build cgminer on openwrt
Thanks norgan.  That's what I understood with the driver.  Didn't know it had to be openwrt so I shall have a search for that as there are loads of guides about for other operating systems but needed to know if they were any good to me.

If all you care about is the end result, you can just install kano's binary: https://github.com/kanoi/cgminer-binaries/tree/master/AntS1.  Runnning this on six S1s and it is rock solid.
I already have it running on one of my S1s and will probably update the rest in the next day or so.

I want to know how to build cgminer for myself though.  Partly out of interest and partly as I want to have a mess around with the code - if I mess up then I can always reload kano's version or hit the reset button  Smiley

I now have OpenWrt up and running in VirtualBox but have ground to a halt and can't find any helpful instructions  Huh  I didn't realise how much of the S1 interface was literally just OpenWrt so it looks very familiar!
kano
Legendary
*
Online Online

Activity: 2156


Linux since 1997 RedHat 4


View Profile
June 23, 2014, 05:39:03 AM
 #15230

Say I wanted to make sure I don't contribute to malicious pool activity, namely an attempt of the pool operator to withhold blocks for whatever reason, and I do so by verifying that once I found a block, the block is indeed broadcasted by the operator within a short timeframe, or otherwise, if this is not the case, I switch to another pool. It's easy to use a local or an external node to watch for the appeance of new blocks, but I was wondering what would be the best way to get the information about new blocks out of CGMiner? I could redirect the debug output and identify "found block" statements and then use the RPC-API to switch pools, but is this the best way?
You'd read API-README that tells you all the info you can get out of the API ...
Including the block count ...

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
*
Online Online

Activity: 2156


Linux since 1997 RedHat 4


View Profile
June 23, 2014, 05:56:29 AM
 #15231

...
I now have OpenWrt up and running in VirtualBox but have ground to a halt and can't find any helpful instructions  Huh  I didn't realise how much of the S1 interface was literally just OpenWrt so it looks very familiar!
One of my replies to people who have asked in PM:
...
Cross compile.
Same process as avalon.
See their details for how to do it ... or OpenWRT that document how to cross compile also.
I've not documented it and I wont be - too much effort and there are those 2 sources already.

The cgminer feed that I change each time:
https://github.com/kanoi/cgminer-openwrt-packages

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!
basil3legs
Newbie
*
Offline Offline

Activity: 13


View Profile
June 23, 2014, 06:10:02 AM
 #15232

...
I now have OpenWrt up and running in VirtualBox but have ground to a halt and can't find any helpful instructions  Huh  I didn't realise how much of the S1 interface was literally just OpenWrt so it looks very familiar!
One of my replies to people who have asked in PM:
...
Cross compile.
Same process as avalon.
See their details for how to do it ... or OpenWRT that document how to cross compile also.
I've not documented it and I wont be - too much effort and there are those 2 sources already.

The cgminer feed that I change each time:
https://github.com/kanoi/cgminer-openwrt-packages
Thanks, I'll search along those line.
fubly
Hero Member
*****
Offline Offline

Activity: 534



View Profile
June 23, 2014, 09:32:50 PM
 #15233

Are there on the latest version some fixes for the KNCMINER Jupiter or neptune?
-ck
Moderator
Legendary
*
Offline Offline

Activity: 2226


Ruu \o/


View Profile WWW
June 24, 2014, 07:10:45 AM
 #15234

Are there on the latest version some fixes for the KNCMINER Jupiter or neptune?
No, while I made an initial driver for cgminer based on the knc driver itself with some minor changes from me and included it in cgminer, the knc driver maintainers have since deviated from the original code I included and made no attempt to push their code back to mainline cgminer, so what is in mainline cgminer is now an ageing version of their earlier driver and not whatever is now part of their firmware.

Primary developer/maintainer for cgminer and ckpool/ckproxy.
Pooled mine at ckpool.org Solo mine at solo.ckpool.org
-ck
basil3legs
Newbie
*
Offline Offline

Activity: 13


View Profile
June 26, 2014, 02:51:35 AM
 #15235

Ok, back to trying to build cgminer for the Antminer S1.

Thanks to some pointers from kano and norgan and in between watching way too much football I have made some progress but am still a little stuck.

I figured the best bet would be to try to get the Avalon instructions to work and once successful there adapt it for the S1 but that isn't being too successful!

I am basing this on the instructions here : https://forum.openwrt.org/viewtopic.php?id=45693 changing cp package/cgminer/data/config .config to copy config.avalon.703n to .config (I have tried a couple of the others as well)

The error I am getting is "checking for LIBCURL... no" and the build stops with an error.  Having searched and searched the internet, not helped by the openwrt wiki being down, I have not got around that error.  However, in the cgminer readme it mentions curl is optional so does the Avalon (and susequently the Antminer S1) need curl, and if not how would I disable it.  If it does, how the heck do I get the make to find it?  I believe libcurl needs to be in the openwrt buildroot rather than associated with Ubuntu - but please correct me if this is wrong.  This error probably isn't really anything to do with cgminer but I figured someone on here may know the solution.

Also, when building I get the OpenWrt Configuration screen come up.  Does anything need changing in there?  Again I could find no help searching the internet.

Once I crack this, it should be straight forward to get this to work for the S1 as I already have the Makefile for that although the config files with it are still named after the Avalon but the actual code appears to have been changed for the S1 but there are a couple of choices still.

So, any further pointers would be greatly appreciated.

I'm not sure when I will be online today as our electricity meter is being changed so I can move to a cheaper supplier!

norgan
Sr. Member
****
Offline Offline

Activity: 308

Decentralize your hashing - p2pool - Norgz Pool


View Profile WWW
June 26, 2014, 03:32:27 AM
 #15236

Ok, back to trying to build cgminer for the Antminer S1.

Thanks to some pointers from kano and norgan and in between watching way too much football I have made some progress but am still a little stuck.

I figured the best bet would be to try to get the Avalon instructions to work and once successful there adapt it for the S1 but that isn't being too successful!

I am basing this on the instructions here : https://forum.openwrt.org/viewtopic.php?id=45693 changing cp package/cgminer/data/config .config to copy config.avalon.703n to .config (I have tried a couple of the others as well)

The error I am getting is "checking for LIBCURL... no" and the build stops with an error.  Having searched and searched the internet, not helped by the openwrt wiki being down, I have not got around that error.  However, in the cgminer readme it mentions curl is optional so does the Avalon (and susequently the Antminer S1) need curl, and if not how would I disable it.  If it does, how the heck do I get the make to find it?  I believe libcurl needs to be in the openwrt buildroot rather than associated with Ubuntu - but please correct me if this is wrong.  This error probably isn't really anything to do with cgminer but I figured someone on here may know the solution.

Also, when building I get the OpenWrt Configuration screen come up.  Does anything need changing in there?  Again I could find no help searching the internet.

Once I crack this, it should be straight forward to get this to work for the S1 as I already have the Makefile for that although the config files with it are still named after the Avalon but the actual code appears to have been changed for the S1 but there are a couple of choices still.

So, any further pointers would be greatly appreciated.

I'm not sure when I will be online today as our electricity meter is being changed so I can move to a cheaper supplier!



you may need to pass the build switch that excludes drivers other than Bitmain. One of them would have the dependency for curl.

Miner, tech geek, operator of NorgzPool - Sydney Australia P2Pool Node creator of p2pool fancy front end

Tips: 1NorganBbymShTN2MMpfGzRYJF8mcPeXjv Exchange BTC locally in Australia or Donate to p2pool miners
basil3legs
Newbie
*
Offline Offline

Activity: 13


View Profile
June 26, 2014, 09:24:50 AM
 #15237

Ok, back to trying to build cgminer for the Antminer S1.

Thanks to some pointers from kano and norgan and in between watching way too much football I have made some progress but am still a little stuck.

I figured the best bet would be to try to get the Avalon instructions to work and once successful there adapt it for the S1 but that isn't being too successful!

I am basing this on the instructions here : https://forum.openwrt.org/viewtopic.php?id=45693 changing cp package/cgminer/data/config .config to copy config.avalon.703n to .config (I have tried a couple of the others as well)

The error I am getting is "checking for LIBCURL... no" and the build stops with an error.  Having searched and searched the internet, not helped by the openwrt wiki being down, I have not got around that error.  However, in the cgminer readme it mentions curl is optional so does the Avalon (and susequently the Antminer S1) need curl, and if not how would I disable it.  If it does, how the heck do I get the make to find it?  I believe libcurl needs to be in the openwrt buildroot rather than associated with Ubuntu - but please correct me if this is wrong.  This error probably isn't really anything to do with cgminer but I figured someone on here may know the solution.

Also, when building I get the OpenWrt Configuration screen come up.  Does anything need changing in there?  Again I could find no help searching the internet.

Once I crack this, it should be straight forward to get this to work for the S1 as I already have the Makefile for that although the config files with it are still named after the Avalon but the actual code appears to have been changed for the S1 but there are a couple of choices still.

So, any further pointers would be greatly appreciated.

I'm not sure when I will be online today as our electricity meter is being changed so I can move to a cheaper supplier!



you may need to pass the build switch that excludes drivers other than Bitmain. One of them would have the dependency for curl.
The problem is that I am using an already written Makefile so don't really want to mess around with it.  I have yet to find out how to pass any switches to the build, if it is actually possible, when cross compiling.
kano
Legendary
*
Online Online

Activity: 2156


Linux since 1997 RedHat 4


View Profile
June 26, 2014, 11:57:51 AM
 #15238

...
The problem is that I am using an already written Makefile so don't really want to mess around with it.  I have yet to find out how to pass any switches to the build, if it is actually possible, when cross compiling.
The Makefile is in the feed.
Did you not look in there when I pointed it out?
https://bitcointalk.org/index.php?topic=28402.msg7462671#msg7462671
Quote
...
The cgminer feed that I change each time:
https://github.com/kanoi/cgminer-openwrt-packages

I'll do a new S1 tonight ... and put it up for testing (and run it myself as well of course)

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!
basil3legs
Newbie
*
Offline Offline

Activity: 13


View Profile
June 26, 2014, 12:16:52 PM
 #15239

...
The problem is that I am using an already written Makefile so don't really want to mess around with it.  I have yet to find out how to pass any switches to the build, if it is actually possible, when cross compiling.
The Makefile is in the feed.
Did you not look in there when I pointed it out?
https://bitcointalk.org/index.php?topic=28402.msg7462671#msg7462671
Yes, that is the Makefile I am using (or will be for the S1).

Firstly though I am trying to get this to work using the Avalon instructions as you suggested.  I appear to have everything I need for the build but am just having problems with LIBCURL.

Can I please ask what set up you use to build this on?

Also, can I ask which of the 2 .config files you use?
vulgartrendkill
Hero Member
*****
Offline Offline

Activity: 518



View Profile WWW
June 26, 2014, 12:21:56 PM
 #15240

I'm still having issues with cg since 4.4.0. 

TRied to add or remove pools goes ok untill you click save .conf.

Cg then crashes (windows tries to solve issue) close it down, and  when restarts, the .conf is empty.

The workaround is to manually edit the .conf, but still a little frustrating.

Thanks
Pages: « 1 ... 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 [762] 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 ... 835 »
  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!