LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   AMD Catalyst 15.9 and Slackware Linux 14.1 current x86_64 (https://www.linuxquestions.org/questions/slackware-14/amd-catalyst-15-9-and-slackware-linux-14-1-current-x86_64-a-4175557132/)

MDKDIO 10-25-2015 03:01 PM

AMD Catalyst 15.9 and Slackware Linux 14.1 current x86_64
 
Recently "upgraded" to current, after I had to reinstall slackware 14.1 due to new hardware.

With 3.10.17 kernel, I had no problem with installing AMD Catalyst 15.9
But with 4.1.6 it won't work.

Thought all I needed was the kernel-headers, so I installed that. But still no go.

Install log:
Code:

Supported adapter detected.
Detected a previous installation, /usr/share/ati/amd-uninstall.sh
Dryrun uninstall succeeded continuing with installation.
Check if system has the tools required for installation.
fglrx installation requires that the system have kernel headers.  /lib/modules/4.1.6/build/include/linux/version.h cannot be found on this system.
One or more tools required for installation cannot be found on the system. Install the required tools before installing the fglrx driver.
Optionally, run the installer with --force option to install without the tools.
Forcing install will disable AMD hardware acceleration and may make your system unstable. Not recommended.

Under /usr/src/
all I have is linux (pointing at linux-3.10.17), and a few other things not related...

Questions:
1. Where do kernel-headers being installed to?
2. Is /lib/modules/4.1.6/build/include/linux/version.h ending up somewhere else, and if so, how to I make a symbolic link to it?
3. Other suggestions?

I don't mind compiling my own kernel if that is what it takes :)

Thanks in advance!

/Jorgen

ponce 10-25-2015 03:07 PM

I don't know about the compatibility of latest catalyst drivers over kernel-4.1.x, but as for your error you most probably have to upgrade the kernel-source package too with the one of current.

ReaperX7 10-25-2015 03:13 PM

The kernel headers are never updated unless glibc is updated. As far as the sources, the Catalyst drivers are very picky as to which kernel they support. A lot of reports have stated the Free driver is often better to use.

Which video card do you have anyway? This will answer more questions.

MDKDIO 10-25-2015 03:19 PM

Thanks for the quick reply ponce!

Sounds obvious enough, so I am doing so now...

MDKDIO 10-25-2015 03:23 PM

Quote:

Originally Posted by ReaperX7 (Post 5440076)
The kernel headers are never updated unless glibc is updated. As far as the sources, the Catalyst drivers are very picky as to which kernel they support. A lot of reports have stated the Free driver is often better to use.

Thanks for your quick reply ReaperX7!
I did notice something rel. to kernel versions supported (short memory so don't remember the exact versions), in the README

Quote:

Which video card do you have anyway? This will answer more questions.
Sorry! Should of course have mentioned that in my OP...

It is AMD Radeon HD 8470D (Yes, onboard GPU)

/J

Edit:
Release Note...
Linux kernel 2.6 or above (up to 3.19)
glibc version 2.2 or 2.3
Xorg/Xserver 7.4 and above (up to 1.17)
POSIX Shared Memory (/dev/shm) support is required for 3D applications

Edit2:
And this...
Quote:

The following packages must be installed in order for the AMD Catalyst Proprietary Linux Graphics Driver to install and work optimally:
gimp-help-en
gimp-help-common
XFree86-Mesa-libGL
libstdc++
libgcc
XFree86-libs
fontconfig
freetype
zlib
gcc

MDKDIO 10-25-2015 03:41 PM

Quote:

Originally Posted by MDKDIO (Post 5440078)
Thanks for the quick reply ponce!

Sounds obvious enough, so I am doing so now...

Done, but still same result as in OP (.log file rel part).

Sylvester Ink 10-25-2015 05:48 PM

FYI, the Catalyst drivers currently do NOT support Linux 4.x. They support up to 3.19. When I switched to current, it was at 3.18, so when Pat upgraded current to 4.1, I had to set 3.18 as my default kernel. Some distros, like Ubuntu, have their own custom build of Catalyst that will work on Linux 4.x, but from what I gather, they aren't totally stable, and don't perform quite up to par. The expectation is that AMD should be releasing a new Catalyst version for Linux 4.x soon, since a lot of big distros have put out releases with that kernel version.

In the meantime, I suggest you roll back to 3.18, if possible.

ReaperX7 10-25-2015 07:16 PM

You should be able to work the Free driver with Mesa-11.0.3 and the current X.org server and driver set.

The listing given on AMD's website is from the Ubuntu/Debian methodology of package labeling. All of those should be included with Slackware as-is out-of-the-box but are labeled differently.

Because you're running an 8x00 series, you may want to use the Free driver with -Current until either a new driver is released by AMD. If you need help setting it up, and it should work without issue, let us know. Also, you may wish to grab SlackBuilds.org packages "driconf" and "libtxc_dxtn" to round out support vectors if you use games and give you a configuration tool.

The only benefit of anything newer would be a newer kernel, like the 4.2 series, to test if you have any timing and fan control issues, otherwise 4.1.6 is fine.

MDKDIO 10-26-2015 08:41 AM

Quote:

Originally Posted by Sylvester Ink (Post 5440136)
FYI, the Catalyst drivers currently do NOT support Linux 4.x. They support up to 3.19. The expectation is that AMD should be releasing a new Catalyst version for Linux 4.x soon, since a lot of big distros have put out releases with that kernel version.

In the meantime, I suggest you roll back to 3.18, if possible.

Thanks a mill!

I had a feeling 4.1.6 wouldn't work, but gave it a try (and failure) anyway :)

3.18 I don't have atm, I'll continue the use of 3.10.17 for now and keep an eye open for any updates from AMD

/J

MDKDIO 10-26-2015 08:43 AM

Quote:

Originally Posted by ReaperX7 (Post 5440155)
You should be able to work the Free driver with Mesa-11.0.3 and the current X.org server and driver set.

Thank you!
I'll def try that out as well as keep the 3.10.17 as it is working OK to my needs.

Quote:

The listing given on AMD's website is from the Ubuntu/Debian methodology of package labeling. All of those should be included with Slackware as-is out-of-the-box but are labeled differently.

Because you're running an 8x00 series, you may want to use the Free driver with -Current until either a new driver is released by AMD. If you need help setting it up, and it should work without issue, let us know. Also, you may wish to grab SlackBuilds.org packages "driconf" and "libtxc_dxtn" to round out support vectors if you use games and give you a configuration tool.

The only benefit of anything newer would be a newer kernel, like the 4.2 series, to test if you have any timing and fan control issues, otherwise 4.1.6 is fine.
Thank you very much!
I'll def look into that :)

/J

ahc_fan 10-26-2015 09:23 AM

I'm in the same boat as the OP. I would be content with using the open-source radeon driver if only I didn't get massive screen tearing with it. CCC has an option that eliminates screen tearing.

1337_powerslacker 10-26-2015 09:32 AM

Quote:

Originally Posted by MDKDIO (Post 5440071)
Recently "upgraded" to current, after I had to reinstall slackware 14.1 due to new hardware.

With 3.10.17 kernel, I had no problem with installing AMD Catalyst 15.9
But with 4.1.6 it won't work.

Quote:

Originally Posted by Sylvester Ink (Post 5440136)
FYI, the Catalyst drivers currently do NOT support Linux 4.x. They support up to 3.19. When I switched to current, it was at 3.18, so when Pat upgraded current to 4.1, I had to set 3.18 as my default kernel. Some distros, like Ubuntu, have their own custom build of Catalyst that will work on Linux 4.x, but from what I gather, they aren't totally stable, and don't perform quite up to par. The expectation is that AMD should be releasing a new Catalyst version for Linux 4.x soon, since a lot of big distros have put out releases with that kernel version.

In the meantime, I suggest you roll back to 3.18, if possible.

It is possible to get the 15.9 Catalyst driver to work even with the latest kernel (and yes, I do mean latest; as I write, my system is running the 4.2.4 kernel with patched Catalyst driver). I am a bit cramped for time, so if the OP is interested, I am willing to post the procedure.

Regards,

Matt

ahc_fan 10-26-2015 09:54 AM

Quote:

Originally Posted by mattallmill (Post 5440451)
It is possible to get the 15.9 Catalyst driver to work even with the latest kernel (and yes, I do mean latest; as I write, my system is running a patched 4.2.4 kernel with patched Catalyst driver). I am a bit cramped for time, so if the OP is interested, I am willing to post the procedure.

Regards,

Matt

Not trying to hijack this thread, but I would certainly like to know.

ReaperX7 10-26-2015 12:00 PM

Quote:

Originally Posted by ahc_fan (Post 5440449)
I'm in the same boat as the OP. I would be content with using the open-source radeon driver if only I didn't get massive screen tearing with it. CCC has an option that eliminates screen tearing.

Did you try driconf and enable vertical sync to lock the refresh rate at 60Hz (or whatever your monitor supports)?

1337_powerslacker 10-26-2015 12:06 PM

1 Attachment(s)
Quote:

Originally Posted by ahc_fan (Post 5440460)
Not trying to hijack this thread, but I would certainly like to know.

WARNING: Please read the post in total before following the steps outlined herein! This will save much grief & heartache.

Download the attached patches-4.2.tar.gz.txt, and remove the .txt extension and untar it as follows:

Code:

mv patches-4.2.tar.gz.txt patches-4.2.tar.gz
tar xf patches-4.2.tar.gz

If you don't already have it, download the AMD Catalyst driver from AMD's website. I'd post the link here, but AMD likes you to download the file directly from their site. Just Google for 'AMD Catalyst linux driver', and follow the most appropriate link.

You want to extract the contents of the .run file after unzipping it:

Code:


unzip <name of zip file>.zip
./AMD-Catalyst-15.9-Linux-installer-15.201.1151-x86.x86_64.run --extract catalyst
cd catalyst

Patch the Catalyst source as follows:

Code:

for i in ../patches-4.2/*.patch; do patch -p1 < $i; done
This assumes you have the catalyst/ & patches-4.2/ subdirectories in the same parent directory; it will patch the source file (firegl_public.c) to accept the changes in 4.2.x.

If you haven't already, soft-link the version.h file in the kernel sources directory, as follows:

Code:

ln -s /usr/src/linux-4.2.4/include/generated/uapi/linux/version.h /usr/src/linux-4.2.4/include/linux/version.h
The ATI installer looks for the file in that directory, if you wanted to know.

Run the following command:

Code:

./ati-installer.sh 15.201 --install
The installer will then proceed with installation. You should have no errors. Then, run the aticonfig command to generate your xorg.conf file. For example, I have a multi-card configuration. My command is:

Code:

aticonfig --initial --heads=3 --adapter=all
Then reboot:

Code:

shutdown -r now
You should be golden.

NOTE! I missed some steps, but for completeness' sake, I urge you to be in console mode for this procedure. When LILO comes up, hit the <TAB> key, and enter the label of your kernel, plus 3. Mine is:

Code:

Slacker 3
Also, make sure that you remove the previous Catalyst driver (after booting into console mode!), if you had it installed, like so:

Code:

aticonfig --uninstall
Let me know if you need additional assistance.

Regards,

Matt


All times are GMT -5. The time now is 11:00 AM.