How to add/replace amdgpu driver in another puppy with the amdgpu (version 19.1.0) from slacko64-8.2.1?

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
hundido
Posts: 220
Joined: Tue Jun 15, 2021 7:51 am
Has thanked: 118 times
Been thanked: 7 times

How to add/replace amdgpu driver in another puppy with the amdgpu (version 19.1.0) from slacko64-8.2.1?

Post by hundido »

With much gratitude to @williwaw for helping me find the next challenge to solve, how do I take the amdgpu_drv, compiled for (Xorg)1.20.10, module version = 19.1.0, and add it to other puppies?

Relevant post from williwaw from other thread:

from pupsys-info I see "amdgpu"

from the output of grep I see a timestamp of 19.205 by that driver

and in the log at 19.205. I see

Code: Select all

[ 19.205] (II) LoadModule: "amdgpu"
[ 19.205] (II) Loading /usr/lib64/xorg/modules/drivers/amdgpu_drv.so
[ 19.206] (II) Module amdgpu: vendor="X.Org Foundation"
[ 19.206] compiled for 1.20.10, module version = 19.1.0
[ 19.206] Module class: X.Org Video Driver

If you look in /usr/lib64/xorg/modules/drivers/ you will find amdgpu_drv.so but it has no version number in the filename, The version is indicated 2 lines below "compiled for (Xorg)1.20.10, module version = 19.1.0"

It may be possible to replace the amdgpu driver in another puppy with the amdgpu (version 19.1.0) you take from slacko8.2.1, but as for what is the best practice for doing it, I am not the right guy to ask. I would recommend you open a new topic in the user section should you wish to proceed further.
Top

Dear Puppy community, what's the best way to do this?

User avatar
mikewalsh
Moderator
Posts: 6153
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 791 times
Been thanked: 1979 times

Re: How to add/replace amdgpu driver in another puppy with the amdgpu (version 19.1.0) from slacko64-8.2.1?

Post by mikewalsh »

@hundido :-

In short, you can't. As I understand it, a GPU driver module must be compiled, in situ, against the specific kernel it's going to be used with.

We have a community utility for compiling Nvidia drivers. But I don't have a clue as to what you do with AMD drivers.

(*shrug*)

Perhaps somebody else will know how to approach this.

Mike. ;)

hundido
Posts: 220
Joined: Tue Jun 15, 2021 7:51 am
Has thanked: 118 times
Been thanked: 7 times

Re: How to add/replace amdgpu driver in another puppy with the amdgpu (version 19.1.0) from slacko64-8.2.1?

Post by hundido »

@mikewalsh , do you know if a more realistic question, then, might be, how do I compile an AMD driver?

I'm still trying to get an understanding of what it is I don't know how to do.

User avatar
mikewalsh
Moderator
Posts: 6153
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 791 times
Been thanked: 1979 times

Re: How to add/replace amdgpu driver in another puppy with the amdgpu (version 19.1.0) from slacko64-8.2.1?

Post by mikewalsh »

@hundido :-

hundido wrote: Sun Aug 01, 2021 8:51 am

@mikewalsh , do you know if a more realistic question, then, might be, how do I compile an AMD driver?

I'm still trying to get an understanding of what it is I don't know how to do.

This is what I'm saying. I don't know how you would compile an AMD GPU driver under Puppy.

The Linux kernel team @ kernel.org have for long enough provided a pair of open-source equivalents for Nvidia & AMD cards.

- The "nouveau" driver module for NVidia
- The "radeon" driver module for AMD

I purchased my first ever discrete GPU only last year. The one I ended up with was a 'cooking' Nvidia card.....essentially so that the onboard IGPU, built-in to the CPU die, wouldn't 'borrow' system RAM to use as VRAM instead. This was before I maxed the RAM out to 32 GB.

I knew we had a community utility for compiling Nvidia drivers; I wanted to give it a try, just for the hell of it. It worked very well. Some of my Pups now run the "official" driver.....some have remained with the "nouveau", in-kernel driver instead (usually where I'm running a "Frankenpup", which is not using the same kernel/glibc/libstdc++, etc, as it came with. So the development/compiling tools won't work...)

My old tower from a couple of years ago WAS AMD-based, but I simply left that to work with the "radeon" kernel driver. On-board graphics chips just aren't worth the hassle of messing about with official drivers, because you simply won't see a worthwhile improvement.....not unless you're running something like a top-end gaming laptop, which will have a high-end GPU installed anyway.

AFAIK, no-one has ever built a Puppy utility for compiling AMD GPU drivers. I just do NOT know what the approach is with these. I wish I did, because I could then at least pass that information along... Sorry!

Mike. ;)

LateAdopter
Posts: 122
Joined: Sat Aug 15, 2020 5:10 pm
Been thanked: 19 times

Re: How to add/replace amdgpu driver in another puppy with the amdgpu (version 19.1.0) from slacko64-8.2.1?

Post by LateAdopter »

Hello mikewalsh

You are mixing up different parts of the display driver stack. Not surprising because the naming is confusing, but not as confusing as the Intel stack.

The drm driver that comes with the kernel is amdgpu.ko, which is the interface to the hardware. amdgpu_drv.so is part of the Xorg server and is unrelated. For Ubuntu and Debian it comes as a package xserver-xorg-video-amdgpu.

AMD have just released new version 21.? The best place to find updated versions for fossapup64 would be on launchpad, but I haven't seen one yet. Oibaf or Timo Aaltonen may build it there.

Since the Xorg server controls the display, keyboard and mouse it may not be reliable if it's swapped from a different system.

hundido
Posts: 220
Joined: Tue Jun 15, 2021 7:51 am
Has thanked: 118 times
Been thanked: 7 times

Re: How to add/replace amdgpu driver in another puppy with the amdgpu (version 19.1.0) from slacko64-8.2.1?

Post by hundido »

Idiomatically speaking, I think I might be pretty far over my head and it's time to try to dog paddle to a shallower part of the pool for awhile, lol. Thanks for giving me some stuff to learn. Whoa.

Maybe it's time to do what I can with what I have, and eagerly await Slacko64-8.2.2, or the next OS someone who understands this stuff makes, hoping they care about redshift as much as I do.

LateAdopter
Posts: 122
Joined: Sat Aug 15, 2020 5:10 pm
Been thanked: 19 times

Re: How to add/replace amdgpu driver in another puppy with the amdgpu (version 19.1.0) from slacko64-8.2.1?

Post by LateAdopter »

If you want to experiment...
The Ubuntu Impish package has been updated to version 21.0.0
https://packages.ubuntu.com/impish/xser ... deo-amdgpu

I noticed that the list of dependencies is identical to the list for Focal, so I tried it on a test copy of fossapup64.
Download amd64 package, click on it to install it, restart graphical server.

It works the same as the original version. But it reports ABI 24.1 in Xorg.0.log instead of 24.0

Looking at the Ubuntu xserver changelog, the ABI change happened at xserver 1.20.7, so the 1.20.8 in fossapup64 is compatible.

hundido
Posts: 220
Joined: Tue Jun 15, 2021 7:51 am
Has thanked: 118 times
Been thanked: 7 times

Re: How to add/replace amdgpu driver in another puppy with the amdgpu (version 19.1.0) from slacko64-8.2.1?

Post by hundido »

@LateAdopter thank you for the idea.

I went to the link, and downloaded the

Architecture Package Size Installed Size Files
amd64 69.4 kB 187.0 kB

Then I installed it
Restarted the graphical server

I opened redshift and attempted to adjust the color temp, and nothing happened.

Thanks again even though it didn't make redshift work.

Post Reply

Return to “Users”