KNK
|
 |
March 31, 2014, 09:23:39 AM |
|
Some drivers like to have their raw hashrate in the API as well but it's mostly used for debugging or finding when a large discrepancy occurs between that and the share based return hashrate.
Thank you for the explanation. Yes, that's exactly what i wanted to achieve - showing raw hashrate in addition to the effective hashrate. And this is how it looks  The expected hashrate fluctuates between 6.0 and 6.35 Gh only and is the theoretical max when there are no errors, so i wanted to have it in statline
|
|
|
|
crazyates
Legendary
Offline
Activity: 952
Merit: 1000
|
 |
March 31, 2014, 05:40:02 PM |
|
I followed the instructions (seems basic enough), but how can I verify that cgminer is the new version? I went to System > Software > Cgminer, and it still says 3.12.0-1. Is this normal?
|
|
|
|
|
|
os2sam
Legendary
Offline
Activity: 3586
Merit: 1099
Think for yourself
|
 |
April 01, 2014, 12:42:24 AM |
|
I'm pretty happy with my testing so far. But the memory utilization is still climbing, 408MB so far.
Found this memory leak and it's now fixed in git, but there won't be a new version out just yet as I fix other issues first. Thanks for the update. I look forward to testing the new version when it's ready. I've been testing version 4.2.2 for 2 days now and it looks like the memory utilization is stable at 16.5 MB RAM with GBT now. Also it seems stable and reliable with BE's. I would still like the ability to sign the block though. Not a fan of the cycling display, it's going to cause someone to go into an epileptic fit.  I sent a donation for solo mining support. Thanks, Sam
|
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 (OP)
Legendary
Offline
Activity: 4508
Merit: 1668
Ruu \o/
|
 |
April 01, 2014, 01:41:09 AM |
|
I've been testing version 4.2.2 for 2 days now and it looks like the memory utilization is stable at 16.5 MB RAM with GBT now. Also it seems stable and reliable with BE's. I would still like the ability to sign the block though. Not a fan of the cycling display, it's going to cause someone to go into an epileptic fit.  I sent a donation for solo mining support. Thanks Sam. The display is a sore point for everyone, and there's just too much useful info to display. I'm thinking to make it not toggle by default next time and just show the hashrate and allow people to enable it to toggle or something. Signing the block will be coming but I had to concentrate on making sure the implementation was rock solid and massively scaleable first.
|
Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel 2% Fee Solo mining at solo.ckpool.org -ck
|
|
|
os2sam
Legendary
Offline
Activity: 3586
Merit: 1099
Think for yourself
|
 |
April 01, 2014, 01:58:16 AM |
|
Not a fan of the cycling display, it's going to cause someone to go into an epileptic fit.  The display is a sore point for everyone, and there's just too much useful info to display. I'm thinking to make it not toggle by default next time and just show the hashrate and allow people to enable it to toggle or something. Signing the block will be coming but I had to concentrate on making sure the implementation was rock solid and massively scaleable first. Maybe a "T" hotkey to do a toggle? Thanks again, Sam
|
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 (OP)
Legendary
Offline
Activity: 4508
Merit: 1668
Ruu \o/
|
 |
April 01, 2014, 02:07:48 AM |
|
Not a fan of the cycling display, it's going to cause someone to go into an epileptic fit.  The display is a sore point for everyone, and there's just too much useful info to display. I'm thinking to make it not toggle by default next time and just show the hashrate and allow people to enable it to toggle or something. Signing the block will be coming but I had to concentrate on making sure the implementation was rock solid and massively scaleable first. Maybe a "T" hotkey to do a toggle? Thanks again, Sam You can already toggle it from the display menu.
|
Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel 2% Fee Solo mining at solo.ckpool.org -ck
|
|
|
os2sam
Legendary
Offline
Activity: 3586
Merit: 1099
Think for yourself
|
 |
April 01, 2014, 12:44:42 PM |
|
Not a fan of the cycling display, it's going to cause someone to go into an epileptic fit.  The display is a sore point for everyone, and there's just too much useful info to display. I'm thinking to make it not toggle by default next time and just show the hashrate and allow people to enable it to toggle or something. Signing the block will be coming but I had to concentrate on making sure the implementation was rock solid and massively scaleable first. Maybe a "T" hotkey to do a toggle? Thanks again, Sam You can already toggle it from the display menu. Toggle it or just enable/disable the switching every 5 seconds? Anyway being able to toggle it on the fly from the main menu would be more better if that is possible, hopefully without redrawing the screen and loosing the share submissions view. Just a thought no biggie either way to me. I didn't mind the wider screen and wouldn't mind it being wider yet to include all of the useful info. Sam
|
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
Activity: 4676
Merit: 1858
Linux since 1997 RedHat 4
|
 |
April 01, 2014, 10:04:04 PM |
|
... I also now noticed there is a bug in LSTime that was mentioned earlier, the time isn't displayed properly. Thanks for the update  Yeah a fix for that is looking unlikely now ... I've been looking into it in the last few hours ... They changed the code that outputs the "Last Share Time" somewhere recently between Ant S1 versions. So it makes it a bit beyond silly having the API break it's extremely reliable backward compatibility for a silly change like that ... If it was a new field, that's no issue to add to my API hack/fix, but changing an existing field from a unix time number to a h:m:s string is a problem. The new binary works great! I got it back to a normal appearance rather than just the UNIX timestamp. vi /usr/lib/lua/luci/controller/cgminer.lua Find the part where it says: "--lst_date = os.date("%c", lst)" and get rid of comment (the --). Had to do a reboot to get the change to show, buy you guys here probably know a better solution to reload luci/lua/whatever it is. I'm very new to all of this so hope it was somewhat helpful. From: if lst == "0" then lst_date = "Never" else --lst_date = os.date("%c", lst) lst_date = lst end To: if lst == "0" then lst_date = "Never" else lst_date = os.date("%c", lst) --lst_date = lst end Added a comment to my README: https://github.com/kanoi/cgminer-binaries/commit/98099e278126ba9f917f12f1e57e3d9a986917aa
|
|
|
|
daddyfatsax
|
 |
April 01, 2014, 11:23:44 PM |
|
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.
|
|
|
|
kano
Legendary
Offline
Activity: 4676
Merit: 1858
Linux since 1997 RedHat 4
|
 |
April 01, 2014, 11:44:01 PM |
|
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)
|
|
|
|
daddyfatsax
|
 |
April 01, 2014, 11:59:54 PM |
|
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.
|
|
|
|
kano
Legendary
Offline
Activity: 4676
Merit: 1858
Linux since 1997 RedHat 4
|
 |
April 02, 2014, 12:15:56 AM |
|
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.
|
|
|
|
daddyfatsax
|
 |
April 02, 2014, 12:17:40 AM |
|
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.
|
|
|
|
UselessCargo
Newbie
Offline
Activity: 8
Merit: 0
|
 |
April 02, 2014, 01:40:00 AM |
|
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 
|
|
|
|
kano
Legendary
Offline
Activity: 4676
Merit: 1858
Linux since 1997 RedHat 4
|
 |
April 02, 2014, 02:27:16 AM |
|
... 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  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 
|
|
|
|
UselessCargo
Newbie
Offline
Activity: 8
Merit: 0
|
 |
April 02, 2014, 03:16:33 AM |
|
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  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.
|
|
|
|
-ck (OP)
Legendary
Offline
Activity: 4508
Merit: 1668
Ruu \o/
|
 |
April 02, 2014, 03:21:07 AM |
|
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.
|
Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel 2% Fee Solo mining at solo.ckpool.org -ck
|
|
|
UselessCargo
Newbie
Offline
Activity: 8
Merit: 0
|
 |
April 02, 2014, 04:11:42 AM |
|
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.
|
|
|
|
|