Updating cgminer version on Antminer S1

Discussion about digital currencies (Bitcoin and other alternatives), creating, trading markets, mining pools - all can be discussed here.

Moderator: ArcticWolfie

User avatar
K2
Administrator
Posts: 7110
Joined: Sep 14th, 2002 at 6:33 am

Updating cgminer version on Antminer S1

Postby K2 » Mar 24th, 2014 at 6:03 pm

Have a look - https://github.com/kanoi/cgminer-binari ... ster/AntS1

Currently as of this posting, this is an update to cgminer version 4.2.0 (4.2.1 exists but isn't available via this method yet). Lots of bug fixes, improved CPU load handling, which equates to faster response times, less CPU overhead --> slightly less heat generated/less electricity use.

Bitcointalk forum thread concerning this update for the S1 - https://bitcointalk.org/index.php?topic ... msg5856097

Check either thread for future updates.

User avatar
K2
Administrator
Posts: 7110
Joined: Sep 14th, 2002 at 6:33 am

Re: Updating cgminer version on Antminer S1

Postby K2 » Mar 25th, 2014 at 1:07 pm

The above update breaks the display of LSTime for whichever pool your S1 is pointed at. Beerpimp found a fix for that, and it also improves on it, as the date/time group becomes much more user friendly.

To fix: ssh into your S1 and edit this file - /usr/lib/lua/luci/controller/cgminer.lua

Find:

Code: Select all

if lst == "0" then
lst_date = "Never"
else
--lst_date = os.date("%c", lst)
lst_date = lst
end


and change to:

Code: Select all

if lst == "0" then
lst_date = "Never"
else
lst_date = os.date("%c", lst)
--lst_date = lst
end


Reboot the S1, good to go.

User avatar
K2
Administrator
Posts: 7110
Joined: Sep 14th, 2002 at 6:33 am

Re: Updating cgminer version on Antminer S1

Postby K2 » Apr 1st, 2014 at 1:55 pm

Newer build of cgminer is available for the S1's - 4.2.2a. Follow the same link on github from the original post.

User avatar
TheBackRoads
Fresh Meat
Posts: 7
Joined: Feb 20th, 2014 at 11:45 am

Re: Updating cgminer version on Antminer S1

Postby TheBackRoads » Apr 2nd, 2014 at 9:00 am

Thanks for the quick links/info! Updating 4.2.0 cgminer helped lower the cpu load... is there any further benefit for 4.2.2 other than just keeping it current?

User avatar
K2
Administrator
Posts: 7110
Joined: Sep 14th, 2002 at 6:33 am

Re: Updating cgminer version on Antminer S1

Postby K2 » Apr 2nd, 2014 at 2:47 pm

There were a couple more cpu tweaks and also temp handling for the S1. Most of the updates in 4.2.2a were for solo miners.

User avatar
TheBackRoads
Fresh Meat
Posts: 7
Joined: Feb 20th, 2014 at 11:45 am

Re: Updating cgminer version on Antminer S1

Postby TheBackRoads » Apr 11th, 2014 at 12:27 pm

The above link is now steps for updating to CGMiner 4.2.2a. It works fine however if you want to upgrade to 4.2.0, I've added the below for you to follow(with lstime fix).

CGMiner Update to 4.2.0
Part 1

cd /usr/bin/
wget http://kano-kun.net/AntS1/cgminer-ants1-4.2.0-00567a4
chmod +x cgminer-ants1-4.2.0-00567a4

If you haven't done an update like this before (or undid the change):
mv cgminer cgminer.original
ln -s cgminer-ants1-4.2.0-00567a4 cgminer

Next you need to restart cgminer on your AntS1
Clicking the "Save & Apply" button on the "Status/Miner Configuration" tab
in the web interface will do that
-------------------------------------------------------------------------------------
Fix LSTime
Part 2

vi /usr/lib/lua/luci/controller/cgminer.lua

Around line 287, look for:
--lst_date = os.date("%c", lst)
lst_date = lst
and change it back to:
lst_date = os.date("%c", lst)
--lst_date = lst

reboot from cmd and enter


Enjoy! 8)
Attachments
CGMiner_Update.txt
(785 Bytes) Downloaded 235 times

User avatar
TheBackRoads
Fresh Meat
Posts: 7
Joined: Feb 20th, 2014 at 11:45 am

Re: Updating cgminer version on Antminer S1

Postby TheBackRoads » May 7th, 2014 at 9:43 am

4.3.2a availabe for upgrade. Fixed time.

https://github.com/kanoi/cgminer-binari ... ster/AntS1


Return to “Cryptocurrency”

Who is online

Users browsing this forum: No registered users and 1 guest