compiling fglrx driver for Firepro and Leap 42.1

I’m trying to compile the driver
fglrx-14.502.1040 for my firepro V3900 and Leap 42.1

I installed kernel sources and everything (as usual).

But I get an error message:
fglrx installation requires that the system have kernel headers. /lib/modules/4.1.12-1-default/build/include/linux/version.h cannot be found on this system.

And in fact, linux/version.h is missing!

What package is missing?

Thanks,
v

On Sun, 22 Nov 2015 09:16:01 +0000, vincentmm wrote:

> I’m trying to compile the driver fglrx-14.502.1040 for my firepro V3900
> and Leap 42.1
>
> I installed kernel sources and everything (as usual).
>
> But I get an error message:
> fglrx installation requires that the system have kernel headers.
> /lib/modules/4.1.12-1-default/build/include/linux/version.h cannot be
> found on this system.
>
> And in fact, linux/version.h is missing!
>
> What package is missing?
>
> Thanks,
> v

Define “and everything” more precisely.

Generally, you need the kernel-devel package, IIRC.

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

Same here. :frowning:

I installed kernel-devel, kernel-sources, kernel-sysm, kernel-macros. I see a version.h in

/usr/src/linux-4.1.12-1-obj/x86_64/default/include/generated/uapi/linux/

but not in the place expected by the amd drivers installer (that is /lib/modules/4.1.12-1-default/build/include/linux).

I am not really sure on how to proceed, maybe some sim-linking might do the trick, but if someone has hints they would be really appreciated.

Thanks

On Tue, 24 Nov 2015 10:16:01 +0000, KhaosLiege wrote:

> Same here. :frowning:
>
> I installed kernel-devel, kernel-sources, kernel-sysm, kernel-macros. I
> see a version.h in
>
> /usr/src/linux-4.1.12-1-obj/x86_64/default/include/generated/uapi/linux/
>
> but not in the place expected by the amd drivers installer (that is
> /lib/modules/4.1.12-1-default/build/include/linux).
>
> I am not really sure on how to proceed, maybe some sim-linking might do
> the trick, but if someone has hints they would be really appreciated.
>
> Thanks

It’s possible with the kernel sources installed that you could do a “make
cloneconfig” in the kernel source tree and that would work. If you’ve
got kernel-devel installed (and it’s the correct version - should be, but
worth checking), that should be sufficient, but a cloneconfig should
give you a kernel tree that has everything where it needs to be for
kernel modules to build.

Jim

Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

On Tue, 24 Nov 2015 15:17:49 +0000, Jim Henderson wrote:

> On Tue, 24 Nov 2015 10:16:01 +0000, KhaosLiege wrote:
>
>> Same here. :frowning:
>>
>> I installed kernel-devel, kernel-sources, kernel-sysm, kernel-macros. I
>> see a version.h in
>>
>> /usr/src/linux-4.1.12-1-obj/x86_64/default/include/generated/uapi/
linux/
>>
>> but not in the place expected by the amd drivers installer (that is
>> /lib/modules/4.1.12-1-default/build/include/linux).
>>
>> I am not really sure on how to proceed, maybe some sim-linking might do
>> the trick, but if someone has hints they would be really appreciated.
>>
>> Thanks
>
> It’s possible with the kernel sources installed that you could do a
> “make cloneconfig” in the kernel source tree and that would work. If
> you’ve got kernel-devel installed (and it’s the correct version - should
> be, but worth checking), that should be sufficient, but a cloneconfig
> should give you a kernel tree that has everything where it needs to be
> for kernel modules to build.
>
> Jim

Additionally, this might be of use:

https://www.sebastian-siebert.de/2015/09/27/opensuse-proprietaeren-grafik-
treiber-amd-catalyst-15-9-als-rpm-installieren/

(There’s an update on this page regarding installing on Leap).

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

Thanks for the pointers! That “make cloneconfig” stuff looks a bit scary to a guy that just wanted to compile his driver :wink: but in case I succeed I will let you know here.

Thanks.

I’ve installed kernel-sources, kernel-sysm, kernel-macros, dkms, gcc, make…
How do I make a “make cloneconfig”?

I’read there is some bugs with Catalyst Pro 14.502.1040 driver and xorg 1.17
https://bugs.launchpad.net/ubuntu/+source/fglrx-installer-updates/+bug/1450089/comments/11

Did somebody install successfully install the Catalyst Pro 14.502.1040 driver on leap 42.1?

I’m talking about catalyst pro and not amd-catalyst-15-9.

Thanks for help,

v

On Wed, 25 Nov 2015 10:26:02 +0000, vincentmm wrote:

> I’ve installed kernel-sources, kernel-sysm, kernel-macros, dkms, gcc,
> make…
> How do I make a “make cloneconfig”?
>
> I’read there is some bugs with Catalyst Pro 14.502.1040 driver and xorg
> 1.17 http://tinyurl.com/q6dnsyo
>
> Did somebody install successfully install the Catalyst Pro 14.502.1040
> driver on leap 42.1?
>
> I’m talking about catalyst pro and not amd-catalyst-15-9.
>
> Thanks for help,
>
> v

From a terminal prompt:


su -
cd /usr/src/linux
make cloneconfig

What this does is create a kernel configuration that matches the running
kernel - which sets things up for being able to compile modules.

It shouldn’t be necessary, but I haven’t tried installing this driver
on Leap (I may have a chance to upgrade my system that uses that driver
this weekend).

Jim

Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

Ok, thanks. I’ve tried:
linux-e6f9:~ # cd /usr/src/linux
linux-e6f9:/usr/src/linux # make cloneconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
Cloning configuration file /proc/config.gz

configuration written to .config

but
/lib/modules/4.1.12-1-default/build/include/linux/version.h
is still missing.
Am I doing something wrong?
v

Doing it as root or user? should be user until you come to the install

On Wed, 25 Nov 2015 18:16:01 +0000, gogalthorp wrote:

> Doing it as root or user? should be user until you come to the install

The kernel side (the make cloneconfig) IIRC needs to be done as root, but
yes, the fglrx driver installation should be done as the user.

I’m going to probably run through this over the weekend, if I have time
to upgrade my main system.

Also, Vincent, are you using the script from Sebastien’s site (which I
linked earlier in the thread)?

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

Thanks for the help.

I run make cloneconfig as root.

I run amd-driver-installer-14.502.1040-x86.x86_64.run as root (sudo), because if I don’t, the installer aks me to do so.

I don’t think that sebastian Siebert’s script for fglrx 15.201.1151 will help, I’m not installing the ati radeon driver, but the catalyst pro for a firepro V3900 card.

v

On Wed, 25 Nov 2015 21:16:01 +0000, vincentmm wrote:

> Thanks for the help.
>
> I run make cloneconfig as root.
>
> I run amd-driver-installer-14.502.1040-x86.x86_64.run as root (sudo),
> because if I don’t, the installer aks me to do so.
>
> I don’t think that sebastian Siebert’s script for fglrx 15.201.1151 will
> help, I’m not installing the ati radeon driver, but the catalyst pro for
> a firepro V3900 card.

Sebastien’s script is for the fglrx driver not the open source radeon
driver. His script should handle this AFAIK.

Jim

Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

You are right Sebastian wrote a script
AMD FirePro and FireMV Unified Driver (fglrx 13.251.1)
https://www.sebastian-siebert.de/2014/03/21/opensuse-proprietaeren-grafik-treiber-amd-firepro-and-firemv-unified-driver-13-251-1-als-rpm-installieren/
But it does not include Leap 4.21.

I’m ok to try to compile it myself, but I don’t know how to fix the missing
/lib/modules/4.1.12-1-default/build/include/linux/version.h

If you have any idea, I take it.
Thanks,
v

On Mon, 30 Nov 2015 10:06:03 +0000, vincentmm wrote:

> You are right Sebastian wrote a script AMD FirePro and FireMV Unified
> Driver (fglrx 13.251.1) http://tinyurl.com/zcjmcms But it does not
> include Leap 4.21.
>
> I’m ok to try to compile it myself, but I don’t know how to fix the
> missing /lib/modules/4.1.12-1-default/build/include/linux/version.h
>
> If you have any idea, I take it.
> Thanks,
> v

His post at https://www.sebastian-siebert.de/2015/09/27/opensuse-
proprietaeren-grafik-treiber-amd-catalyst-15-9-als-rpm-installieren/ has
an update that says it is supported on 42.1 - updated as of 11-Sept-2015.

Unless I’m missing something at this crazy hour of the morning (for me -
which is entirely possible)

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

On Tue, 01 Dec 2015 14:53:42 +0000, Jim Henderson wrote:

> updated as of 11-Sept-2015.
>
> Unless I’m missing something at this crazy hour of the morning (for me -
> which is entirely possible)

Heh, such as that it’s not 11-Sept-2015, but 9-Nov-2015. :slight_smile:

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

There are two amd drivers for two types of cards.
Catalyst
AMD-Catalyst-15.9-Linux-installer-15.201.1151-x86.x86_64
for common cards (gaming)

Catalyst Pro
amd-driver-installer-14.502.1040-x86.x86_64.sh
for firepro cards

I can compile catalyst with no problem but is useless for me.

Sebastian wrote two different scripts for these two drivers.

Catalyst does not work with firepro cards.

My system is for the moment unstable with plasma and color management is not possible.

I’m ready to make any test to get it to work.

If you have any idea how to solve this missing file problem, I’ll do it immediatly.

Thanks.
v

I tried to make a link
from /lib/modules/4.1.12-1-default/build/include/generated/uapi/
to
/lib/modules/4.1.12-1-default/build/include/linux/

so that the installer started to compile.
But it finally failed

The install log is below.

After reboot, I had a black screen. I edit grub to start with init3, but it failed too.
I wanted to reboot with a snapshot (snapper) but it didn’t work.
Finally, I was able to connect from another computer with ssh and uninstall fglrx.

So I don’t know if the link was a bad idea or if there is something wrong with the driver.

v
Supported adapter detected.
Check if system has the tools required for installation.
Uninstalling any previously installed drivers.

Creating symlink /var/lib/dkms/fglrx/15.201.2401/source ->
/usr/src/fglrx-15.201.2401

DKMS: add completed.

Kernel preparation unnecessary for this kernel. Skipping…

Building module:
cleaning build area…
cd /var/lib/dkms/fglrx/15.201.2401/build; sh make.sh --nohints --uname_r=4.1.12-1-default --norootcheck…(bad exit status: 1)
[Error] Kernel Module : Failed to build fglrx-15.201.2401 with DKMS
[Error] Kernel Module : Removing fglrx-15.201.2401 from DKMS


Deleting module version: 15.201.2401
completely from the DKMS tree.

Done.
[Reboot] Kernel Module : dracut

On Thu, 03 Dec 2015 09:56:01 +0000, vincentmm wrote:

> There are two amd drivers for two types of cards.
> Catalyst AMD-Catalyst-15.9-Linux-installer-15.201.1151-x86.x86_64 for
> common cards (gaming)
>
> Catalyst Pro amd-driver-installer-14.502.1040-x86.x86_64.sh for firepro
> cards
>
> I can compile catalyst with no problem but is useless for me.
>
> Sebastian wrote two different scripts for these two drivers.
>
> Catalyst does not work with firepro cards.
>
> My system is for the moment unstable with plasma and color management is
> not possible.
>
> I’m ready to make any test to get it to work.
>
> If you have any idea how to solve this missing file problem, I’ll do it
> immediatly.
>
> Thanks.
> v

I’m out of ideas here myself - hopefully someone else will jump in.

You might also ask Sebastien directly if he has any ideas.

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

I think the firepro series of cards has been a problem for the Linux drivers for some time.:’(