Bitcoin Forum
December 06, 2016, 07:49:45 PM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: « 1 ... 710 711 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 ... 830 »
  Print  
Author Topic: OFFICIAL CGMINER mining software thread for linux/win/osx/mips/arm/r-pi 4.9.2  (Read 4820062 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.
Davefox
Newbie
*
Offline Offline

Activity: 25


View Profile
June 15, 2014, 10:20:46 PM

Gents

Firstly i am a complete noob who has been bitten hard!!!

BUT all day today has fryed my head... completely shot.

Basicly i have got an avalon 2 100ghs single unit. I got a tplink mr3020 and tired to flash with new firmware and guess what bricked it. SO i thought bullocks i wanted a Raspberry PI anyway so an excuse to get one and have a play.

So today i get one from a local shop, get noobs installed and running, install a version of CGminer via GIT and following instructions. This version couldnt see the device. Found another thread where someone else had used a certain version of CGMINER. Installed this and it still wouldnt find it.

So found this thread installed lastest version. When compiled i used -enable-avalon2 which in the list it said enabled.

Some commands from pervious threads didnt seem to work in this version.

Sat looking at the readme file and well my head is beyond repair. I cant even find the basic commands to view usb device lists to see if its now visable.

Is there an idiots guide to install 4.3.5? and setup or am i beyond help lol.

1481053785
Hero Member
*
Offline Offline

Posts: 1481053785

View Profile Personal Message (Offline)

Ignore
1481053785
Reply with quote  #2

1481053785
Report to moderator
1481053785
Hero Member
*
Offline Offline

Posts: 1481053785

View Profile Personal Message (Offline)

Ignore
1481053785
Reply with quote  #2

1481053785
Report to moderator
1481053785
Hero Member
*
Offline Offline

Posts: 1481053785

View Profile Personal Message (Offline)

Ignore
1481053785
Reply with quote  #2

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

Activity: 1918


Think for yourself


View Profile
June 16, 2014, 01:57:05 AM

I cant even find the basic commands to view usb device lists to see if its now visable.

The "-n" argument displays all usb devices available and exits.  It is in the readme.

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?
-ck
Moderator
Legendary
*
Offline Offline

Activity: 1988


Ruu \o/


View Profile WWW
June 16, 2014, 04:02:22 AM

New release: Version 4.4.0, 16th June 2014

New driver warrants the minor version bump.


Human readable changelog:

- Rockminer R-Box support. This driver is based on the manufacturer provided driver but does NOT interfere with existing icarus devices such as the AMU, ANU, CMR2 etc. and it only takes the one parameter for overclocking,
Code:
--rock-freq <arg>   Set RockMiner frequency in MHz, range 125-500 (default: 270.0)
In my testing, this device usually only starts with hotplugging so after starting be patient while it gets going. This seems to take longer on windows. Also no frequency above 290 will be passed to the device and I didn't have much success running it higher than the default frequency, getting ~32GH.
- Fixed the failure to work with p2pool on the last release.
- Error messages on stratum connections are now displayed if something really borked has happened and the pool has informed you (such as invalid nonce2 length).
- Cointerra and minion fixes.
- Build fixes for some mips environments.


Full changelog

- Tidy unused rockminer variables
- Tidy rockminer defines
- Make rockminer driver compatible with other icarus drivers being present
- Import basic rbox driver
- minion - add optional (on) GPIO chip selection
- Clear the pool idle flag in the pool test thread
- CoreFmatch in cointerra should be a uint16
- Display error message if we receive one on share rejects
- Allow zero length strings to be passed to valid_hex
- delete unused roundl definition

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

Activity: 826



View Profile
June 16, 2014, 08:29:30 AM

To me it looks like a valuable change, given the waste of traffic that now occurs.
This is a gross exaggeration for any existing hardware that uses the bifury protocol on cgminer which produces only tiny amounts of traffic. Scaling device internal diff to pool diff will just make the hashrate calculation more and more inaccurate but not have any significant effect on performance or decrease CPU utilisation. Your OSM devices max out at 32GH which produces only 7 shares per second - even an RPi wouldn't register any measurable CPU usage processing those to filter out and send only the suitable shares to the pool. That's not to say the change won't eventually be required and welcome, just that it is not something I have time to work on at the moment since there is no benefit to existing miners.
"Any existing hardware". I am sure you don't know all existing hardware using Bitfury chips, so your "produces only tiny amounts of traffic" is wrong.
You are right when only looking at one OneStringMiner board, doing 32GH/s, but what about 384 of them in a cluster ? Do you now see why it would be beneficial ?

Given the fact that you don't react on my small code changes, I may assume they are correct ?

I am selling in stock OneStringMiner boards, based on the Bitfury chips. Have a look here: https://bitcointalk.org/index.php?topic=495536.0
-ck
Moderator
Legendary
*
Offline Offline

Activity: 1988


Ruu \o/


View Profile WWW
June 16, 2014, 08:42:57 AM

I'm not sure why you're rehashing the same discussion we had in private here in public, but I'll put it down to frustration with me not working on that change for you. Sorry but I'm drowning in existing hardware people want me to get working, code, work and other real life commitments. I acknowledged the need for it but it will remain low priority for me for the reasons I've already outlined. If someone else pushes appropriate code I'm always happy to take it.


So, if I understand you correctly I need to make the following changes to driver-bitfury.c :

Code:
sprintf(buf, "target ffffffff\n");
into
sprintf(buf, "target %08lx\n",(0xffffffff/pool_difficulty));

ret = (double)0xffffffff * nonce_rate;
into
ret = (double)(0xffffffff/pool_difficulty) * nonce_rate;

info->nonces++;
(occurs twice) into
info->nonces += pool_difficulty;
There is no need to increment nonces by pool difficulty as that will be doubling up the change. Otherwise it's fine in principle as a coarse change.

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

Activity: 826



View Profile
June 16, 2014, 08:46:46 AM

I'm not sure why you're rehashing the same discussion we had in private here in public, but I'll put it down to frustration with me not working on that change for you. Sorry but I'm drowning in existing hardware people want me to get working, code, work and other real life commitments. I acknowledged the need for it but it will remain low priority for me for the reasons I've already outlined. If someone else pushes appropriate code I'm always happy to take it.
I am not frustrated at all and I do understand you have better things to do. I even suggested the needed code change (in pseudo code) for you to quickly review and give your blessing, that's all.

So, if I understand you correctly I need to make the following changes to driver-bitfury.c :

Code:
sprintf(buf, "target ffffffff\n");
into
sprintf(buf, "target %08lx\n",(0xffffffff/pool_difficulty));

ret = (double)0xffffffff * nonce_rate;
into
ret = (double)(0xffffffff/pool_difficulty) * nonce_rate;

info->nonces++;
(occurs twice) into
info->nonces += pool_difficulty;
There is no need to increment nonces by pool difficulty as that will be doubling up the change. Otherwise it's fine in principle as a coarse change.
Thanks.

I am selling in stock OneStringMiner boards, based on the Bitfury chips. Have a look here: https://bitcointalk.org/index.php?topic=495536.0
Davefox
Newbie
*
Offline Offline

Activity: 25


View Profile
June 16, 2014, 04:17:45 PM

I cant even find the basic commands to view usb device lists to see if its now visable.

The "-n" argument displays all usb devices available and exits.  It is in the readme.

something im doing wrong since worked on verison i used before, on the lastest install from sources on front page of this thread it didnt work.

Fresh start today on a fresh install now ive got a clear head.
Ankhy
Newbie
*
Offline Offline

Activity: 2


View Profile
June 17, 2014, 12:04:08 PM

I've compiled the newest cgminer 4.4.0 with following Options on a Raspian PI Debian Wheezy:
Code:
sudo apt-get install libusb-1.0-0-dev libusb-1.0-0 libcurl4-openssl-dev libncurses5-dev libudev-dev
wget http://ck.kolivas.org/apps/cgminer/cgminer-4.4.0.tar.bz2
tar xvf cgminer-4.4.0.tar.bz2
cd cgminer-4.4.0
./configure --enable-icarus
make

Done several times before with previous cgminer Versions, but with this Version I'm not able to mining. Cgminer declares that no USB Devices has been found, when I started it with following Option:
Code:
sudo ./cgminer -o stratum+tcp://stratum.examplepool:port -u xyz -p zyx --anu-freq 250

If I'm starting cgminer only with -n  it outputs this:
Code:
sudo ./cgminer -n
 [2014-06-17 13:05:20] USB all: found 19 devices - listing known devices
.USB dev 0: Bus 1 Device 19 ID: 10c4:ea60
  Manufacturer: 'Silicon Labs'
  Product: 'CP2102 USB to UART Bridge Controller'
.USB dev 1: Bus 1 Device 18 ID: 10c4:ea60
  Manufacturer: 'Silicon Labs'
  Product: 'CP2102 USB to UART Bridge Controller'
.USB dev 2: Bus 1 Device 17 ID: 10c4:ea60
  Manufacturer: 'Silicon Labs'
  Product: 'CP2102 USB to UART Bridge Controller'
.USB dev 3: Bus 1 Device 15 ID: 10c4:ea60
  Manufacturer: 'Silicon Labs'
  Product: 'CP2102 USB to UART Bridge Controller'
.USB dev 4: Bus 1 Device 14 ID: 10c4:ea60
  Manufacturer: 'Silicon Labs'
  Product: 'CP2102 USB to UART Bridge Controller'
.USB dev 5: Bus 1 Device 13 ID: 10c4:ea60
  Manufacturer: 'Silicon Labs'
  Product: 'CP2102 USB to UART Bridge Controller'
.USB dev 6: Bus 1 Device 12 ID: 10c4:ea60
  Manufacturer: 'Silicon Labs'
  Product: 'CP2102 USB to UART Bridge Controller'
.USB dev 7: Bus 1 Device 11 ID: 10c4:ea60
  Manufacturer: 'Silicon Labs'
  Product: 'CP2102 USB to UART Bridge Controller'
.USB dev 8: Bus 1 Device 10 ID: 10c4:ea60
  Manufacturer: 'Silicon Labs'
  Product: 'CP2102 USB to UART Bridge Controller'
.USB dev 9: Bus 1 Device 6 ID: 10c4:ea60
  Manufacturer: 'Silicon Labs'
  Product: 'CP2102 USB to UART Bridge Controller'
 [2014-06-17 13:05:20] 10 known USB devices

But if I'm using a previous Version of Cgminer all U1 / U2 Ants were be found, so I think that there is something going wrong with cgminer 4.4.0 ?
Davefox
Newbie
*
Offline Offline

Activity: 25


View Profile
June 17, 2014, 08:56:12 PM

I cant even find the basic commands to view usb device lists to see if its now visable.

The "-n" argument displays all usb devices available and exits.  It is in the readme.

something im doing wrong since worked on verison i used before, on the lastest install from sources on front page of this thread it didnt work.

Fresh start today on a fresh install now ive got a clear head.

Any advice some anyone please??

I have got cgminer 4.3.5 or 4.4.0 installed on another sd card. When i have cgminer running it says it can see the device as a serial usb connection since the miner is an avalon2 but it wont enable? Have i missed a command? i did compile with --enable-avalon2.

Sorry to ask so many questions Raspberry PI and cgminer are new to me and trying to learn.

*EDIT if i use sudo ./cgminer -n it details usb device.

When running cgminer it says 0 usb devices perharps i have not enabled the right option? but i have used avalon2 and its the single blade style 100ghs
Polyatomic
Sr. Member
****
Offline Offline

Activity: 256


View Profile
June 17, 2014, 09:28:54 PM

I cant even find the basic commands to view usb device lists to see if its now visable.

The "-n" argument displays all usb devices available and exits.  It is in the readme.

something im doing wrong since worked on verison i used before, on the lastest install from sources on front page of this thread it didnt work.

Fresh start today on a fresh install now ive got a clear head.

Any advice some anyone please??

I have got cgminer 4.3.5 or 4.4.0 installed on another sd card. When i have cgminer running it says it can see the device as a serial usb connection since the miner is an avalon2 but it wont enable? Have i missed a command? i did compile with --enable-avalon2.

Sorry to ask so many questions Raspberry PI and cgminer are new to me and trying to learn.

*EDIT if i use sudo ./cgminer -n it details usb device.

When running cgminer it says 0 usb devices perharps i have not enabled the right option? but i have used avalon2 and its the single blade style 100ghs

You can do the old, ls /dev/ttyUSB* and start cgminer with ./cgminer -S /dev/ttyUSB0 --avalon2-voltage 10000 --avalon2-freq 1500 --avalon2-fan 90 -o YOUR_POOL:PORT
-ck
Moderator
Legendary
*
Offline Offline

Activity: 1988


Ruu \o/


View Profile WWW
June 17, 2014, 10:44:05 PM

I've compiled the newest cgminer 4.4.0 with following Options on a Raspian PI Debian Wheezy:
Code:
sudo apt-get install libusb-1.0-0-dev libusb-1.0-0 libcurl4-openssl-dev libncurses5-dev libudev-dev
wget http://ck.kolivas.org/apps/cgminer/cgminer-4.4.0.tar.bz2
tar xvf cgminer-4.4.0.tar.bz2
cd cgminer-4.4.0
./configure --enable-icarus
make

Done several times before with previous cgminer Versions, but with this Version I'm not able to mining. Cgminer declares that no USB Devices has been found, when I started it with following Option:
Code:
sudo ./cgminer -o stratum+tcp://stratum.examplepool:port -u xyz -p zyx --anu-freq 250


But if I'm using a previous Version of Cgminer all U1 / U2 Ants were be found, so I think that there is something going wrong with cgminer 4.4.0 ?
I wonder if it's related to the rbox code going into the icarus driver. It doesn't seem to interfere on PC linux or windows, so I'm not sure why the pi would be different but anything's possible. Does it work with 4.3.5?

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

Activity: 1988


Ruu \o/


View Profile WWW
June 17, 2014, 10:46:09 PM

I cant even find the basic commands to view usb device lists to see if its now visable.

The "-n" argument displays all usb devices available and exits.  It is in the readme.

something im doing wrong since worked on verison i used before, on the lastest install from sources on front page of this thread it didnt work.

Fresh start today on a fresh install now ive got a clear head.

Any advice some anyone please??

I have got cgminer 4.3.5 or 4.4.0 installed on another sd card. When i have cgminer running it says it can see the device as a serial usb connection since the miner is an avalon2 but it wont enable? Have i missed a command? i did compile with --enable-avalon2.

Sorry to ask so many questions Raspberry PI and cgminer are new to me and trying to learn.

*EDIT if i use sudo ./cgminer -n it details usb device.

When running cgminer it says 0 usb devices perharps i have not enabled the right option? but i have used avalon2 and its the single blade style 100ghs

You can do the old, ls /dev/ttyUSB* and start cgminer with ./cgminer -S /dev/ttyUSB0 --avalon2-voltage 10000 --avalon2-freq 1500 --avalon2-fan 90 -o YOUR_POOL:PORT
I'm not sure what the problem is with your avalon2 but one thing I am sure of is there is  no -S command in the mainline cgminer for any ASICs and hasn't been for a year. That was only for old serial based devices and all mainline cgminer uses direct USB only (cgminer forks are likely different but any drivers merged into mainline cgminer have to use direct USB).

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

Activity: 546


View Profile WWW
June 17, 2014, 10:57:21 PM

I have 4.4 on a clean pc and what I see is what I saw in 4.3. I tried to offset my bitcoin devices from a known working pc and found they'd be marked as dead after a while. This happens quicker on usb 3.0(30 mins vs 1 hr and 30 mins[which doesn't take all night to notice]) but it's the first time I saw this.

The devices are mostly u1 and u2 devices but my drillbit eight board device disappeared once as well but a power cycle and disconnect seemed to work that out. Both pc's were both windows 7 and current on updates.

I hope you can look into this

Like the info address for potential tips Wink
BTC 1CL5BnNhdL2wDVmSDwMbW1cNhZew87CAPV
* http://www.miningrigrentals.com/register?ref=563
-ck
Moderator
Legendary
*
Offline Offline

Activity: 1988


Ruu \o/


View Profile WWW
June 17, 2014, 11:26:23 PM

I have 4.4 on a clean pc and what I see is what I saw in 4.3. I tried to offset my bitcoin devices from a known working pc and found they'd be marked as dead after a while. This happens quicker on usb 3.0(30 mins vs 1 hr and 30 mins[which doesn't take all night to notice]) but it's the first time I saw this.

The devices are mostly u1 and u2 devices but my drillbit eight board device disappeared once as well but a power cycle and disconnect seemed to work that out. Both pc's were both windows 7 and current on updates.

I hope you can look into this
Some USB3 on windows are famously less reliable via libusb. I've yet to see any reasonable workaround I'm afraid. If you can find a usb2 port on the pc or plug a usb2 hub in and plug them into that you might have more luck.

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

Activity: 1988


Ruu \o/


View Profile WWW
June 18, 2014, 01:01:48 AM

I'll be travelling over the next 4 weeks and while I will have internet access I will only be available in a limited capacity so bear that in mind with support or development requests and don't assume I've abandoned you all.

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

Activity: 686


WANTED: Active dev to fix & re-write p2pool in C


View Profile
June 18, 2014, 01:07:51 AM

That's it. We're all  screwed  Cheesy Cheesy Cheesy

Will Kano be lurking?

-- Smiley  Thank you for smoking  Smiley --  If you paid VAT to dogie for items you should read this thread:  https://bitcointalk.org/index.php?topic=1018906.0
Polyatomic
Sr. Member
****
Offline Offline

Activity: 256


View Profile
June 18, 2014, 06:31:16 AM


I'm not sure what the problem is with your avalon2 but one thing I am sure of is there is  no -S command in the mainline cgminer for any ASICs and hasn't been for a year. That was only for old serial based devices and all mainline cgminer uses direct USB only (cgminer forks are likely different but any drivers merged into mainline cgminer have to use direct USB).

ok, no drama I will go back to the docs.
freedomno1
Legendary
*
Offline Offline

Activity: 1078


Activity: 9001 == OP


View Profile WWW
June 18, 2014, 07:32:24 AM

I'll be travelling over the next 4 weeks and while I will have internet access I will only be available in a limited capacity so bear that in mind with support or development requests and don't assume I've abandoned you all.

I hope you enjoy your travelling, if I am going by your avatar it will be to Japan
Anyways enjoy your trip ckolivas and thanks for all the work.

Xian01
Legendary
*
Offline Offline

Activity: 1302


󮀓1刎


View Profile
June 18, 2014, 02:59:08 PM

I've created an AntMinerS2 firmware.
...
Thank you for this. Most appreciated. Updated two of my S2's this morning and will report any issues.

After several days, I'm happy to report ZERO duplicate shares with your S2 firmware Smiley Thanks again Kano !
Askit2
Hero Member
*****
Offline Offline

Activity: 524


View Profile
June 18, 2014, 08:28:36 PM

I cant even find the basic commands to view usb device lists to see if its now visable.

The "-n" argument displays all usb devices available and exits.  It is in the readme.

something im doing wrong since worked on verison i used before, on the lastest install from sources on front page of this thread it didnt work.

Fresh start today on a fresh install now ive got a clear head.

Any advice some anyone please??

I have got cgminer 4.3.5 or 4.4.0 installed on another sd card. When i have cgminer running it says it can see the device as a serial usb connection since the miner is an avalon2 but it wont enable? Have i missed a command? i did compile with --enable-avalon2.

Sorry to ask so many questions Raspberry PI and cgminer are new to me and trying to learn.

*EDIT if i use sudo ./cgminer -n it details usb device.

When running cgminer it says 0 usb devices perharps i have not enabled the right option? but i have used avalon2 and its the single blade style 100ghs

Possibly and I don't intend to insult anyone but there is a file you have to edit or add when you first start using cgminer on a raspberryPi. 01-cgminer.rules. It needs to go into /etc/udev/rules.d. The code in the readme is the following.
Code:
sudo cp 01-cgminer.rules /etc/udev/rules.d/

Possibly you are using a version of the rules file from before avalon2. I don't know. I am only thinking about that file because it was a change for me when I swapped to Linux.

I appreciate donations at ( 1NwkQdmomQPLtdes5KuZhB1D22p7ZGRy4p )
If I am helping in the CGMiner thread give it to Con or Kano. They do the work there.
If you want to sign up for a coinbase account I would appreciate it if you use my referral link. US people now wire, 1% fee give or take a little for sending to your bank account. https://coinbase.com/?r=515bf6145682db9d11000028&utm_campaign=user-referral&src=
Pages: « 1 ... 710 711 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 ... 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!