Author

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

newbie
Activity: 39
Merit: 0
Hi there ,
I run a older version of CGMiner (will look later for the Ver. it 2:39am here). I got my Antminer U2 working with --enable-bmsc. My Pi display works prober (the adafruit one) besides that it shows 0 Devices. The U2 runs @2.032... GH/s and stabile.Because I got a vintage version of CGMiner, to which version I should upgrade???
As I said raspberry pi with adafruit 16x2 display with Bitmain Antminer U2
Ohhh ps theis program ROCKS. I am a linux noob btw
There is no --enable-bmsc in cgminer - you are running a fork of cgminer.

U1 and U2 support in cgminer is part of the Icarus driver since the U1 and U2 are designed to act almost exactly like an old Icarus FPGA.
So in cgminer it is --enable-icarus
You will also find that cgminer has the best support of setting the clock on a U1 and U2 where you can set it based on the clock speed you want rather than some obscure hex code (thanks to ckolivas)

Use the current version 4.2.2
I have a Raspbian binary for 4.2.2 (called 4.2.2a) in my cgminer-binaries git:
https://github.com/kanoi/cgminer-binaries/tree/master/RPi_Raspbian

You'll need at least 3.12.2 if you want all the changes for the U1/U2

As I said just started with that stuff,I assume afork is a custom build of a program? I didnt know of this forum at the time so I used the adafruit site for help. The only things i made with the pi is use it as controller board for my drone XD. Thank you for your fast replie thou. Looks like Iam at the right place

So how do I do this. I assume by cloneing one of thouse files? Do I delete my current cgminer folder? Sorry for being a pain, I was happy that that thig started mining after i was done in 5 hours copy/pasting code XD

Currently that thing mines a 2.032.... but has a error rate of 13.04% I assume that would be fixed with your program? Can you make me a copy/pste code window with all the steps I need to do. Just don't wanna kill 4 +hours again or distroy something. Sorry again for being a full noob Sad
newbie
Activity: 8
Merit: 0
There has been for a long time an LCD screen app for the RPi written by cardcomm and I helped get it all working properly:
https://github.com/kanoi/cgminerLCDStats

Tell the Adafruit people to have a look at that from 7 or 8 months ago.
(Edit: I use it, and still use it ... and yes, no problems with it)

I'll look into this in the morning - as well as version 3.12.2, checking the NEWS file indicates that U1 support was added then (3.12.1 technically).  And thank you very much for both your patience and answers, and that goes for both of you Smiley

As far as telling the Adafruit people - I've had trouble getting support on their forums (literally zero responses to questions about these issues), which is why I started posting here.
legendary
Activity: 4592
Merit: 1851
Linux since 1997 RedHat 4
Hi there ,
I run a older version of CGMiner (will look later for the Ver. it 2:39am here). I got my Antminer U2 working with --enable-bmsc. My Pi display works prober (the adafruit one) besides that it shows 0 Devices. The U2 runs @2.032... GH/s and stabile.Because I got a vintage version of CGMiner, to which version I should upgrade???
As I said raspberry pi with adafruit 16x2 display with Bitmain Antminer U2
Ohhh ps theis program ROCKS. I am a linux noob btw
There is no --enable-bmsc in cgminer - you are running a fork of cgminer.

U1 and U2 support in cgminer is part of the Icarus driver since the U1 and U2 are designed to act almost exactly like an old Icarus FPGA.
So in cgminer it is --enable-icarus
You will also find that cgminer has the best support of setting the clock on a U1 and U2 where you can set it based on the clock speed you want rather than some obscure hex code (thanks to ckolivas)

Use the current version 4.2.2
I have a Raspbian binary for 4.2.2 (called 4.2.2a) in my cgminer-binaries git:
https://github.com/kanoi/cgminer-binaries/tree/master/RPi_Raspbian

You'll need at least 3.12.2 if you want all the changes for the U1/U2
newbie
Activity: 39
Merit: 0
Hi there ,
I run a older version of CGMiner (will look later for the Ver. it 2:39am here). I got my Antminer U2 working with --enable-bmsc. My Pi display works prober (the adafruit one) besides that it shows 0 Devices. The U2 runs @2.032... GH/s and stabile.Because I got a vintage version of CGMiner, to which version I should upgrade???
As I said raspberry pi with adafruit 16x2 display with Bitmain Antminer U2
Ohhh ps theis program ROCKS. I am a linux noob btw
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
OOOOOOOOOOH.  That makes sense.  Which version of CGMiner was that added to Icarus?

You can always check the extensively documented NEWS file to see when U1 support was added if you want to use an old version.
newbie
Activity: 8
Merit: 0
OOOOOOOOOOH.  That makes sense.  Which version of CGMiner was that added to Icarus?
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
You're entirely right - I had this feeling like I was saying something but seeing something else, but I wasn't quite sure what it was - but apparently that "--enable-ants1" does do something for the U1's in CGMiner as well.  Like I said in a post above, enabling the ants1 configuration with icarus allows the U1's to hash at or just under 1.6ghz each, which is better than the 500mhz block erupter speeds I was getting before with just the icarus configured.  Also, the section below has "anu-freq" which affects U1 hashing speeds, so I think I was probably mixing those two up as far as S1/U1 stuff goes.

Also, since both miners use the same chips, I'm guessing they both communicate the same way - so maybe that's part of why the ants1 configuration is fixing the hashing issue.

If the ants1 configuration has nothing to do with the U1's, then why would the U1's be working differently with that enabled than without it?


No no no you're confusing support for the U1 being in the newer cgminer with you enabling S1 support which has nothing to do with it. Support for the U1 is in newer cgminer code with the icarus driver.
newbie
Activity: 8
Merit: 0
You're entirely right - I had this feeling like I was saying something but seeing something else, but I wasn't quite sure what it was - but apparently that "--enable-ants1" does do something for the U1's in CGMiner as well.  Like I said in a post above, enabling the ants1 configuration with icarus allows the U1's to hash at or just under 1.6ghz each, which is better than the 500mhz block erupter speeds I was getting before with just the icarus configured.  Also, the section below has "anu-freq" which affects U1 hashing speeds, so I think I was probably mixing those two up as far as S1/U1 stuff goes.

Also, since both miners use the same chips, I'm guessing they both communicate the same way - so maybe that's part of why the ants1 configuration is fixing the hashing issue.

If the ants1 configuration has nothing to do with the U1's, then why would the U1's be working differently with that enabled than without it?

legendary
Activity: 4592
Merit: 1851
Linux since 1997 RedHat 4
If the program getting the data source from cgminer is using screen scraping or text log processing, then yep that will fail each time we change the screen layout or the text log output format.

Since you are referring to something that is not part of cgminer, you'll need to provide more info Smiley

Can you be more specific about what info would be helpful and where I might find it?  The program which runs the LCD is in python.  I really don't know python at all, and I could go through some of the files in the package from that Adafruit Tutorial I linked in order to find that information, but I'm not really sure what information would be informative.  And as long as you're asking for more information: the screen has some push buttons that cycle through different displays - only one screen reads a format error, the others read "connecting to cgminer...", and the last display works correctly.  That last one which works, though, is just recent market prices and so doesn't rely on cgminer for data.

How about one of the older versions before the screen layout change?  Do any support Antminer U1 configuration?  I know I had to --enable-icarus and --enable-ants1 in order for 4.2.1 to recognize the U1, so I probably will try enabling all support for 3.8.4 (maybe one of the 3.9.x's) to see if I can get the U1's hash speed up - that would also be an acceptable solution.  With just --enable-ants1, 4.2.1 didn't notice they were there.  Any maybe this makes perfect sense to people here who have a greater understanding of hardware/software interaction and communication.  It has been an adventure getting this far off that tutorial and some old forum posts.
Firstly, yes as ckolivas said, --enable-ants1 has nothing to do with Ant U1s or U2s
It's for the AntMinerS1 that doesn't run on anything except the OpenWRT standalone device that Bitmain sells.
You'd never compile that into the code except on it's own when cross compiling for the AntS1.

Now, I'll go out on a limb here and say that what has happened is the people who wrote the Adafruit package did something REALLY dumb.
I'll say I'm 99.99% sure of that.
What has changed in the API is the order of fields.
I've never changed the field order before, however, as I said in my first reply, the fields are keyed by name.
My guess is that they are IGNORING the field names ... so you can expect to get the problems they have.

There has been for a long time an LCD screen app for the RPi written by cardcomm and I helped get it all working properly:
https://github.com/kanoi/cgminerLCDStats

Tell the Adafruit people to have a look at that from 7 or 8 months ago.
(Edit: I use it, and still use it ... and yes, no problems with it)
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
There's no such command as --enable-ants1 I have no idea where you got that. Ancient versions did not support the U1s so the icarus driver randomly ran them not much better than a block erupter. You can always check the extensively documented NEWS file to see when U1 support was added if you want to use an old version.

https://www.dropbox.com/s/fvjes67wygg0ytd/CaptureCGMinerReadMe.PNG - from the ReadMe under "Building CGMiner For Yourself".  I included the URL so you could see it's kinda on the webpage with your name on it.
Code:
--enable-ants1          Compile support for Antminer S1 Bitmain (default disabled)
Indeed even I forgot that sorry, since it was code added by Kano, but that says to build for Antminer S1 and you have U1.
newbie
Activity: 8
Merit: 0
There's no such command as --enable-ants1 I have no idea where you got that. Ancient versions did not support the U1s so the icarus driver randomly ran them not much better than a block erupter. You can always check the extensively documented NEWS file to see when U1 support was added if you want to use an old version.

https://www.dropbox.com/s/fvjes67wygg0ytd/CaptureCGMinerReadMe.PNG - from the ReadMe under "Building CGMiner For Yourself".  I included the URL so you could see it's kinda on the webpage with your name on it.
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
How about one of the older versions before the screen layout change?  Do any support Antminer U1 configuration?  I know I had to --enable-icarus and --enable-ants1 in order for 4.2.1 to recognize the U1, so I probably will try enabling all support for 3.8.4 (maybe one of the 3.9.x's) to see if I can get the U1's hash speed up - that would also be an acceptable solution.  With just --enable-ants1, 4.2.1 didn't notice they were there.  Any maybe this makes perfect sense to people here who have a greater understanding of hardware/software interaction and communication.  It has been an adventure getting this far off that tutorial and some old forum posts.
There's no such command as --enable-ants1 I have no idea where you got that. Ancient versions did not support the U1s so the icarus driver randomly ran them not much better than a block erupter. You can always check the extensively documented NEWS file to see when U1 support was added if you want to use an old version.
newbie
Activity: 8
Merit: 0
If the program getting the data source from cgminer is using screen scraping or text log processing, then yep that will fail each time we change the screen layout or the text log output format.

Since you are referring to something that is not part of cgminer, you'll need to provide more info Smiley

Can you be more specific about what info would be helpful and where I might find it?  The program which runs the LCD is in python.  I really don't know python at all, and I could go through some of the files in the package from that Adafruit Tutorial I linked in order to find that information, but I'm not really sure what information would be informative.  And as long as you're asking for more information: the screen has some push buttons that cycle through different displays - only one screen reads a format error, the others read "connecting to cgminer...", and the last display works correctly.  That last one which works, though, is just recent market prices and so doesn't rely on cgminer for data.

How about one of the older versions before the screen layout change?  Do any support Antminer U1 configuration?  I know I had to --enable-icarus and --enable-ants1 in order for 4.2.1 to recognize the U1, so I probably will try enabling all support for 3.8.4 (maybe one of the 3.9.x's) to see if I can get the U1's hash speed up - that would also be an acceptable solution.  With just --enable-ants1, 4.2.1 didn't notice they were there.  Any maybe this makes perfect sense to people here who have a greater understanding of hardware/software interaction and communication.  It has been an adventure getting this far off that tutorial and some old forum posts.
legendary
Activity: 4592
Merit: 1851
Linux since 1997 RedHat 4
...
The problem now, though, is that the LCD display gives a formatting error - I'm assuming because of the changes in the way the software displays its mining information the 3.x.x versions of CGminer and the newer 4.x.x versions.  I'll admit I haven't yet tried using other 3.x.x versions (perhaps one of the 3.9.x's?) to see if they have Antminer U1 support and the original format for displaying mining information - I was hoping not to have to go through each of them looking and it seems that the README on ckolivas is only for the most up to date version (I couldn't find older versions of the README, if they exist, could someone point me to them?) - is there such a version of CGminer?

I do apologize if this has been covered already in this thread, but with over 700 pages of posts I felt that posting something fresh might provide a quicker solution.  If it does, and someone knows where to find it, could you point me to the correct page to look for it on?

Thanks for your time and thanks for all the work that goes into CGMiner Smiley
The data source for external programs is usually the cgminer API.
API backward compatibility is pretty much as good as it can get - so that shouldn't be a problem unless software is making bad assumptions about the API replies.
The data returned from the API is Name/Key based and there should be no issues there.

If the program getting the data source from cgminer is using screen scraping or text log processing, then yep that will fail each time we change the screen layout or the text log output format.

Since you are referring to something that is not part of cgminer, you'll need to provide more info Smiley
newbie
Activity: 8
Merit: 0
Trying to get an Adafruit "PiMiner" (http://learn.adafruit.com/piminer-raspberry-pi-bitcoin-miner/initial-setup-and-assembly) up and running using Antminer U1's with the 16x2 LCD Display.

I was able to get 3.8.4 to work and display the information on the mini LCD screen correctly, but the sticks would not mine over 500Mhz, I'm assuming because I could only get them to be recognized and mine with Icarus enabled.

When I finally figured out that CGMiner 3.8.4 didn't seem to have the ability to enable Antminer U1 support (or at least it didn't seem to recognize the --enable-ants1 command after trying to configure it) I decided to try CGMiner 4.2.1 - it worked and solve my previous issue of the U1's hashing at ~500Mhz.  They now hash at 1.6Ghz as they're supposed to.

The problem now, though, is that the LCD display gives a formatting error - I'm assuming because of the changes in the way the software displays its mining information the 3.x.x versions of CGminer and the newer 4.x.x versions.  I'll admit I haven't yet tried using other 3.x.x versions (perhaps one of the 3.9.x's?) to see if they have Antminer U1 support and the original format for displaying mining information - I was hoping not to have to go through each of them looking and it seems that the README on ckolivas is only for the most up to date version (I couldn't find older versions of the README, if they exist, could someone point me to them?) - is there such a version of CGminer?

I do apologize if this has been covered already in this thread, but with over 700 pages of posts I felt that posting something fresh might provide a quicker solution.  If it does, and someone knows where to find it, could you point me to the correct page to look for it on?

Thanks for your time and thanks for all the work that goes into CGMiner Smiley
hero member
Activity: 857
Merit: 1000
Anger is a gift.
I got 4.2.2 to compile and enabled bitmine-A1 but I just get his error when I start cgminer:
 [2014-04-02 08:16:03] Failed to init board selector                   
 [2014-04-02 08:16:03] SPI '/dev/spidev0.0': mode=1, bits=8, speed=2000000                   
 [2014-04-02 08:16:03] checking board 0...                   
 [2014-04-02 08:16:03] Failed to write to fdesc -1: Bad file descriptor

I will just stick with what I got for now.

Thanks.
legendary
Activity: 4592
Merit: 1851
Linux since 1997 RedHat 4
It uses the SPI.

This one has Bitmine-A1 chips inside. They show up as BA1 in the cgminer web interface.

It has an Rpi inside of it. The pi that came with it was DOA. So I replaced it with a spare, and now the image on the SD is corrupted so I am using a previous version. The unit will only hash at 800 GH/s now, so I am assuming it is a clock setting I need to change.

I can SSH in without an issue. I am trying to compile 4.2.2 on it, but cannot enable Bitmine-A1.

Edit: This is the Chinese miner from LKETC that I got from a group buy done with pcfli.

Oh, it's not an S2.
I thought it was.
OK, yeah there is A1 code but we've never seen any of the hardware so don't really know much about it.
hero member
Activity: 857
Merit: 1000
Anger is a gift.
It uses the SPI.

This one has Bitmine-A1 chips inside. They show up as BA1 in the cgminer web interface.

It has an Rpi inside of it. The pi that came with it was DOA. So I replaced it with a spare, and now the image on the SD is corrupted so I am using a previous version. The unit will only hash at 800 GH/s now, so I am assuming it is a clock setting I need to change.

I can SSH in without an issue. I am trying to compile 4.2.2 on it, but cannot enable Bitmine-A1.

Edit: This is the Chinese miner from LKETC that I got from a group buy done with pcfli.
legendary
Activity: 4592
Merit: 1851
Linux since 1997 RedHat 4
I just got one of the new 1 TH/s rigs from China. The unit is running cgminer 3.9 and each blade is showing up as BA1. This unit is run off of a pi. Can I compile a newer cgminer and run that instead of the software supplied with the miner?

Sorry if this is a dumb question, but had to ask.
I've no idea, I haven't seen one.
Does it use the SPI bus or is it USB?

Also - could you request the code from Bitmain?
Since you have a cgminer binary, you have the right to request the code for it and they must supply it.

... and a 3rd update, apparently it's a BBB (Beagle Bone Black) not an RPi?
Is that what you see?

... 4th update, can you login to it (with ssh or putty using the web user password) and check if the source code was left on the BBB?
Maybe they did that to solve the issue of not releasing it (suggestion I was given by a US bitmain distributor)
hero member
Activity: 857
Merit: 1000
Anger is a gift.
I just got one of the new 1 TH/s rigs from China. The unit is running cgminer 3.9 and each blade is showing up as BA1. This unit is run off of a pi. Can I compile a newer cgminer and run that instead of the software supplied with the miner?

Sorry if this is a dumb question, but had to ask.
Jump to: