Post
Topic
Board Mining (Altcoins)
Re: mkxminer: fast Lyra2rev2 miner for AMD GPUs (Vertcoin, Monacoin, Verge, STRAKS)
by
winmkx
on 19/02/2018, 07:23:01 UTC
Ubuntu x64 mining from scratch step by step guide

*** Prerequisites:
2 USB flash drives (or 1 USB + 1 SSD/HDD), AMD videocard

*** Install Ubuntu Server
Download Ubuntu 16.04 x64 Server ISO image (I used 16.04.3 LTS from https://www.ubuntu.com/download/server).
Copy the Ubuntu installer to a USB. I recommend using the "Universal USB Installer".
Reboot with installation USB and the destination USB inserted (or just the installation USB and SSD/HDD connected).
Select install option.
Do a standard install to USB/HDD/SSD. Make sure "OpenSSH server" option is turned ON (it is needed to connect remotely via terminal later).
Remove installer USB and reboot.

*** Get Ubuntu x64 to work with 32 bit applications
(You can now login from from another terminal over SSH. For example Putty for Windows or the built-in Terminal / Hyper / iTerm2 for Mac, whatever..., even "Prompt" for iOS will do)
Login to your Ubuntu server box (ssh yourlogin@yourubuntuaddress)
Execute these commands:
Code:
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libc6:i386 libstdc++6:i386
now reboot your computer


*** Set up AMD driver
Download AMD driver. Now this becomes interest. There are a few versions out there to choose from and probably there will be even more by the time you read this.
Code:
wget --referer=https://support.amd.com https://www2.ati.com/drivers/linux/beta/ubuntu/amdgpu-pro-17.40-483984.tar.xz
or
Code:
wget --referer=https://support.amd.com https://www2.ati.com/drivers/linux/beta/ubuntu/amdgpu-pro-17.40-492261.tar.xz

install xz utils if you don?t have yet (required to extract the driver from .tar.xz)
Code:
sudo apt-get install xz-utils


Code:
tar -xJvf amdgpu-pro-17.40-483984.tar.xz
cd amdgpu-pro-17.40-483984

./amdgpu-pro-install
sudo reboot

Add your user to video group:
Code:
sudo usermod -a -G video $LOGNAME
sudo reboot


*** Download & run mkxminer
Download mkxminer (links in bitcointalk thread). For example:
Code:
wget https://filebin.net/xs1yhv0qlpobge74/mkxminer310.tar.gz

Extract the archive, for example:
Code:
tar -xf mkxminer310.tar.gz

Test mkxminer:
Code:
./example.sh

If it's ok and the app is running - close it by pressing 'q'.
Now edit example.sh and add your mining address / pool config.

*** Possible problems when running mkxminer:

If you execute ./mkxminer and it just closes without printing anything, then you don't have 32 bit support on your 64 bit Linux.

* Error: ./mkxminer: error while loading shared libraries: libOpenCL.so.1: cannot open shared object file: No such file or directory
Reason: You don't have 32bit OpenCL installed. If you added 32 bit support (like written above), you may need to reinstall AMD drivers.

* Error: Frontend phase failed compilation.
Error: Compilation from LLVMIR binary to IL text failed!
Reason: the AMD driver is not compatible with mkxminer. Try another driver. You can see AMD GPU-PRO version by executing: dpkg -l amdgpu-pro
AMD RX480 and RX580 currently have this problem in Linux, I?m not sure how to fix it yet.

* Error: clGetPlatformsIDs error -1001, verify that drivers are installed properly
Possible cause: Have you added your user to "video" group and rebooted after that?

Happy mining!