Ethminer: Ubuntu 17.10 Installation Guide for AMD

Created on 20 Nov 2017  路  16Comments  路  Source: ethereum-mining/ethminer

Hello,
Iam looking for a Linux installation guide for ethminer.

AMD Card, ethermine Pool.

Thx a lot (Iam Linux noobie)

Most helpful comment

@Linuxnoob84 in console or terminal emulator (gnome-terminal or something, I don't know what exactly they put in Ubuntu now).

Start that terminal emulator.

Download the release from above: wget https://github.com/ethereum-mining/ethminer/releases/download/v0.12.0/ethminer-0.12.0-Linux.tar.gz

Extract the miner: tar --extract -f ethminer-0.12.0-Linux.tar.gz

Check the miner: ./bin/ethminer -h -- it should show you the list of options.

If it does -- start the miner: ./bin/ethminer --farm-recheck 200 -G -S eu1.ethermine.org:4444 -FS us1.ethermine.org:4444 -O <Your_Ethereum_Address>.<RigName>

PS. About terminals in Ubuntu https://askubuntu.com/questions/183775/how-do-i-open-a-terminal

All 16 comments

AFAIK there's no "installation".
Download the latest linux release from here https://github.com/ethereum-mining/ethminer/releases/latest
Then start it e.g. as shown on ethermine.org:

ethminer --farm-recheck 200 -G -S eu1.ethermine.org:4444 -FS us1.ethermine.org:4444 -O <Your_Ethereum_Address>.<RigName>

ethminer -h will show all available options.

But where should I type this into?
On Win I used a batch file...

@Linuxnoob84 in console or terminal emulator (gnome-terminal or something, I don't know what exactly they put in Ubuntu now).

Start that terminal emulator.

Download the release from above: wget https://github.com/ethereum-mining/ethminer/releases/download/v0.12.0/ethminer-0.12.0-Linux.tar.gz

Extract the miner: tar --extract -f ethminer-0.12.0-Linux.tar.gz

Check the miner: ./bin/ethminer -h -- it should show you the list of options.

If it does -- start the miner: ./bin/ethminer --farm-recheck 200 -G -S eu1.ethermine.org:4444 -FS us1.ethermine.org:4444 -O <Your_Ethereum_Address>.<RigName>

PS. About terminals in Ubuntu https://askubuntu.com/questions/183775/how-do-i-open-a-terminal

it says no OpenCL Platforms found

Can you paste the result of this command
lspci | grep -i --color 'vga\|3d\|2d'

I'm attempting to do (almost) the same thing, and I'm running into the same issue: no opencl platforms found.

Here's my output from the command lspci | grep -i --color 'vga\|3d\|2d'

01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cayman LE GL [FirePro V5900]

Also, I'm still running 16.04.3 LTS.

After installing/uninstalling the amdgpu driver, and the amd driver for the firepro v5900, I just installed fglrx-core_15.302-0ubuntu1_amd64.deb from a community.amd.com post. My output after running ethminer is as follows:

~$ ./ethminer modprobe: FATAL: Module fglrx not found in directory /lib/modules/4.10.0-40-generic Error: Fail to load fglrx kernel module! Error! Fail to load fglrx kernel module! Maybe you can switch to root user to load kernel module directly modprobe: FATAL: Module fglrx not found in directory /lib/modules/4.10.0-40-generic Error: Fail to load fglrx kernel module! Error! Fail to load fglrx kernel module! Maybe you can switch to root user to load kernel module directly modprobe: FATAL: Module fglrx not found in directory /lib/modules/4.10.0-40-generic Error: Fail to load fglrx kernel module! Error! Fail to load fglrx kernel module! Maybe you can switch to root user to load kernel module directly No GPU device with sufficient memory was found. Can't GPU mine. Remove the -G argument

FirePro V5900 only has 2GB of graphic memory, you need at least 3gb to mine ethereum
http://www.amd.com/en-gb/products/graphics/workstation/firepro-3d/5900
https://investoon.com/tools/dag_size

16.04LTS doesn't support fglrx driver. Use amdgpu or radeon instead. AFAIK radeon module isn't suitable for mining.

Ah! The 2 GB card is what's killing me.

I'll mine Monero. Thanks all!

Can this issue be closed? Or is there an open task to improve documentation?

https://github.com/ethereum-mining/ethminer/issues/449 We need to improve the documentation, half of all errors are from this

@ddobreff this is true, fglrx hasn't been used for AMD since 15.04LTS. It's replacement is ROCm kernel that helps improve mining but it's not necessarily always required to be installed to be able to mine. The most important first step to installing AMD drivers on Linux should be installing these drivers
AMDGPU-Pro 17.40 Linux drivers

The AMD article on that page covers the steps to install those drivers properly, my only suggestion would be to install the drivers from the page with the "./amdgpu-pro-install --opencl=rocm" if you have a Vega10 or newer graphics chipset or "./amdgpu-pro-install --opencl=legacy" for graphic chipsets before Vega10...

  • reboot
  • then make sure you are in the "video" group by adding your user with this command "sudo usermod -a -G video $LOGNAME"
  • reboot
  • then install the opencl-headers needed for miners with this "sudo apt-get install opencl-headers" and then profit

Linux Auto Download/Build Ethminer Script

#Download ethminer
git clone https://github.com/ethereum-mining/ethminer.git
#Enter Project Directory
cd ethminer/
#Make Build Directory
mkdir build
#Enter Build Directory
cd build/
#CMAKE
echo "Build"
cmake .. -DETHASHCUDA=ON -DETHASHCL=ON -DETHSTRATUM=ON -DAPICORE=ON
#Build
echo "Release"
cmake --build . 
echo "End Build-Release"
#Enter Home Directory
cd ~/
#End

cmake .. -DETHASHCUDA=ON

?

Is that still for AMD gpu's, and if so what do we have to do to install cuda for linux? I'm researching how to get my amd rx 580's up on msi intel i8 board. I have atiflash, can get the msi bios flash to work from usb drive without windows by using bios, and it appears I have to have old ubuntu 16.04.3 androld amd pro 16.40. uefi is easy with grub2 not refind--refind won't boot install iso's grub2 will--easy--grub2 is easier than refind if refind can't even boot install iso. So, cuda for amd, not just nvidia? Prereq cuda and opencl?

To the moderators, this thread is still current because of strange situation of 2017 and Ubuntu 16.04.3 being current in 2018 and so howto still most thorough right here as far as how to get up and running in April 2018 on Ubuntu. After this, then people can look at strapping and bios upgrade and uefi and headless setup for remote login--trick to learn there is some people can keep gpu's from bonking on remote login by only issuing remote commands, a lighter light touch on resources.

This is linux, we should be killing it, but we're in Ubuntu 16.04.3 and last years' AMD PRO? I read something about latest kernel having some amd gpu stuff, but not dedicated blockchain only gamer, right? Duh. We're back in 2017 beta amd blockchain. I also have a whine about not being able to simply search either websearch or on amd about current exact amd pro beta fkn driver--why do I have to search and figure out which is the latest FORUM post latest amd pro blockchain driver? Not too linuxy, we rock and rule, wtf?

..we're actually at amd pro 17.50 but that's not real easy to discover.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

CarlStyles picture CarlStyles  路  5Comments

phalexo picture phalexo  路  5Comments

Penziplays picture Penziplays  路  5Comments

blgsyrmhnds picture blgsyrmhnds  路  4Comments

nguylb73 picture nguylb73  路  3Comments