May as well post this here
Running CGMinerlinux:
./cgminer -o stratum+tcp://stratum.kano.is:3333 -u 1BURGERAXHH6Yi6LRybRJK7ybEm5m5HwTr -p x --suggest-diff 442 OR (see below for)
./cgminer -c gekko.confwindows:
cgminer.exe -o stratum+tcp://stratum.kano.is:3333 -u 1BURGERAXHH6Yi6LRybRJK7ybEm5m5HwTr -p x --suggest-diff 442 OR (see below for)
cgminer.exe -c gekko.confOS X:
cgminer -o stratum+tcp://stratum.kano.is:3333 -u 1BURGERAXHH6Yi6LRybRJK7ybEm5m5HwTr -p x --suggest-diff 442 OR (see below for)
cgminer -c gekko.confOf course in all the above replace 1BURGERAXHH6Yi6LRybRJK7ybEm5m5HwTr with your own username.workername on the pool.
CGMiner Frequency settingWarning running it higher than the default setting will require some cooling.
The higher the frequency you use, the greater the amount of cooling required.
It will also require a USB hub that can put out more than the standard 2.1A to go above 300MHz
Few USB hubs can do this, but of course the Gekko USB hub is designed to do this OK.
To run it at a higher frequency, add on to the commands above e.g.
--gekko-compacf-freq 400
The latest version of the gekko driver (as of 2021-10-17) has a new mining option:
--gekko-mine2
This uses a slightly different mining loop that also reports all frequency changes to the screen,
and why they change if it stepped down.
There's a second option if you have enabled the mine2 option:
--gekko-tune2 60
that allows the miner to recover lost frequencies if it was unable to match the frequency
requested due to the environment, but it later improves e.g. gets cooler.
The '60' means check once per hour - default is don't do it.
The miner may just end up stepping up and down once per check if it can't do better,
so there's a lower limit of once per 30 minutes, range is 30-9999
--
I've seen tables floating around with incorrect info (way incorrect)
The MHz and GH/s number are pretty accurate.
These are actual numbers from various miners.
Low frequencies tend to perform worse than expected. These are ferraris people - put some power into them
I'll add more rows and columns at a later date.
Approximate performance table
Amps MHz GH/s
--------------------
1.95 400 260
--------------------
2.2 450 292.5
--------------------
2.4 500 325
--------------------
2.66 550 357.5
--------------------
. 600 390
--------------------
4.75 750 .
--
CGMiner GitThe master git for cgminer is
https://github.com/kanoi/cgminerCGMiner README
https://github.com/kanoi/cgminer/blob/master/READMEThat includes linux compile steps, but to repeat, on linux:
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y build-essential autoconf automake libtool pkg-config libcurl4-openssl-dev libudev-dev libusb-1.0-0-dev libncurses5-dev zlib1g-dev git
cd
git clone https://github.com/kanoi/cgminer.git
cd cgminer
CFLAGS="-O2 -march=native -fcommon" ./autogen.sh --enable-gekko --enable-icarus
make
If you wish to keep a log of each run in linux, add the following on the end of the command:
2> "run-`date +%Y%m%d%H%M%S`.log"
e.g.
./cgminer -c gekko.conf 2> "run-`date +%Y%m%d%H%M%S`.log"
OR an example shell script to run cgminer, call it
cgminer.sh#!/bin/sh
#
while true ; do
now="`date +%Y%m%d%H%M%S`"
#
./cgminer -c gekko.conf "$@" 2> "run.$now.log"
#
echo "Sleeping for 5 seconds ..."
sleep 5
done
For those not expert at linux, remember to
chmod +x cgminer.shThe "$@" means you can pass extra parameters to the shell script to be added onto running cgminer
e.g.
./cgminer.sh --gekko-noboostto turn off asicboost
CGMiner Windows 10 32bit binaryhttps://kano.is/cgminer.zipIt will probably work on older windows, but I'm only testing it on Windows 10
See here for version information of the above latest release:
https://kano.is/cgminer.phpThe instructions to compile it yourself on Windows 10 are here:
https://github.com/kanoi/cgminer/blob/master/windows-build.txtAs with all USB miners on Windows, you must install Zadig and setup the miner.
This is documented in the CGMiner README
https://github.com/kanoi/cgminer/blob/master/READMEIn a windows bat file you can say 2> to save a log of the cgminer run as well as see it on the screen.
Example bat file below using
-c gekko.conf described further down,
with a loop to sleep for 5 seconds and then restart (if cgminer exits)
The log files are date stamped, so if you get in a fast loop of start/stop/start/stop... it will create a lot of them 😛
@echo off
REM cgminer
:Loop
Set NOW=%date:~10,4%%date:~7,2%%date:~4,2%.%time:~0,2%%time:~3,2%%time:~6,2%
cgminer -c gekko.conf 2> "run.%NOW%.log"
echo Sleeping for 5 seconds
ping -n 5 127.0.0.1 > NUL
GOTO Loop
Just removing the last line will stop it from auto-restarting cgminer when it exits
CGMiner MacOSThe instructions to build it on MacOS (tested on Big Sur) are:
https://github.com/kanoi/cgminer/blob/master/mac-build.txt--
cgminer now has a new run option to verify it can identify shares correctly up to a hash of:
000000000000000000000000000000000000000000000000000000000000ffff
./cgminer --block-check
This is useful to check if you build cgminer yourself on your own choice of hardware,
but do not make any changes to my version.
Difficulty will of course never be that high, and no one is likely to ever find a hash that low.
That's only about 8 decimal places off the number of atoms in the universe
--
An example
gekko.conf{
"pools" : [
{
"url" : "stratum+tcp://stratum.kano.is:3333",
"user" : "username.gekko",
"pass" : "x"
}
],
"gekko-compacf-freq" : "300",
"gekko-compacf-detect" : true,
"gekko-start-freq" : "250",
"gekko-mine2" : true,
"gekko-tune2" : "60",
"suggest-diff" : "442",
"failover-only" : true,
"api-listen" : true,
"api-port" : "4028",
"api-allow" : "W:192.168.1.0/24,W:127.0.0.1"
}
Set "username.gekko" to match your username.gekko
and set 192.168.1.0/24 to match your local network
So you run cgminer with just:
-c gekko.conf--
WARNING: avoid
https://github.com/wareck/cgminer-gekkoThey removed all the git code ownership information, included a major security risk (extranonce),
and have done other various changes to the code, and released a windows binary with who knows what changes in it.