Terminus R909 Setup Linux/Raspian

Terminus R909 Setup Linux/ Raspberry PI

Preparation, Package Dependencies, Configuration and Build for Raspbian – Kernel version: 4.4 (Debian 8.7.1) or higher and for Ubuntu 16.04.1 LTS or higher.

Preparation

These instructions describe setup, configuration and build with a new Raspbian (Debian) or Ubuntu installation. Sudo rights are required for the installation. Root itself is not required.

Connection & Accessories

An external controller is required to operate the miner which will be connected with the USB port of the miner. You can use classic desktop PCs, Notebooks or mini PCs with Windows, Linux or Mac operating systems. These instructions describes the setup with Linux-based operating systems such as Debian 8.7.1 and higher, Ubuntu 16.04 LTS and higher and Raspberry OS (Raspian) kernel version 4.4 or higher.

First update your system and already installed packages:

sudo apt-get update
sudo apt-get upgrade -y

The following packages must be installed to resolve the package dependencies of CGMiner:

  • build-essential: Compiler and Compile-Tools
  • git: source code repository
  • autoconf: Required for the build from GIT.
  • automake: Required for the build from GIT.
  • libtool: shared library access for CGMiner
  • zlib1g-dev: Compression and decompression library required for the build
  • pkg-config: Required for build and compilation
  • libcurl4-openssl-dev: http connectivity for CGMiner
  • libudev-dev: USB support for CGMiner
  • libusb-1.0-0-dev: USB support for CGMiner
  • libncurses5-dev: Text-based User Interface for CGMiner

For Debian, Ubuntu and Raspberry Pi OS:

sudo apt-get install -y build-essential git autoconf automake libtool pkg-config zlib1g-dev libcurl4-openssl-dev libncurses5-dev libusb-1.0-0-dev libudev-dev

Now you can clone the CGMiner Branch from GIT:

mkdir -p mining/r909
cd mining/r909
git clone https://github.com/kanoi/cgminer.git
cd cgminer

After successful cloning from GIT you can now compile CGMiner:

CFLAGS="-O2 -march=native -fcommon" ./autogen.sh --enable-gekko --enable-icarus
make
sudo apt-get install -y openjdk-8-jre-headless

On linux, if you want to just be able to type ‘cgminer‘ instead of ‘./cgminer‘ when you are in the code folder, then installing it in /usr/local/bin/ will allow that.

sudo make install

The –enable-gekko parameter enables the GekkoScience drivers during build.

After that the binary can be tested as follows:

./cgminer -n

This command lists the miners detected. “Terminus R909 BM1389 Bitcoin Miner” should be the output here.

Setup

The command to start the terminus r909 in the Custom CGMiner in the console is as follows (example):

./cgminer -o stratum+tcp://pool.ckpool.org:3333 -u 1BURGERAXHH6Yi6LRybRJK7ybEm5m5HwTr -p x --suggest-diff 442 --gekko-r909-freq 450

The pool data from the example above can be replaced with your own pool data. The example above illustrates operations in the Con Kolivas mining pool. The clock frequency can be changed by changing the gekko-r909-freq parameter.

We recommend storing all configuration parameters in their own configuration file.

touch gekko.conf
sudo nano gekko.conf

Example configuration:

{
	"pools" : [
		{
		"url" : "stratum+tcp://stratum.kano.is:3333",
		"user" : "username.gekko",
		"pass" : "x"
		}
	],
	"gekko-r909-freq" : "450",
	"gekko-r909-detect" : true,
	"gekko-compacf-freq" : "400",
	"gekko-compacf-detect" : 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"
}

For further help and support, we recommend taking a look at the support forum at bitcointalk.org (in English) or simply write us an e-mail.