Vertcoin sgminer

Материал из poiuty wiki
Перейти к: навигация, поиск

So let`s start mine Vertcoin on AMD GPU. We need install some packages.

apt-get update 
apt-get upgrade
apt-get dist-upgrade
apt-get install linux-headers-`uname -r` xdm xorg screen libncurses5-dev libcurl4-openssl-dev bzip2 zip make git build-essential screen libcurl4-openssl-dev pkg-config libtool libncurses5-dev autoconf
apt-get purge xserver-xorg-video-radeon
reboot

Edit /etc/X11/xdm/xdm-config

DisplayManager*authorize:   false

Download and install AMD driver.

# unzip amd-catalyst-omega-14.12-linux-run-installers.zip
cd ./fglrx-14.501.1003/
sh amd-driver-installer-14.501.1003-x86.x86_64.run
aticonfig --adapter=all --initial -f
sync
reboot

Check.

# export DISPLAY=:0
# aticonfig --adapter=all --odgt

Adapter 0 - AMD Radeon R9 200 Series
            Sensor 0: Temperature - 51.00 C

Adapter 1 - AMD Radeon R9 200 Series
            Sensor 0: Temperature - 50.00 C

Adapter 2 - AMD Radeon R9 200 Series
            Sensor 0: Temperature - 53.00 C

Install SDK APP

tar -xf AMD-APP-SDK-v2.9-lnx64.tgz 
sh Install-AMD-APP.sh 
reboot

Download sgminer, ADL SDK. Copy ADL SDK include and compile.

git clone https://github.com/metalicjames/sgminer-Lyra2RE.git
cp -r /root/ADL/include/* /root/sgminer-Lyra2RE/ADL_SDK/
cd ./sgminer-Lyra2RE/
git submodule init
git submodule update
autoreconf -i
CFLAGS="-O2 -Wall -march=native" ./configure
make

Edit /root/sgminer-Lyra2RE/example.conf

{
"pools" : [
	{
		"url" : "stratum+tcp://eu.p2pool.pl:9171",
		"user" : "VjkHXUAQo1ifpPdrHafbr7yokWBCAUudyW",
		"pass" : "x"
	}
]
,

"kernel" : "Lyra2RE",
"algorithm" : "Lyra2RE",
"xintensity" : "128",
"gpu-threads" : "2",
"lookup-gap" : "2",
"worksize" : "128,128,128",
"gpu-engine" : "860,860,860",
"gpu-memclock" : "1250,1250,1250",
"gpu-fan" : "45-85",
"kernel-path" : "/usr/local/bin"

}

Make start script -> /root/sgminer-Lyra2RE/start.sh
Use no-extranonce if u mine on p2pool.

sleep 30
export DISPLAY=:0
export GPU_USE_SYNC_OBJECTS=1
export GPU_MAX_ALLOC_PERCENT=100
/root/sgminer-Lyra2RE/sgminer --api-port 4001 --no-extranonce --auto-fan --temp-cutoff 95 --config /root/sgminer-Lyra2RE/example.conf

Set permissions on /root/sgminer-Lyra2RE/start.sh

chmod 755 /root/sgminer-Lyra2RE/start.sh

Start mining.

/root/sgminer-Lyra2RE/start.sh

sgminer-vert.png

You can also use screen.

screen
/root/sgminer-Lyra2RE/start.sh

When u need close screen, use ctrl + A and D. And when u need open screen.

# screen -list
There is a screen on:
        20111.pts-3.ubuntu      (01/16/2015 06:22:02 PM)        (Detached)
1 Socket in /var/run/screen/S-root.

# screen -x 20111.pts-3.ubuntu

Auto start after reboot, edit /etc/rc.local

screen -dmS mine /root/sgminer-Lyra2RE/start.sh > /dev/null 2>/dev/null &