Author

Topic: Debian 11 and AMD cards (Read 142 times)

member
Activity: 325
Merit: 42
September 10, 2021, 07:03:23 AM
#12
It is working like a charm.
But you need to load amdgpu drivers for Ubuntu.
They will not install without patch.
But you don't need to install it, just some dpkg's from all archive.

1. Install Debian drivers with, apt as was shown here in tread.

2. Load amdgpu for Ubuntu, tar -xvf it.

3. Install:
Code:
dpkg -i opencl-orca-amdgpu-pro-icd_20.45-1164792_amd64.deb
It will ask for dependecies. So best approach is to manually install them from same amdgpu package.

4. Install:
Code:
dpkg -i ocl-icd-libopencl1-amdgpu-pro_20.45-1164792_amd64.deb
The same way you have to resolve dependencies if occurs.

5. After that just run teamredminer(in my case), and see that it correclty finds all GPU's

I have 2 old rigs with same hardware setup on RX 470 4Gb
One is Ubuntu 20, second is Debian 11.
Both show equal hashrate.

PS. Ahh... not mentioned...
I was able to make full-setup of amdgpucore on debian(with patch) and ubuntu.
But here was an error - when you try to
Code:
echo 'something' > /sys/class/drm/cardX/device/pp_od_clck_voltage'
system just hangs without any ouptut. And hanging process was only 'kill -9' manageable.
So I was revetring both PC's to pure Debian/Ubuntu firmware and then installing only needed packages as show above.
Not know if this was fixed in next releases.

You have missed one big point his issue is not with the old videocard but with the RX 5500 XT and to use that card you need to have the opencl rocr (rocm) installed. Your instructions are just for older videocards.
newbie
Activity: 5
Merit: 1
September 09, 2021, 03:43:24 AM
#11
It is working like a charm.
But you need to load amdgpu drivers for Ubuntu.
They will not install without patch.
But you don't need to install it, just some dpkg's from all archive.

1. Install Debian drivers with, apt as was shown here in tread.

2. Load amdgpu for Ubuntu, tar -xvf it.

3. Install:
Code:
dpkg -i opencl-orca-amdgpu-pro-icd_20.45-1164792_amd64.deb
It will ask for dependecies. So best approach is to manually install them from same amdgpu package.

4. Install:
Code:
dpkg -i ocl-icd-libopencl1-amdgpu-pro_20.45-1164792_amd64.deb
The same way you have to resolve dependencies if occurs.

5. After that just run teamredminer(in my case), and see that it correclty finds all GPU's

I have 2 old rigs with same hardware setup on RX 470 4Gb
One is Ubuntu 20, second is Debian 11.
Both show equal hashrate.

PS. Ahh... not mentioned...
I was able to make full-setup of amdgpucore on debian(with patch) and ubuntu.
But here was an error - when you try to
Code:
echo 'something' > /sys/class/drm/cardX/device/pp_od_clck_voltage'
system just hangs without any ouptut. And hanging process was only 'kill -9' manageable.
So I was revetring both PC's to pure Debian/Ubuntu firmware and then installing only needed packages as show above.
Not know if this was fixed in next releases.
member
Activity: 325
Merit: 42
September 08, 2021, 05:51:53 PM
#10
Your issue is the RX 5500 XT. I have Debian 11 (bullseye) running and on that platform for the R9 390 you only need to have the amdgpu-pro installed with the following command:
amdgpu-install --no-dkms opencl=legacy --headless but for the RX 5500 XT you need rocr (rocm) and that will try to install amdgpu-dkms and that will fail at least it does on my rig with a RX 6600 XT. I have a rig running a R9 390 8GB and a RX 580 8GB on Debian testing/bookworm with the AMDGPU-Pro driver installed as described. For getting the RX 6600 XT I had to install on a 32GB USD stick Ubuntu 20.04.2 and install the AMDGPU-PRO drivers as follows: amdgpu-pro-install --opencl=rocr to get the whole thing running but performance is definitely NOT optimal. For this you have to run on Windows 10 with latest drivers to get the best hashrate performance. At the moment I am running the RX 6600 XT at 32MH/s eth 59W under 60C. All mining software are not able to set the options you need to get the numbers as they are unable to set them. NBMiner, PhoenixMiner, SRBMiner-MULTI need to update/implement the settings needed.

Will try with a fresh install of Debian bullseye but I won't hold my breath. Main issue is that AMDGPU-PRO drivers are build for Ubuntu kernels while AMD should have followed the Debian kernels specially if you think off it that the Ubuntu kernel maintainers are actually the ones from Debian.

By the way --opencl=pal is depricated and doesn't work any more.
RX 5500 XT you will only properly see as root ymmv.
newbie
Activity: 42
Merit: 0
September 08, 2021, 03:34:16 PM
#9
I had now limited success with Ubuntu 20.4 ... r9 390 is working well but 5500 xt is nowhere to be found, I can see is with lspci |grep VGA but that's it.

I installed Ubuntu and then directly install amdgpu-pro first with options -y --opencl=legacy,rocm. After boot I couldnt see X but with alt+ctrl+f3 I got to shell and figured that r9 390 is working well but no 5500. Then I figures that I should have installed it with -y --opencl=pal,legacy,rocm so I uninstalled amd drivers and installed with proper options. After reboot still no luck ... just r9 390 and no 5500. What do I do wrong ? Can it be that I didnt reboot between uninstalling amdgpu-pro and reinstalling it ? could this be the problem ?

I feel generally excited Smiley as under linux mining eth with r9 390 is more profitable than mining etc eith r9 390 and 5500 together in windows ... and in windows cards are clocked while in linux I got no idea how to clock them yet Smiley ... mission one get both cards working Cheesy ... help Smiley

I am pretty impressed with r9 390 performance ... it does 30mh/s out of box while in windows with clocks it was 14mh/s

also can somebody direct me to solution hoe to get X on igpu ... although it is not that important ... getting the bastard to mine is Cheesy
jr. member
Activity: 40
Merit: 4
September 06, 2021, 08:20:35 PM
#8
swogerino nice post!
StonieMalony if you can't get the new Debian release to work, I suggest you install 'Pop!_OS' instead and download the AMD version.
legendary
Activity: 3738
Merit: 1708
September 05, 2021, 10:52:33 PM
#7
My advice to you is since you only got 2 GPUs, you should just use those linux distros which are designed for mining. Unless you really need Debian to work because you want to use the computer as your work computer at the same time. However if this is just a spare rig then just install those distros instead.

I had lots of issues initially getting Ubuntu to work. First it took like a day just to install the AMD drivers. Basially kept getting a black screen for some reason. Then I had issues getting the temperature to display. Then I had issues seeing what my clock rate/memory clock was. Then I had issues with undervolting and overclocking the GPUs. Even had issues after installing the software to get it to auto mine on startup and everything. Eventually I figured it out but it took like a week. Now I can do it easily however if I went back I would just use the distros.

full member
Activity: 1251
Merit: 135
September 05, 2021, 07:30:51 PM
#6
Was going to add most linix based mining OSes are all Ubuntu based.
legendary
Activity: 3136
Merit: 1233
Leading Crypto Sports Betting & Casino Platform
September 05, 2021, 04:47:22 PM
#5
I once tried Ubuntu but I had some trouble installing drivers that I downloaded from AMD page and then I reverted back to Debian Smiley

If you tried all of the above and it failed you are destined to go to Ubuntu back again.It is really easy to install drivers on Ubuntu,just make sure you download and install 18.04 LTS and follow this guide here below,pretty sure it will work like it is working in my photo.Just make sure you follow the third method and install the AMD Pro drivers you download from the official AMD page.Do not worry that the link is for 20.04,it will work perfectly in 18.04 LTS as well,18.04 LTS is what I am running,I have Nvidia cards at home,but I have done a lot of installations for Ubuntu mining rigs for some colleagues of mine.

https://linuxconfig.org/amd-radeon-ubuntu-20-04-driver-installation



newbie
Activity: 42
Merit: 0
September 05, 2021, 04:23:31 PM
#4
I once tried Ubuntu but I had some trouble installing drivers that I downloaded from AMD page and then I reverted back to Debian Smiley
newbie
Activity: 42
Merit: 0
September 05, 2021, 04:19:33 PM
#3
I have done all that but miners still find nothing. on windows both cards work okay. Could the problem be somewhere that I use some old APU for mining rig with 6410 iGPU ... could it mess things up somehow ? I see all cards with lspci |grep VGA but phoenixminer dont find anything nor teamredminer and lolminer ...

just utilizing old GPUs - I have 5500xt 4gb and r9 390 8gb for etc mining ... I heard that r9 390 shuld have compute mode in linux driver and miner better this way Smiley

been trying this and that way and I feel really dumb Cheesy can somebody please help me out Smiley
legendary
Activity: 3136
Merit: 1233
Leading Crypto Sports Betting & Casino Platform
September 05, 2021, 03:43:17 PM
#2
Hi,

Can somebody please provide some step-by-step instruction how to get AMD cards mining in Debian 11. Or just list what packages I need really ... I got amdgpu1(I think it was that) installed but no luck with any of the miners.

Thank you Smiley

I think you should do these preparatory steps before installing the AMD drivers in Debian 11 which I think is the same as Debian 10.Steps for Debian 10 below:

1-Install the Non-Free repository where you modify the source list by adding :
deb http://deb.debian.org/debian/ buster main non-free contrib
deb-src http://deb.debian.org/debian/ buster main non-free contrib

deb http://security.debian.org/debian-security buster/updates main contrib non-free
deb-src http://security.debian.org/debian-security buster/updates main contrib non-free


Source list I hope you know where is but in case you don't is you should switch to it with this command:
cd /etc/apt/sources.list

Open it with your preferred editor and make the changes like in the above example

2-Install the AMD driver,presumably you have already done but if not the command is :
sudo apt install firmware-linux firmware-linux-nonfree libdrm-amdgpu1 xserver-xorg-video-amdgpu

3-This step is optional as it is intended more for gaming rather than mining but if you want you can do this step which is to install Vulkan with the following command:

sudo apt install mesa-vulkan-drivers libvulkan1 vulkan-tools vulkan-utils vulkan-validationlayers

4-The most important step is to install the OpenCL with which 99% of the miners work with from what I have seen.Unfortunately Debian does not support it at a professional grade only at Mesa level which can cause problems with many miners,however you can try with this command:

sudo apt install mesa-opencl-icd

If after doing all these steps your only choice is to switch back to a fully supported OpenCL distribution like Ubuntu.Ubuntu I am using it at home and it works,haven't tried mining with Debian so don't really know what will happen with Debian but the above steps ensure you have done all there is to be done to install everything related to the latest AMD driver in Debian Linux.


The data above taken from the link here and is not my own,I just gave a few insights from my personal experience as why it is not working
https://linuxconfig.org/how-to-install-the-latest-amd-drivers-on-debian-10-buster
newbie
Activity: 42
Merit: 0
September 05, 2021, 02:51:01 PM
#1
Hi,

Can somebody please provide some step-by-step instruction how to get AMD cards mining in Debian 11. Or just list what packages I need really ... I got amdgpu1(I think it was that) installed but no luck with any of the miners.

Thank you Smiley
Jump to: