Bitcoin Forum

Bitcoin => Mining software (miners) => Topic started by: nicehash on November 07, 2014, 01:33:31 PM



Title: cgminer extranonce.subscribe extension (binaries available for download)
Post by: nicehash on November 07, 2014, 01:33:31 PM
Hi,

*edit: cgminer extranonce.subscribe extension is now confirmed to be working, therefore this OP was modified with links to actual binaries (universal windows for some USB miners and binaries for AntMiner S1, S3 and Spondoolies SP20):

*edit 2015-02-25: cgminer extranonce.subscribe extension is now included in AntMiner S5 and Spondoolies SP20 and SP3x firmware, so all you have to do is update your firmware and add #xnsub at the tail of stratum connection string

https://www.nicehash.com/index.jsp?p=software#cgminer

Source is available here: https://github.com/nicehash/cgminer-ckolivas (https://github.com/nicehash/cgminer-ckolivas), so maybe someone could make binaries for some other ASIC devices as well.

When you test it, make sure you add #xnsub at the end of the stratum connection string to enable extranonce subscription:

cgminer -o stratum+tcp://stratum.nicehash.com:3334#xnsub -u enterYourBTCaddress -p x

When your miner successfully connects, take a look at the miner stats page:

https://www.nicehash.com/index.jsp?p=miners&a=1&addr=enterYourBTCaddress

and make sure you see extranonce subscription confirmation:

https://www.nicehash.com/imgs/extranonce-subscribe-enabled.png

Feedback appreciated. Please report if you have any success and if all is fine we will propose to push this feature in other cgminer forks and from there it will hopefully made its way into various ASICs firmwares...

Thanks!


Title: Re: cgminer extranonce.subscribe extension - beta testers needed
Post by: dddbtc on November 07, 2014, 04:51:59 PM
I'll attempt to compile for bitmain/antminer and will let you know how it works out.  Was up for a solid couple hours researching this very topic last night.  Good to see everyone at nicehash is thinking ahead.


Title: Re: cgminer extranonce.subscribe extension - beta testers needed
Post by: CHAOSiTEC on November 10, 2014, 12:58:01 PM
I'll attempt to compile for bitmain/antminer and will let you know how it works out.  Was up for a solid couple hours researching this very topic last night.  Good to see everyone at nicehash is thinking ahead.

i have a patched version of bitmains sources at https://github.com/FireWalkerX/cgminer-bmsc.git

just need someone to compile it, i have tested and confirmed it works on nicehash (but not tested with antminer) edit: (S[1-4] needs testing)


Title: Re: cgminer extranonce.subscribe extension - beta testers needed
Post by: nicehash on November 12, 2014, 09:55:34 PM
Anybody with knowledge how to compile cgminer binary for AntMiner S3+? There are many AntMiner S3 users and it would be great to get cgminer AntMiner S3 bianry with extranonce.subscribe extension...


Title: Re: cgminer extranonce.subscribe extension - beta testers needed
Post by: 1Neptune on November 14, 2014, 07:52:55 AM
Anybody with knowledge how to compile cgminer binary for AntMiner S3+? There are many AntMiner S3 users and it would be great to get cgminer AntMiner S3 bianry with extranonce.subscribe extension...

One of the moderators of this forum (ckolivas) is the offical cgminer developer and has published revisions for the S3, S4, etc. and bitmain adopted his modifications, if I remember my reading correctly.


Title: Re: cgminer extranonce.subscribe extension - beta testers needed
Post by: Deagle21 on November 14, 2014, 09:53:39 PM
I have ten S3+ on westhash and have used 10 instances of the stratum proxy with extranonce.subscribe extension for each of the 10 miners.  I don't really see the difference in payout so I went back to not using the stratum proxy because it disconnects my miners sometimes from the pool out of the blue.


Title: Re: cgminer extranonce.subscribe extension - beta testers needed
Post by: 7queue on November 15, 2014, 11:44:46 AM
https://westhash.com/?p=miners&a=1&addr=1B4RkonuDVkGzKSTe4MCfZfSHseMGyump2

Cloned your git repository and folded in an older driver, ants1-4.3.2a-85fcf0c, version from kano's S1 git repository, cross compiled and running on two S1's now.

My modifications are here: https://github.com/7queue/cgminer-ckolivas

Here are screen shots of cgminer running on the S1's

http://i1371.photobucket.com/albums/ag314/7queue/bitmain/cs1ant97_zps7e5ca088.jpg

http://i1371.photobucket.com/albums/ag314/7queue/bitmain/cs1ant96_zps34f1294d.jpg

8 )


Title: Re: cgminer extranonce.subscribe extension - beta testers needed
Post by: nicehash on November 15, 2014, 05:40:14 PM
https://westhash.com/?p=miners&a=1&addr=1B4RkonuDVkGzKSTe4MCfZfSHseMGyump2

This is great to hear! See, your connection time "Time (minutes)" is now already more then 7 hours, this means that your miners have been successfully connected to WestHash without interruptions and when order were changing, extranonce.subscribe kept you connected ... good job! Could you share the binary?


Title: Re: cgminer extranonce.subscribe extension - beta testers needed
Post by: 7queue on November 15, 2014, 07:40:46 PM
https://westhash.com/?p=miners&a=1&addr=1B4RkonuDVkGzKSTe4MCfZfSHseMGyump2

This is great to hear! See, your connection time "Time (minutes)" is now already more then 7 hours, this means that your miners have been successfully connected to WestHash without interruptions and when order were changing, extranonce.subscribe kept you connected ... good job! Could you share the binary?



https://github.com/7queue/cgminer-ckolivas/tree/master/bin (https://github.com/7queue/cgminer-ckolivas/tree/master/bin)

md5  23657cc3ebf0f95b176d7b47e121aee1  cgminer.tgz

8 )


Title: Re: cgminer extranonce.subscribe extension - beta testers needed
Post by: 7queue on November 17, 2014, 12:09:45 AM
https://westhash.com/?p=miners&a=1&addr=1B4RkonuDVkGzKSTe4MCfZfSHseMGyump2

This is great to hear! See, your connection time "Time (minutes)" is now already more then 7 hours, this means that your miners have been successfully connected to WestHash without interruptions and when order were changing, extranonce.subscribe kept you connected ... good job! Could you share the binary?



https://github.com/7queue/cgminer-ckolivas/tree/master/bin (https://github.com/7queue/cgminer-ckolivas/tree/master/bin)

md5  23657cc3ebf0f95b176d7b47e121aee1  cgminer.tgz

8 )



Replaced api version 3.5 with api version 3.3 so the S1 Miner Status page works correctly now.

md5 08d603af7774015f8a78b35e646663c3  cgminer.tgz


Title: Re: cgminer extranonce.subscribe extension - beta testers needed
Post by: nicehash on November 17, 2014, 02:08:26 PM
Thanks to ckolivas who provided binaries for AntMiner S3 we have also tested extranonce.subscribe extension and it works as expected: https://www.nicehash.com/index.jsp?p=miners&a=1&d=1&addr=15r3JQvW73FbphxjPN2oLGeQQyEXhhZLdr

More information with AntMiner cgminer binaries downloads can now be found here: https://www.nicehash.com/software/#cgminer


Title: Re: cgminer extranonce.subscribe extension - beta testers needed
Post by: 7queue on November 17, 2014, 05:17:39 PM
https://westhash.com/?p=miners&a=1&addr=1B4RkonuDVkGzKSTe4MCfZfSHseMGyump2

This is great to hear! See, your connection time "Time (minutes)" is now already more then 7 hours, this means that your miners have been successfully connected to WestHash without interruptions and when order were changing, extranonce.subscribe kept you connected ... good job! Could you share the binary?



https://github.com/7queue/cgminer-ckolivas/tree/master/bin (https://github.com/7queue/cgminer-ckolivas/tree/master/bin)

md5  23657cc3ebf0f95b176d7b47e121aee1  cgminer.tgz

8 )



Replaced api version 3.5 with api version 3.3 so the S1 Miner Status page works correctly now.

md5 08d603af7774015f8a78b35e646663c3  cgminer.tgz


Changed dependancy for libpolarssl.so.7 to libpolarssl.so

md5 983c067ce5a14f83669a9b4aaf6aadd1  cgminer.tgz



Check to see if this library is installed on your S1,

Code:
# opkg list-installed | grep libpolarssl
libpolarssl - 1.3.8-2
#


If it isn't installed,

Code:
# opkg update
# opkg install libpolarssl
Installing libpolarssl (1.3.8-2) to root...
Downloading http://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/generic/packages/base/libpolarssl_1.3.8-2_ar71xx.ipk.
Configuring libpolarssl.
#


If it is installed make sure it is up to date,

Code:
# opkg update
# opkg upgrade libpolarssl
#



8 )

Edit: Petete pointed out that libncurses is needed as well, Thanks.



Title: Re: cgminer extranonce.subscribe extension - beta testers needed
Post by: CHAOSiTEC on November 18, 2014, 03:41:50 AM
Problem:


if you set a price point, fx p=0.0135 then if it dips below said pricepoint, no work is issued, but connection is not terminated either so instead of my S3s switching to 3rd pool option, it will just hang on to the connection, waiting for work

(my rigs started beeping and woke me up)


Title: Re: cgminer extranonce.subscribe extension - beta testers needed
Post by: nicehash on November 18, 2014, 07:13:30 AM
Problem:

if you set a price point, fx p=0.0135 then if it dips below said pricepoint, no work is issued, but connection is not terminated either so instead of my S3s switching to 3rd pool option, it will just hang on to the connection, waiting for work

(my rigs started beeping and woke me up)

Are you using default AntMiner S3 firmware (with cgminer 3.12.0) or updated firmware and patched cgminer (v 4.7.1)? cgminer version 3.12.0 (in the default S3 firmware) still has the so-called idle bug, which was fixed in version 4.3.1 (https://github.com/ckolivas/cgminer/blob/af7401e9599f01ff000291ef2280ba05402bdf50/NEWS).


Title: Re: cgminer extranonce.subscribe extension - beta testers needed
Post by: CHAOSiTEC on November 18, 2014, 08:08:51 AM
Problem:

if you set a price point, fx p=0.0135 then if it dips below said pricepoint, no work is issued, but connection is not terminated either so instead of my S3s switching to 3rd pool option, it will just hang on to the connection, waiting for work

(my rigs started beeping and woke me up)

Are you using default AntMiner S3 firmware (with cgminer 3.12.0) or updated firmware and patched cgminer (v 4.7.1)? cgminer version 3.12.0 (in the default S3 firmware) still has the so-called idle bug, which was fixed in version 4.3.1 (https://github.com/ckolivas/cgminer/blob/af7401e9599f01ff000291ef2280ba05402bdf50/NEWS).
im using this version: with #xnsub support (and yes added it to the url of nicehash, without, it switches to the next pool)

Thanks to ckolivas who provided binaries for AntMiner S3 we have also tested extranonce.subscribe extension and it works as expected: https://www.nicehash.com/index.jsp?p=miners&a=1&d=1&addr=15r3JQvW73FbphxjPN2oLGeQQyEXhhZLdr

More information with AntMiner cgminer binaries downloads can now be found here: https://www.nicehash.com/software/#cgminer

my pool setup is betarigs, nicehash, 3rd pool it rents out fine but when its done and pricepoint is below predefined value, its supposed to go to 3rd pool, but instead hang onto nicehash, with no work issued, if i remove #xnsub it will successfully go from 2nd pool to 3rd pool, so either its your stratum not terminating, or its something in xnsub support in cgminer that doesnt terminate and marks the pool as dead


Title: Re: cgminer extranonce.subscribe extension - beta testers needed
Post by: Deagle21 on November 18, 2014, 06:02:57 PM
Problem:

if you set a price point, fx p=0.0135 then if it dips below said pricepoint, no work is issued, but connection is not terminated either so instead of my S3s switching to 3rd pool option, it will just hang on to the connection, waiting for work

(my rigs started beeping and woke me up)

Are you using default AntMiner S3 firmware (with cgminer 3.12.0) or updated firmware and patched cgminer (v 4.7.1)? cgminer version 3.12.0 (in the default S3 firmware) still has the so-called idle bug, which was fixed in version 4.3.1 (https://github.com/ckolivas/cgminer/blob/af7401e9599f01ff000291ef2280ba05402bdf50/NEWS).

Tried to follow your instructions but some of us are not linx savvy and don't know how to navigate around putty.  Can you provide step by step instruction in more depth for us newbs?  I was able to ssh into antminer 3 with putty and stop cgminer but then got stumped an how to copy original and follow the rest of the instructions.  I've got the binary sitting on my windows desktop.


Title: Re: cgminer extranonce.subscribe extension - beta testers needed
Post by: nicehash on November 18, 2014, 08:13:48 PM
Tried to follow your instructions but some of us are not linx savvy and don't know how to navigate around putty.  Can you provide step by step instruction in more depth for us newbs?  I was able to ssh into antminer 3 with putty and stop cgminer but then got stumped an how to copy original and follow the rest of the instructions.  I've got the binary sitting on my windows desktop.

Use WinSCP http://winscp.net/eng/download.php to upload new binary to the AntMiner (SFTP connection, IP of your miner).


Title: Re: cgminer extranonce.subscribe extension - beta testers needed
Post by: CHAOSiTEC on November 18, 2014, 09:32:38 PM
Problem:

if you set a price point, fx p=0.0135 then if it dips below said pricepoint, no work is issued, but connection is not terminated either so instead of my S3s switching to 3rd pool option, it will just hang on to the connection, waiting for work

(my rigs started beeping and woke me up)

Are you using default AntMiner S3 firmware (with cgminer 3.12.0) or updated firmware and patched cgminer (v 4.7.1)? cgminer version 3.12.0 (in the default S3 firmware) still has the so-called idle bug, which was fixed in version 4.3.1 (https://github.com/ckolivas/cgminer/blob/af7401e9599f01ff000291ef2280ba05402bdf50/NEWS).
im using this version: with #xnsub support (and yes added it to the url of nicehash, without, it switches to the next pool)

Thanks to ckolivas who provided binaries for AntMiner S3 we have also tested extranonce.subscribe extension and it works as expected: https://www.nicehash.com/index.jsp?p=miners&a=1&d=1&addr=15r3JQvW73FbphxjPN2oLGeQQyEXhhZLdr

More information with AntMiner cgminer binaries downloads can now be found here: https://www.nicehash.com/software/#cgminer

my pool setup is betarigs, nicehash, 3rd pool it rents out fine but when its done and pricepoint is below predefined value, its supposed to go to 3rd pool, but instead hang onto nicehash, with no work issued, if i remove #xnsub it will successfully go from 2nd pool to 3rd pool, so either its your stratum not terminating, or its something in xnsub support in cgminer that doesnt terminate and marks the pool as dead

nicehash, have you looked into the above? i can replicate it so it must be either code in cgminer, that doesnt cancel the connection, or the proxy not cancelling, when #xnsub is activated


Title: Re: cgminer extranonce.subscribe extension - beta testers needed
Post by: Deagle21 on November 18, 2014, 09:53:01 PM
Tried to follow your instructions but some of us are not linx savvy and don't know how to navigate around putty.  Can you provide step by step instruction in more depth for us newbs?  I was able to ssh into antminer 3 with putty and stop cgminer but then got stumped an how to copy original and follow the rest of the instructions.  I've got the binary sitting on my windows desktop.

Use WinSCP http://winscp.net/eng/download.php to upload new binary to the AntMiner (SFTP connection, IP of your miner).

Ok used WinSCP and uploaded cgminer file to /usr/bin/ folder and restarted unit.  It would not start hashing unless I deleted the new cgminer binary and restored the original file.  My S3 Web UI status screen remains blank even after a new reboot with the new cgminer binary installed.


Title: Re: cgminer extranonce.subscribe extension - beta testers needed
Post by: nicehash on November 18, 2014, 09:54:08 PM
nicehash, have you looked into the above? i can replicate it so it must be either code in cgminer, that doesnt cancel the connection, or the proxy not cancelling, when #xnsub is activated

Could you provide log output?

SSH to your miner and add logging:

vim /etc/rc.d/S99cgminer

add this " -D 2>&1 |tee /tmp/cgminerlog.txt" to the end of the line which starts with "PARAMS="$AOPTIONS $POOL1 $POO ...

so this line should look like this:

PARAMS="$AOPTIONS $POOL1 $POOL2 $POOL3 $_pb $_ow $_bec --api-listen --api-network --bitmain-checkn2diff --bitmain-hwerror --version-file /usr/bin/compile_time --queue 4096 -D 2>&1 |tee /tmp/cgminerlog.txt"

When you'll catch the idle bug, send us the logs please. Thanks!


Title: Re: cgminer extranonce.subscribe extension - beta testers needed
Post by: nicehash on November 18, 2014, 09:56:14 PM
Ok used WinSCP and uploaded cgminer file to /usr/bin/ folder and restarted unit.  It would not start hashing unless I deleted the new cgminer binary and restored the original file.  My S3 Web UI status screen remains blank even after a new reboot with the new cgminer binary installed.

Hmm, README file is probably missing another command, you have to make cgminer binary executable (after you upload new binary) by issuing this command

Code:
chmod +x /usr/bin/cgminer

Verify that the new cgminer works by:

Code:
/usr/bin/cgminer -V

It should return cgminer 4.7.1, if this is OK, new binary should work.


Title: Re: cgminer extranonce.subscribe extension - beta testers needed
Post by: CHAOSiTEC on November 18, 2014, 11:34:21 PM
nicehash, have you looked into the above? i can replicate it so it must be either code in cgminer, that doesnt cancel the connection, or the proxy not cancelling, when #xnsub is activated

Could you provide log output?

SSH to your miner and add logging:

vim /etc/rc.d/S99cgminer

add this " -D 2>&1 |tee /tmp/cgminerlog.txt" to the end of the line which starts with "PARAMS="$AOPTIONS $POOL1 $POO ...

so this line should look like this:

PARAMS="$AOPTIONS $POOL1 $POOL2 $POOL3 $_pb $_ow $_bec --api-listen --api-network --bitmain-checkn2diff --bitmain-hwerror --version-file /usr/bin/compile_time --queue 4096 -D 2>&1 |tee /tmp/cgminerlog.txt"

When you'll catch the idle bug, send us the logs please. Thanks!

right now my rig is rented out, but i could try it out on another rig i have...

pmed link to log file


Title: Re: cgminer extranonce.subscribe extension - beta testers needed
Post by: Deagle21 on November 19, 2014, 04:14:10 AM
Ok used WinSCP and uploaded cgminer file to /usr/bin/ folder and restarted unit.  It would not start hashing unless I deleted the new cgminer binary and restored the original file.  My S3 Web UI status screen remains blank even after a new reboot with the new cgminer binary installed.

Hmm, README file is probably missing another command, you have to make cgminer binary executable (after you upload new binary) by issuing this command

Code:
chmod +x /usr/bin/cgminer

Verify that the new cgminer works by:

Code:
/usr/bin/cgminer -V

It should return cgminer 4.7.1, if this is OK, new binary should work.

Ok got my S3's working.  The new binary rights in the file properties were different than the original.  I had to change the new binary rights to match the original one by checking all the x's in the properties.  I did not need to use the chmod +x /usr/bin/cgminer command.


Title: Re: cgminer extranonce.subscribe extension - beta testers needed
Post by: slimz on November 20, 2014, 03:31:06 PM
OK so a few things i have noticed.
the drop in cgminer replacement works for antminers but the antminer section of the status screen id basically blank.

I know this is because the antminer driver is not compiled into to the cgminer binary

there is a patched version of the antminer software here
https://github.com/FireWalkerX/cgminer-bmsc

can someone please cross compile it for the beaglebone board and post a binary.

I do not have the experience required to do that

----------------------------------------------------------
UPDATE
If you use the newest BitMain firmware that contains cgminer 4.6 and then drop in the 4.7 replacement, all antminer status reports sections work properly.



Title: Re: cgminer extranonce.subscribe extension - beta testers needed
Post by: idonothave on November 22, 2014, 11:07:14 AM
Problem:


if you set a price point, fx p=0.0135 then if it dips below said pricepoint, no work is issued, but connection is not terminated either so instead of my S3s switching to 3rd pool option, it will just hang on to the connection, waiting for work

(my rigs started beeping and woke me up)

The same problem noticed here. It does not seem to skip to another pool in the list after price goes below p=xxx level. Happened with s3 and s1 units.


Title: Re: cgminer extranonce.subscribe extension (with some cgminer 4.7 binaries)
Post by: nicehash on November 22, 2014, 03:00:39 PM
Problem:

if you set a price point, fx p=0.0135 then if it dips below said pricepoint, no work is issued, but connection is not terminated either so instead of my S3s switching to 3rd pool option, it will just hang on to the connection, waiting for work

(my rigs started beeping and woke me up)

The same problem noticed here. It does not seem to skip to another pool in the list after price goes below p=xxx level. Happened with s3 and s1 units.

We have resolved the issue with pool-switching bug when xnsub is enabled, you can download new binaries for AntMiner S3 and S4 here: https://www.nicehash.com/index.jsp?p=software#cgminer

7queue, here is patched commit: https://github.com/nicehash/cgminer-ckolivas/commit/4e9c7ce68ed91ec9189d83c35b2237aca65f2b7f please revert the previous one in your repo and please compile fresh binaries. Thanks!


Title: Re: cgminer extranonce.subscribe extension (with some cgminer 4.7 binaries)
Post by: 7queue on November 22, 2014, 07:59:16 PM
Problem:

if you set a price point, fx p=0.0135 then if it dips below said pricepoint, no work is issued, but connection is not terminated either so instead of my S3s switching to 3rd pool option, it will just hang on to the connection, waiting for work

(my rigs started beeping and woke me up)

The same problem noticed here. It does not seem to skip to another pool in the list after price goes below p=xxx level. Happened with s3 and s1 units.

We have resolved the issue with pool-switching bug when xnsub is enabled, you can download new binaries for AntMiner S3 and S4 here: https://www.nicehash.com/index.jsp?p=software#cgminer

7queue, here is patched commit: https://github.com/nicehash/cgminer-ckolivas/commit/4e9c7ce68ed91ec9189d83c35b2237aca65f2b7f please revert the previous one in your repo and please compile fresh binaries. Thanks!


Done!


Title: Re: cgminer extranonce.subscribe extension - beta testers needed
Post by: felixthecat on November 23, 2014, 04:45:07 PM
Thanks to 7 queue for the most awsome S1 binary in the world. Full production on 80 S1's on P2Pool with BETTER than expected results of only 2.1% DOA and 118.3% Efficiency and finding shares at an incredible pace.

Many thanks for Nicehash for finding someone as talented as 7 queue for the binary.... I have tested all 80 S1's on Westhash over nite and the overall DOA used to be almost 1 TH/s rejected and it's cut in just about 3/4 of that.

Now.... How about some love for the S2??? Seems that's the only issue I am having with Nicehash now, with the S2's running the up to date firmware and --queue 0, which works perfectly on P2Pool now, but consistently refreshes and resets beteen 25, 30, 24, 45 seconds. 


Title: Re: cgminer extranonce.subscribe extension - beta testers needed
Post by: OVRGRO on November 24, 2014, 08:24:30 AM
Problem:

if you set a price point, fx p=0.0135 then if it dips below said pricepoint, no work is issued, but connection is not terminated either so instead of my S3s switching to 3rd pool option, it will just hang on to the connection, waiting for work

(my rigs started beeping and woke me up)

Are you using default AntMiner S3 firmware (with cgminer 3.12.0) or updated firmware and patched cgminer (v 4.7.1)? cgminer version 3.12.0 (in the default S3 firmware) still has the so-called idle bug, which was fixed in version 4.3.1 (https://github.com/ckolivas/cgminer/blob/af7401e9599f01ff000291ef2280ba05402bdf50/NEWS).

Tried to follow your instructions but some of us are not linx savvy and don't know how to navigate around putty.  Can you provide step by step instruction in more depth for us newbs?  I was able to ssh into antminer 3 with putty and stop cgminer but then got stumped an how to copy original and follow the rest of the instructions.  I've got the binary sitting on my windows desktop.

i about the same point, but with ubuntu. i've followed every step but it keeps saying it can't find my cgminer file when i try to scp the file. i'm using the exact location of the downloaded file, i even copied it and moved it to a different location with the same failure. basically i keep on bricking my machine and having to reflash factory bin


Title: Re: cgminer extranonce.subscribe extension - beta testers needed
Post by: OVRGRO on November 24, 2014, 08:43:01 AM
scratch that... after several failures through putty it dawned on me to scp the file from my regular terminal... success :)


Title: Re: cgminer extranonce.subscribe extension - beta testers needed
Post by: idonothave on November 24, 2014, 10:43:17 AM
Problem:

if you set a price point, fx p=0.0135 then if it dips below said pricepoint, no work is issued, but connection is not terminated either so instead of my S3s switching to 3rd pool option, it will just hang on to the connection, waiting for work

(my rigs started beeping and woke me up)

Are you using default AntMiner S3 firmware (with cgminer 3.12.0) or updated firmware and patched cgminer (v 4.7.1)? cgminer version 3.12.0 (in the default S3 firmware) still has the so-called idle bug, which was fixed in version 4.3.1 (https://github.com/ckolivas/cgminer/blob/af7401e9599f01ff000291ef2280ba05402bdf50/NEWS).

Tried to follow your instructions but some of us are not linx savvy and don't know how to navigate around putty.  Can you provide step by step instruction in more depth for us newbs?  I was able to ssh into antminer 3 with putty and stop cgminer but then got stumped an how to copy original and follow the rest of the instructions.  I've got the binary sitting on my windows desktop.

i about the same point, but with ubuntu. i've followed every step but it keeps saying it can't find my cgminer file when i try to scp the file. i'm using the exact location of the downloaded file, i even copied it and moved it to a different location with the same failure. basically i keep on bricking my machine and having to reflash factory bin


first step from original PC:
ssh root@x.x.x.x (x.x.x.x is unit IP)

second step from original PC:
scp cgminer root@x.x.x.x:/usr/bin/cgminer-new

third step from unit:
cd /usr/bin
chmod +x cgminer-new
cp cgminer cgminer-orig
cp cgminer-new cgminer
/etc/rc.d/S99cgminer restart (or reboot unit manualy)


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: OVRGRO on November 25, 2014, 02:00:43 AM

first step from original PC:
ssh root@x.x.x.x (x.x.x.x is unit IP)

second step from original PC:
scp cgminer root@x.x.x.x:/usr/bin/cgminer-new

third step from unit:
cd /usr/bin
chmod +x cgminer-new
cp cgminer cgminer-orig
cp cgminer-new cgminer
/etc/rc.d/S99cgminer restart (or reboot unit manualy)


where we you yesterday? lol, if you saw my post above i finally figurd it out. i hope this helps some other person who isn't linux savvy like me. moving the files from the host computer and not while in the antminer unit worked wonders, who'd a thunk it.

As to the software itself, seems to be working great. 0 connection drops except my  twice a day restart, in case it goes down while i'm out. All S3's are at 635 minutes now, i'm guessing they'll see 719 before it's done. thank you nicehash 7queue slimz


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: idonothave on November 29, 2014, 05:24:02 PM
Any update to S4 binaries?


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: agent932 on November 30, 2014, 12:15:36 AM
Seen any binaries for the C1?


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: CHAOSiTEC on November 30, 2014, 05:32:00 AM
Seen any binaries for the C1?

test it with the s3 version, there shouldnt be any difference with them.. (remember to keep a copy of the original version)


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: emdje on November 30, 2014, 06:48:02 PM
Currently testing this for innosilicon's A2 miners: https://nicehash.com/?p=miners&a=0&d=1&addr=1FiHCFcP4ovbV89nGhYEMWXSZsWnGUASSe
Image for A2 will be posted here when testing is complete: https://bitcointalk.org/index.php?topic=672969.new#new


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: idonothave on December 01, 2014, 12:10:10 PM
Today tested again AntMinerS4-cgminer.zip, unpacked, upload to the unit but not working:

root@antMiner:/usr/bin# ./cgminer-nicehash --help
./cgminer-nicehash: line 1: syntax error: unexpected "("



Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: emdje on December 01, 2014, 04:31:06 PM
Extranonce submission for Innosilicon A2 scrypt miners:

Link to image with CGminer 3.9.0 and Extranonce submission: https://mega.co.nz/#!XQ02naSC!oSENaKhSdJiIkzad9kdH3I7eMyqNfbUzVSnyxkrsPgw (https://mega.co.nz/#!XQ02naSC!oSENaKhSdJiIkzad9kdH3I7eMyqNfbUzVSnyxkrsPgw)

If you want Extranonce for Nicehash for example the pool settings should be:
cgminer -o stratum+tcp://stratum.nicehash.com:3334#xnsub -u enterYourBTCaddress -p x

NOTE: did not work for me when set in miningrigrentals, only directly on the miner trough the web-interface


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: nssminer on December 04, 2014, 02:11:34 AM
Works nice! Thanks for the efforts! ***EDIT:Antminer S3's, for those wondering***



Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: idonothave on December 04, 2014, 09:06:55 PM
Binaries for antminer S4 from nicehash.com site does not work. It is compiled for another type of machine.
Another thing which does not work with antminer S4 is difficulty setting with password parameter d=2048. Site stats shows 2048 but cgminer shows 1k or 1024. And from that reason it is not hashing with full power.
If You solve it I will be glad to try it again.


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: Cyper_BLC on December 04, 2014, 09:52:15 PM
hi nicehash, i am hashing 1Th on your pool but you must to know;
S4 and C1 uses ram file system (initramfs) from SD card, So our any changes will not stay forever, it will work until reboot.
if you want a solid solution, you can teach initramfs modification to us simply.
Best Regards.


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: idonothave on December 04, 2014, 10:25:56 PM
hi nicehash, i am hashing 1Th on your pool but you must to know;
S4 and C1 uses ram file system (initramfs) from SD card, So our any changes will not stay forever, it will work until reboot.
if you want a solid solution, you can teach initramfs modification to us simply.
Best Regards.

It is not problem to log in S4 via ssh and upload binary. Problem is that binary is not compiled for S4.


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: vegasguy on December 07, 2014, 07:24:33 AM
Ok for us noobs that have no idea how to use linux or putty, Ive got a really dumb question. How come you (the devs) dont make it so that we can log in to our antminers and use the "upgrade" option, and reflash the modified binary file? This to me would be by far the easiest solution. Does this not upgrade cgminer? Is there something I dont know?


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: nicehash on December 07, 2014, 08:17:47 AM
Ok for us noobs that have no idea how to use linux or putty, Ive got a really dumb question. How come you (the devs) dont make it so that we can log in to our antminers and use the "upgrade" option, and reflash the modified binary file? This to me would be by far the easiest solution. Does this not upgrade cgminer? Is there something I dont know?

We are waiting for Bitmaintech to incorporate this patch into the firmware, but is not released yet, and currently we don't have release date for the new Antminers firmware. Until then, the only way is to manually upload cgminer binary.


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: vegasguy on December 07, 2014, 08:21:45 AM
Im sorry Im not a software dev, but is there anyway to take their existing firmware and modify it? In other words put the image in their format that their upgrade tool will recognize. They also have a restore command, is there anyway we could use that?


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: raskul on December 10, 2014, 07:51:24 AM
i have no clue how to apply this
i have;

2 x S3+
3 x SP10
1 x SP20
1 x SP35

any help would be greatly appreciated.


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: xZork on December 10, 2014, 09:24:04 PM
Just got it working on 2 S3+ units. I had to use PuTTY and WinSCP together because I am a noob... who cares it worked and now going to try it on an S1


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: xZork on December 10, 2014, 09:41:41 PM
Well crap... it says I have Extranonce subscription but my hashrate drops to 40-50 ghs....  I messed something up.


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: xZork on December 10, 2014, 10:08:13 PM
When I mine on a different pool my hashrate is fine, but when I use westhash it drops. Is something wrong with the pool?


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: Antuam on December 11, 2014, 05:00:08 PM
Hello.

I am testing it in antMiner S3 Bath 8.
I Update the last firmware antMiner_S320141126.bin, update the cgminer 4.7.0 and add #xnsub in the pool.
But in 20min, the S3 stop mining and reboot cgminer all the time  ???. I load default config, but the problem continue. Did you past this has anyone?

I was reinstall the firmware antMiner_S320141024.bin and now it is worked again. I was installed the cgminer 4.7.0. and add #xnsub in the pool and work OK.

I search a new versión of cgminer 4.7.1 or 4.8, but I don't found any new version for S3. If is posible anyone compile it, please?.

If is possible do it in antMiner C1?

Best regards.
Antuam


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: nicehash on December 14, 2014, 09:52:31 PM
We have prepared pre-compiled binaries for Spondoolies SP20 with cgminer 4.8 and extranonoce.subscribe patch (instructions included in README file):
Spondoolies-SP20-cgminer-4.8.0.zip (MD5 checksum: 727bbea1dbee633a7f36825a06596c3a) (https://www.nicehash.com/download/Spondoolies-SP20-cgminer-4.8.0.zip)


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: tmpwhore on December 15, 2014, 01:10:08 AM
For S3+ users, you will have to change permissions on the new cgminer file. Easiest way:

chmod 777 cgminer

in the /usr/bin directory. Then it works like a charm.

Also make sure when connecting with winscp that you pull down the protocol option to "SCP" the default is SFTP. You won't connect.


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: tmpwhore on December 15, 2014, 02:46:28 AM
Ok big problem. After a while the hashrate goes down to like 40Gh/s instead of the usual 450Gh/s. I guess it's still fucked like the extronance proxy. I would avoid this unless there is a fix or I can do some more testing.

I repeat for the S3+ Antminer DO NOT APPLY THIS FIX it will fuck you up for now. Hopefully you've backed up the old cgminer. I've put one miner on this fix to see if I can get it to work. I'm going to see how long, if ever, it will take to recover. So don't apply this "fix" until I've tested it after at least 24 hours. It could be that when changing coins it's gradually reducing the hash rate then gradually ramping it up. Whether this is worth it or not I don't know but I'll be watching.

If you want to reconnect without using extronance just kill the #xnsub suffix on the address. After it dies I'll try and connect without the extronance and see if it's actually the new cgminer causing the problem.


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: tmpwhore on December 15, 2014, 03:31:43 AM
Well crap... it says I have Extranonce subscription but my hashrate drops to 40-50 ghs....  I messed something up.

Yep this is a common problem. I'm doing tests now but so far no go. Read my posts. Trying to see if it's the newest flash or the cgminer as even if I turn extronance off it still does the hashrate nosedive of death with no recovery after 20+ mins on the new cgminer from nicehash.


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: tmpwhore on December 15, 2014, 04:41:32 AM
More tests to go but it looks like the culprit is the latest flash of the S3+ miner. DO NOT USE THE LATEST FLASH FROM BITMAIN. It causes the hashrate nosedive of death(at least on nicehash). Testing with the version below the top:


antMiner_S320141024.bin

and the new CGminer with extronance ON...will advise, so far so good.


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: tmpwhore on December 15, 2014, 10:30:07 AM
Cinfirmed bad or incompatible build. Nicehash I would post something about this on the extronance bug quash cgminer page...

Also just to let you know nicehash your S3+ extronance bug quash works beautifully on the S3+ as long as it's build

antMiner_S320141024.bin

Which is one before the latest. If people have the latest build for the Antminer you get the "hashrate nosedive of death"(confirmed on multiple miners) whether they use the new cgminer build or not. I'm going to put an email today for bitmain with some screenies and an explanation. I would advise people on your site of the new build problem because if the S3+ people flash with the latest bitmain build it basically breaks their Miner to use on your pool.


antMiner_S320141024.bin  <--------Good build

antMiner_S320141126.bin  <--------Bad build(latest)


I'll do my part and email Bitmain with screenshots and an explanation of the problem.


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: geoffrey on December 15, 2014, 12:29:39 PM
someone has a working cgminer with extranonce subscription for the antminer S4 ?
The one on the nicehash site doesn't seem to work....


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: MissouriMiner on December 15, 2014, 07:49:15 PM
someone has a working cgminer with extranonce subscription for the antminer S4 ?
The one on the nicehash site doesn't seem to work....

+1

However, I am getting over 1900 GH/s accepted using default code.  I set the following in /etc/init.d/cgminer.sh based on the site recommendation.  Edit the line with PARAM= and add "--queue 0 --scan-time 1 --expiry 1".  This is not persistent past a reboot, so have to edit again if reboot occurs.


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: eljotik on December 15, 2014, 09:08:24 PM
hello,

I have completely newbee question.

When I try upload cgminer via putty i receive message: No such file or directory

In guide I found
Code:
scp [path where you download and extracted patched cgminer]/cgminer root@[IP of your miner]:/usr/bin/cgminer

I put
Code:
scp [C:/Users/my_comp_name/Downloads/AntMinerS3-cgminer/cgminer]/cgminer root@[Ip_to_antminer3]:/usr/bin/cgminer

In advence ty for any help

eljotik


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: Cyper_BLC on December 15, 2014, 09:15:13 PM
my s4 s working latest firmware 16102014, i copied nice hash cgminer and added #xnsub string but S4 dont start hashing. allways 0Gh.
is this --queue 8192 problem ?


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: MissouriMiner on December 15, 2014, 09:17:47 PM
my s4 s working latest firmware 16102014, i copied nice hash cgminer and added #xnsub string but S4 dont start hashing. allways 0Gh.
is this --queue 8192 problem ?

The S4 binary on Nicehash is not good.  It does not work.


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: MissouriMiner on December 15, 2014, 09:20:49 PM
hello,

I have completely newbee question.

When I try upload cgminer via putty i receive message: No such file or directory

In guide I found
Code:
scp [path where you download and extracted patched cgminer]/cgminer root@[IP of your miner]:/usr/bin/cgminer

I put
Code:
scp [C:/Users/my_comp_name/Downloads/AntMinerS3-cgminer/cgminer]/cgminer root@[Ip_to_antminer3]:/usr/bin/cgminer

In advence ty for any help

eljotik

The error message you report does not accurate match my response, but here is something to try.  With some Linux OS, it will not allow scp to overwrite a file without force options.  I usually move the original cgminer first, then the scp works.  For example, first I run this on the miner "mv /usr/bin/cgminer /usr/bin/cgminer.bak".

Also, after you put the new cgminer in place, you may need to add execute permissions.  I typically run this.  "chmod +x /usr/bin/cgminer".




Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: eljotik on December 15, 2014, 09:42:07 PM
hello,

I have completely newbee question.

When I try upload cgminer via putty i receive message: No such file or directory

In guide I found
Code:
scp [path where you download and extracted patched cgminer]/cgminer root@[IP of your miner]:/usr/bin/cgminer

I put
Code:
scp [C:/Users/my_comp_name/Downloads/AntMinerS3-cgminer/cgminer]/cgminer root@[Ip_to_antminer3]:/usr/bin/cgminer

In advence ty for any help

eljotik

The error message you report does not accurate match my response, but here is something to try.  With some Linux OS, it will not allow scp to overwrite a file without force options.  I usually move the original cgminer first, then the scp works.  For example, first I run this on the miner "mv /usr/bin/cgminer /usr/bin/cgminer.bak".

Also, after you put the new cgminer in place, you may need to add execute permissions.  I typically run this.  "chmod +x /usr/bin/cgminer".




I have complete guide from nicehash https://www.nicehash.com/index.jsp?p=software#cgminer

Quote
Drop in replacement for /usr/bin/cgminer

How to use:

1. (this step is optional but recommended) update your AntMiner firmware to the latest one: https://bitmaintech.com/support.htm

2. after firmware update is successful, connect via ssh to your miner (use putty under Windows)

3. enter this command to stop cgminer:

/etc/rc.d/S99cgminer stop

4. backup existing cgminer binary

mv /usr/bin/cgminer /usr/bin/cgminer-original

5. upload patched cgminer binary from your computer

scp [path where you download and extracted patched cgminer]/cgminer root@[IP of your miner]:/usr/bin/cgminer

(or use WinSCP under Windows)

6. make the new uploaded cgminer binary executable:

chmod +x /usr/bin/cgminer

7. start cgminer

/etc/rc.d/S99cgminer start

8. go to the AntMiner's web interface and append #xnsub at nicehash or westhash pool URL, press "Save & Apply"

stratum.nicehash.com:3334#xnsub

9. wait a minute and then go to the nicehash or westhash miner's details web page and make sure you have a green checkmark in "Extranonce subscription" column

https://www.nicehash.com/index.jsp?p=miners&a=1&addr=your-Bitcoin-address

and did it 1 step before (i have  moved/beckup orginal cgminer)

I guess i put wrong patch to file on my computer!????

this is correct one?

Code:
scp [C:/Users/my_comp_name/Downloads/AntMinerS3-cgminer/cgminer]/cgminer root@[Ip_to_antminer3]:/usr/bin/cgminer


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: MissouriMiner on December 15, 2014, 10:04:03 PM
hello,

Code:
scp [C:/Users/my_comp_name/Downloads/AntMinerS3-cgminer/cgminer]/cgminer root@[Ip_to_antminer3]:/usr/bin/cgminer

I see.  The slashes need to be backslashes for Windows.  And now I see you have cgminer in the path twice.  Make sure that is correct.  It depends on how you unzipped the file.  Try "C:\Users\my_comp_name\Downloads\AntMinerS3-cgminer\cgminer" or "C:\Users\my_comp_name\Downloads\AntMinerS3-cgminer\cgminer\cgminer" if cgminer under subdirectory cgminer.



Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: eljotik on December 15, 2014, 10:15:41 PM
My Putty says

[C:UsersazerDownloadsAntMinerS3-cgminercgminer]/cgminer: No such file or directory

Seems putty can't read backslashes

Full command i put is

Code:
scp [C:\Users\azer\Downloads\AntMinerS3-cgminer\cgminer]/cgminer root@[192.168.0.205]:/usr/bin/cgminer

what can be wrong?

in advance ty for support


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: MissouriMiner on December 15, 2014, 10:25:59 PM
My Putty says

[C:UsersazerDownloadsAntMinerS3-cgminercgminer]/cgminer: No such file or directory

Seems putty can't read backslashes

Full command i put is

Code:
scp [C:\Users\azer\Downloads\AntMinerS3-cgminer\cgminer]/cgminer root@[192.168.0.205]:/usr/bin/cgminer

what can be wrong?

in advance ty for support

I haven't used putty's scp in a long time.  How about using WinSCP?  It has a UI, and is free.  winscp.net.
 


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: MissouriMiner on December 16, 2014, 03:48:29 AM
I looked again at the instructions you provided.  I see they are from the README.txt file included with Nicehash's Cgminer binary.  I did not catch this the first time, step 5 of the instructions mentions two different copy methods.  The first one with "scp" is to copy from a Linux host to the miner.  The line underneath step 5 mentions WinSCP for Windows.  If you're copying a file from Windows to Linux, use WinSCP, because it is more user friendly.  If you were using Putty's version of SCP for Windows, the executable name is PSCP.exe.  Maybe the "No such file or directory" error is because you were trying "scp" on your Windows host, and scp does not exist.

Just for fun, and for future reference, I tried Putty's SCP program PSCP.exe.  The first time I tried PSCP, I got an error related to not running an SFTP Server instance.  It appears that PSCP first tries SFTP (Secure FTP), which the Antminer's are not running. 
Code:
pscp D:\Downloads\Putty\PSCP_Test_File.zip root@192.168.44.150:/root/PSCP_Test_File.zip
root@192.168.44.150's password:
sh: /usr/lib/openssh/sftp-server: not found
Fatal: Received unexpected end-of-file from server

I ran PSCP again and provided the -scp option to force the use of the SCP protocol.
Code:
pscp -scp D:\Downloads\Putty\PSCP_Test_File.zip root@192.168.44.150:/home/root/PSCP_Test_File.zip
root@192.168.44.150's password:
PSCP_Test_File.zip        | 2144 kB | 2144.9 kB/s | ETA: 00:00:00 | 100%


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: MasterRadix on December 19, 2014, 02:56:25 PM
Anything for the C1 ready?


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: MissouriMiner on December 19, 2014, 09:14:55 PM
Anything for the C1 ready?
+1
 
I would also like a binary for the C1.  And we still need one (that works) for the S4.

I have an Arduino kit, which I think can be used to create the binaries.  I just got it and still learning its capabilities.  I used it to create a serial connection to an S3 controller board to fix a failed firmware flash.  Basically, the S3 appeared bricked, but just needed the OS re-imaged, which I did via serial connection.  This is one of the negatives from not using Micro SD to store the OS.  I digress...   Anyway... I will start searching for instructions on how to configure the Arduino to run the Antminer code version so I can create binaries.  If anyone has those instructions, I would appreciate letting me know.

This is the Arduino kit I have.  http://arduino.cc/en/Main/ArduinoStarterKit



Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: sEpuLchEr on December 19, 2014, 11:16:38 PM
Any fix for Antminer S4 yet? The current one you released does not work :( Can't use the stratum proxy provided on your page does not work too....


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: vegasguy on December 21, 2014, 04:26:46 AM
Any fix for Antminer S4 yet? The current one you released does not work :( Can't use the stratum proxy provided on your page does not work too....

I also would like to see a working S4 binary. Also for the noobs is there ANY chance you can compile it in the same format as bitmain so we can easily enter our web console and do upgrade through there?


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: sEpuLchEr on December 21, 2014, 05:45:22 AM
Any fix for Antminer S4 yet? The current one you released does not work :( Can't use the stratum proxy provided on your page does not work too....

I also would like to see a working S4 binary. Also for the noobs is there ANY chance you can compile it in the same format as bitmain so we can easily enter our web console and do upgrade through there?

Keep sending emails to info@bitmaintech.com with link to the patch. I sent a few and they replied saying they are looking into in and a new firmware for S4 will be release soon... but soon is never soon enough.


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: gupik65 on December 27, 2014, 11:49:11 AM
Tell me how to make settings for AntimanerS1 stratum extranonce
Thanks!


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: nicehash on February 25, 2015, 07:10:25 PM
Update: cgminer extranonce.subscribe extension is now included in AntMiner S5 and Spondoolies SP20 and SP3x firmware, so all you have to do is update your firmware and add #xnsub at the tail of stratum connection string. If anybody is interested, our test Avalon4.1 is also running fine on NiceHash.com. Here is compiled binary for Linux 64 bit (includes extranonce.subscribe, compiled from our official cgminer fork (https://github.com/nicehash/cgminer-ckolivas)) : https://www.nicehash.com/download/cgminer-Avalon4-Linux64.zip

If you are using Ubuntu you can simply connect your Avalon4.1 and run cgminer from the above zip file:

sudo ./cgminer -o stratum+tcp://stratum.nicehash.com:3334 -u yourBitcoinAddress -p x --avalon4-automatic-voltage --avalon4-fan 40

(--avalon4-fan is percentage of fan speed)

If you wan't to build cgminer from source just use the source from our official cgminer fork (https://github.com/nicehash/cgminer-ckolivas).

Here is a screenshot of under-clocked ("avalon4-voltage" : "7000", "avalon4-freq" : "320:310:300") Avalon4.1 running on NiceHash.com:

https://www.nicehash.com/download/NiceHash_Avalon4.png




And working AntMiner S3:

https://www.nicehash.com/download/NiceHash_AntMiner_S3.png




And working AntMiner S5:

https://www.nicehash.com/download/NiceHash_AntMiner_S5.png




And working Spondoolies-Tech SP20 (a bit underclocked):

https://www.nicehash.com/download/NiceHash_SP20.png


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: valkir on February 27, 2015, 06:33:58 PM
My S5 work fine with #xnsub but I cant make my Avalon4 and SP20 to use #xnsub.

Could you provide screen shot of myminer.io to see how you write it. Maybe Im doing something wrong.

Thanks

Valkir


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: nicehash on February 27, 2015, 06:41:27 PM
My S5 work fine with #xnsub but I cant make my Avalon4 and SP20 to use #xnsub.

Could you provide screen shot of myminer.io to see how you write it. Maybe Im doing something wrong.

Thanks

Valkir

For avalon you have to compile your own cgminer (or use provided if you're using Linux). Devs should add extranonce.subscribe to firmware.

For SP20 - first check which cgminer version do you have - check at SP20 homepage - is it written cgminer4.7.0 or cgminer4.8.0?


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: valkir on February 27, 2015, 06:50:36 PM
4.7.0 how can I upgrade to 4.8.0 ?


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: nicehash on February 27, 2015, 06:59:56 PM
4.7.0 how can I upgrade to 4.8.0 ?

If you already have the latest firmware, then the firmware obviously didn't upgrade to 4.8.0. You have to manually upgrade, download this: https://www.nicehash.com/download/Spondoolies-SP2x-SP3x-cgminer-4.8.0.zip and follow instructions inside.


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: oakmaster on March 06, 2015, 01:31:24 AM
anyone having problems with setting up extranonce in their S1 I came across this and it worked did it on 2
 https://hashtalk.org/topic/19264/how-to-enable-extranonce-subscription-antminer-s1/25


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: Evan on March 06, 2015, 12:06:59 PM
Can this work on a C1?


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: miguelmorales85 on March 12, 2015, 01:42:00 AM
My S5 work fine with #xnsub but I cant make my Avalon4 and SP20 to use #xnsub.

Could you provide screen shot of myminer.io to see how you write it. Maybe Im doing something wrong.

Thanks

Valkir

For avalon you have to compile your own cgminer (or use provided if you're using Linux). Devs should add extranonce.subscribe to firmware.

For SP20 - first check which cgminer version do you have - check at SP20 homepage - is it written cgminer4.7.0 or cgminer4.8.0?

what can I do after I check if the SP20 have the cgminer4.7.0 or 4.8.0?

in the pool configuration does the #xnsub parameters goes after or before the stratum+tcp:URL address?

tia


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: nicehash on March 12, 2015, 01:34:56 PM
what can I do after I check if the SP20 have the cgminer4.7.0 or 4.8.0?

in the pool configuration does the #xnsub parameters goes after or before the stratum+tcp:URL address?

If you have cgminer4.7.0, then first update your miner to the latest firmware. And then you have to use SSH (download putty on windows or use "ssh" command on linux/mac). You can connect as "root" (password "root") user to your miner's IP address and then issue these commands:

cp /etc/bin/cgminer /etc/bin/cgminer.orig
cp /cgminer-extranonce  /usr/local/bin/cgminer
cp /cgminer-extranonce  /etc/bin/cgminer

Then set your pool connection URL like this:

stratum+tcp://stratum.westhash.com:3334#xnsub

or

stratum+tcp://stratum.nicehash.com:3334#xnsub

And restart miner.

Now you'll notice cgminer4.8.0 version on your miner's home page and extranonce should be enabled.


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: duffer on March 13, 2015, 09:37:53 AM
And...S4....Please?

Thx.....


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: miguelmorales85 on March 15, 2015, 05:34:25 AM
what can I do after I check if the SP20 have the cgminer4.7.0 or 4.8.0?

in the pool configuration does the #xnsub parameters goes after or before the stratum+tcp:URL address?

If you have cgminer4.7.0, then first update your miner to the latest firmware. And then you have to use SSH (download putty on windows or use "ssh" command on linux/mac). You can connect as "root" (password "root") user to your miner's IP address and then issue these commands:

cp /etc/bin/cgminer /etc/bin/cgminer.orig
cp /cgminer-extranonce  /usr/local/bin/cgminer
cp /cgminer-extranonce  /etc/bin/cgminer

Then set your pool connection URL like this:

stratum+tcp://stratum.westhash.com:3334#xnsub

or

stratum+tcp://stratum.nicehash.com:3334#xnsub

And restart miner.

Now you'll notice cgminer4.8.0 version on your miner's home page and extranonce should be enabled.

it worked! thanks you very much!!


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: russy121 on March 16, 2015, 07:02:59 AM
has anyone able to get this to work on the antminer s1
everytime i do it i get a ton of discarded files and hardly any accepted ones
ty


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: Subw on March 20, 2015, 09:47:58 PM
why there is so much rejects?


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: Subw on March 20, 2015, 09:49:12 PM
has anyone able to get this to work on the antminer s1
everytime i do it i get a ton of discarded files and hardly any accepted ones
ty
first update firmware for S1


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: russy121 on March 23, 2015, 08:45:44 PM
ty for the reply

but can you paste me the link for the firmware you suggest
as i did it with the latest firmware from bitmain


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: Subw on March 23, 2015, 11:44:21 PM
i take it from bitmain's site: antMiner-S1_openwrt20140207.bin
follow the instructions in txt file from cgminer archive and you will be fine. i have eight S1 and they work with extranonce @nicehash


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: nicehash on March 24, 2015, 07:00:09 AM
Here is an updated firmware for AntMiner C1 which includes cgminer 4.9 with extranonce.subscribe, feel free to try it out: https://www.nicehash.com/download/antminer_c1_4.9.0.tar.gz

Please note that this firmware was provided by third-party (smit1237; https://bitcointalk.org/index.php?action=profile;u=363314), and was confirmed to be working (https://bitcointalk.org/index.php?topic=841344.msg10706798#msg10706798)


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: russy121 on March 24, 2015, 08:02:20 PM
same firmware as i have used but still a ton of discards accepted=5107 discarded=321456 seams very high to me
i have followed the nicehash/westhash guide


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: Subw on March 25, 2015, 10:03:12 PM
same firmware as i have used but still a ton of discards accepted=5107 discarded=321456 seams very high to me
i have followed the nicehash/westhash guide

same here, i don't think this is a problem, pool registers full speed of the miner so don't worry


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: russy121 on March 26, 2015, 07:01:23 AM
phewww i will just leave it running then ty


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: nicehash on March 27, 2015, 10:40:27 AM
Here are some updated firmwares for AntMiners with extranonce.subscribe and fresh cgminers:

AntMiner S4:
https://www.nicehash.com/download/AntMiner-S4-SD-firmware_cgminer_4.9.0_nicehash_and_normal_fan.tar.gz

AntMiner S5:
https://www.nicehash.com/download/AntMiner-S5-SD-firmware_cgminer_4.9.0_nicehash_and_performance_graph.tar.gz
(There is some additional features in S5 firmware, performance graphs like on sp20e, they can be accesed by pointing browser to http://miner_ip/cgi-bin/graph.rrd)

AntMiner C1:
https://www.nicehash.com/download/AntMiner_C1_SD-firmware_cgminer_4.9.0_nicehash.tar.gz

Details explained here: https://www.nicehash.com/index.jsp?p=software#asic


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: oakmaster on April 10, 2015, 06:38:10 AM
What about the S2


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: nicehash on April 13, 2015, 06:19:16 AM
A quick update for Spondoolies users (SP20, SP3x): if you upgraded to a recent stable firmware you'll have an option to set "ExtraFlag" = "2" at the "Settings" page. After setting this flag you only have to reboot the miner (not just restart the mining, but actually reboot it) and it will boot into cgminer4.8.0 with extranonce.subscribe enabled (no need to use SSH, etc.). Then set your pool connection URL and you're all set:

stratum+tcp://stratum.westhash.com:3334#xnsub

or

stratum+tcp://stratum.nicehash.com:3334#xnsub


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: twebit on April 17, 2015, 09:06:55 PM
Hi, can somebody tell me the commands to put in ubuntu command line after I downloaded the git repo for cgminer 4.9.1 how to include the extranonce subscribe extension please? I see all kinds of links to where it is but I don't know how to merge it with the one on my computer.
Thanks


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: omshree on March 30, 2017, 12:51:05 PM
what does exranonce do?


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: emdje on March 30, 2017, 01:58:59 PM
Take a look at this to read up on what extranonce does: https://bitcointalk.org/index.php?topic=1040859.0


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: kano on March 31, 2017, 02:54:46 PM
what does exranonce do?
It says to the work source that is providing you with work, that they are allowed to change the coinbase transaction however they like whenever they like.
It is a major security risk.


Title: Re: cgminer extranonce.subscribe extension (binaries available for download)
Post by: omshree on April 02, 2017, 05:35:38 AM
Thanx guys!