ATI catalyst 13.12 Linux mint 16: DKMS failed [Solved]

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
RageRiot

ATI catalyst 13.12 Linux mint 16: DKMS failed [Solved]

Post by RageRiot »

The latest proprietory driver was relased by AMD on the 19th Dec 2013

http://support.amd.com/en-us/download/d ... x%20x86_64

Release Note

Fresh linux mint 16, fully uptodate.

I've ran the installer and the console outputs

Code: Select all

=====================================================================
 AMD Catalyst(TM) Proprietary Driver Installer/Packager 
=====================================================================
Detected configuration:
Architecture: x86_64 (64-bit)
X Server: X.Org 6.9 or later 64-bit
loki_setup: directory: (null)
DKMS part of installation failed.  Please refer to /usr/share/ati/fglrx-install.log for details

fglrx-install.log

Code: Select all

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

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

DKMS: add completed.

Kernel preparation unnecessary for this kernel.  Skipping...

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

------------------------------
Deleting module version: 13.251
completely from the DKMS tree.
------------------------------
Done.
[Reboot] Kernel Module : update-initramfs

Any ideas? is this a kernel incompatabiltiy?
Still new to linux but I'm more of a power user when it comes to technology so I generally want to try stuff out early.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
RageRiot

Re: ATI catalyst 13.12 Linux mint 16: DKMS failed

Post by RageRiot »

I found a Solution on this thread

http://phoronix.com/forums/showthread.p ... post381954

It involves patching a File BUT, I couldnt proceed with the 2nd part of the instructions because the package/script does not have the neccesary files for Ubuntu/Saucy which i beleive Mint 16 is based on.

I carried on reading anyway and came to Post #46
just download and install the following packages.
  • Code: Select all

    [ ]	fglrx-updates_13.125-0ubuntu1_amd64.deb	19-Dec-2013 17:03 	59M
    [ ]	fglrx-amdcccle-updates_13.125-0ubuntu1_amd64.deb	19-Dec-2013 17:03 	4.8M
    [ ]	fglrx-updates-dev_13.125-0ubuntu1_amd64.deb	19-Dec-2013 17:03 	46K
Hvilsted

Post by Hvilsted »

This is maybe a solution to my problems with my HD 6870 and Catalyst. I also get an error when installing Catalyst.

Please tell me, do you experience that when on boot, the system will halt for like a minute, showing a TTY1 login screen - and then continue loading and logging into MATE/Cinnamon?

Sent from my C6603 using Tapatalk 4
RageRiot

Re: ATI catalyst 13.12 Linux mint 16: DKMS failed [Solved]

Post by RageRiot »

well when i got this error it seemed to continute installing the AMD/ATI files but the kernel module failed to build and latch if that make any sense. so it didnt disrupt my system, I just needed to force ininstall which I think is called from

Code: Select all

 /usr/share/ati/ 
Xenanthropy

Re: ATI catalyst 13.12 Linux mint 16: DKMS failed [Solved]

Post by Xenanthropy »

I don't mean to raise a finished thread, but I was also having the same problems, Linux Mint 16 64 bit install, and there is no Ubuntu/saucy source in the amd driver list once you've uncompiled them. I could patch them, but like you, could not build the packages. Could anyone shed some light as to why you can build the packages for saucy on the 13.11 beta amd drivers, but not on the (not-beta) 13.12 drivers? I have an integrated APU, btw, so not a dedicated graphics card, but it's new technology so I know it's supported.

Oh and also, OP, you were able to install those packages? I tried, but couldn't. Well, they installed, but there were some hidden errors (didn't know until I installed them with the command line, but there were some errors that may or may not have effected it) Either way, once I installed it, i tried to do the whole "sudo aticonfig --initial" thing, and it wasn't generating a xorg.conf for some reason, and therefore when I rebooted my computer, i always had the "x.server isn't working here's a command-line blahblahblah" thing. I then tried installing the packages and not doing the aticonfig command, and I still had the same problem. In both instances, i installed the packages but con't get the xorg.conf files to generate, therefore not being able to run the 13.12 update. both times, i had to just install the 13.11 beta drivers from the command line and (after doing the aticonfig with those drivers) I could safely reboot into x.server. I'm at a loss here. I don't really need to update to the 13.12 drivers I suppose, but it'd be nice to. Any help would be appreciated.
Shillshocked

Re: ATI catalyst 13.12 Linux mint 16: DKMS failed [Solved]

Post by Shillshocked »

After quite a few hours I got it to install. I gleaned a bunch of tips from various sites.

I'm not sure which are unnecessary, but I did all these:

Prep linux headers and source (not sure if needed):

Code: Select all

sudo apt-get install linux-source
sudo apt-get install linux-headers-generic
sudo apt-get install linux-headers-$(uname -r)
Install the prerequisite packages:

Code: Select all

sudo apt-get install build-essential cdbs dh-make dkms execstack dh-modaliases fakeroot libqtgui4
If you are using the x86_64 architecture (64 bit):

Code: Select all

sudo apt-get install ia32-libs
sudo apt-get install lib32gcc1
Run each of these, one at the time, if getting any faults ignore it:

Code: Select all

sudo sh /usr/share/ati/fglrx-uninstall.sh
sudo apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev*
Make a backup of your xorg.conf:

Code: Select all

sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.orig
Remove your xorg.conf file:

Code: Select all

sudo rm /etc/X11/xorg.conf
Re-install xorg:

Code: Select all

sudo apt-get install --reinstall libgl1-mesa-glx:i386 libgl1-mesa-glx:amd64 libgl1-mesa-dri:i386 libgl1-mesa-dri:amd64 xserver-xorg-core
Configure xorg:

Code: Select all

sudo dpkg-reconfigure xserver-xorg
Reboot:

Code: Select all

sudo reboot
Download the latest Catalyst package (this package contains both the 32-bit and 64-bit driver):

Code: Select all

mkdir catalyst13.12 && cd catalyst13.12
wget --referer='http://support.amd.com/en-us/download/desktop?os=Linux+x86' http://www2.ati.com/drivers/linux/amd-catalyst-13.12-linux-x86.x86_64.zip
unzip amd-catalyst-13.12-linux-x86.x86_64.zip
Extract it and you will get amd-catalyst-13.12-linux-x86.x86_64.run:

Code: Select all

chmod +x amd-catalyst-13.12-linux-x86.x86_64.run
./amd-catalyst-13.12-linux-x86.x86_64.run --extract catalyst
cd catalyst
Apply the patch manually:

At the end of the file catalyst/common/lib/modules/fglrx/build_mod/kcl_acpi.c, starting with line 990, there is:

Code: Select all

#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,3)    
    if (!ACPI_SUCCESS(acpi_get_table_with_size(id, 0, &hdr, &tbl_size)))
#else
    tbl_size = 0x7fffffff;
    if (!ACPI_SUCCESS(acpi_get_table(id, 0, &hdr)))
...
Delete everything to the end of the file and replace with this:

Code: Select all

#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,3)    
    if (!ACPI_SUCCESS(acpi_get_table_with_size(id, 0, &hdr, &tbl_size)))
#else
    tbl_size = 0x7fffffff;
    if (!ACPI_SUCCESS(acpi_get_table(id, 0, &hdr)))
#endif
    {
        return KCL_ACPI_ERROR;
    }
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,9,1)
    ((acpi_tbl_table_handler)handler)(hdr);
#else
    ((acpi_table_handler)handler)(hdr);
#endif
    return KCL_ACPI_OK;
}
Make it work for Mint (generate debs doesn't work for Mint unfortunately):

Code: Select all

sudo ./ati-installer.sh 13.251 --install
Generate new xorg.conf file:

Code: Select all

sudo amdconfig --initial -f
If you are using multiple AMD graphics cards or AMD dual graphics (i.e.: notebook users), use:

Code: Select all

sudo amdconfig --adapter=all --initial
If you have a dual monitor display (also known as "Big Desktop"), use:

Code: Select all

sudo amdconfig --initial -f
sudo amdconfig --set-pcs-str="DDX,EnableRandR12,FALSE"
Force use of the new xorg.conf:

Code: Select all

sudo amdconfig --input=/etc/X11/xorg.conf --tls=1
Reboot:

Code: Select all

sudo reboot
Run the following commands to confim your new settings:

Code: Select all

fglrxinfo
and:

Code: Select all

fgl_glxgears
Relogin and try the following command to see your Graphics card status:

Code: Select all

sudo lshw -C display
To open amdcccle, run this:

Code: Select all

sudo /usr/lib/fglrx/bin/amdcccle
The beta driver doesn't require the patch and works similarily.
Shillshocked

Re: ATI catalyst 13.12 Linux mint 16: DKMS failed [Solved]

Post by Shillshocked »

On a further attempt I was able to get it to build packages and installed it that way using the beta driver. Safer, I suppose.
http://wiki.cchtml.com/index.php/Ubuntu ... packages_2

Also, another tip - if you have two cards on your system (ie. one on the motherboard) make sure that you try installing the driver only after you set the BIOS option to boot with that card.
Last edited by Shillshocked on Sat Jan 25, 2014 4:36 am, edited 1 time in total.
learningcurve

Re: ATI catalyst 13.12 Linux mint 16: DKMS failed [Solved]

Post by learningcurve »

Hi there. I too have been searching the internet trying to figure out how to get a driver to work with my AMD8 Radeon hd 8510g card. I know that the latest amd 13.12 catalyst covers that card. And i followed your code with alot of success! However when i enter the "cd catalyst" line from "~/catalyst13.12 $" is just returns with another ready line saying "~/catalyst13.12/catalyst $" Now forgive me if this makes me sound like a total noob. But it seemed like something more should pop up so i could run the patch...? Well any help is apreceated!
Shillshocked

Re: ATI catalyst 13.12 Linux mint 16: DKMS failed [Solved]

Post by Shillshocked »

learningcurve wrote:Hi there. I too have been searching the internet trying to figure out how to get a driver to work with my AMD8 Radeon hd 8510g card. I know that the latest amd 13.12 catalyst covers that card. And i followed your code with alot of success! However when i enter the "cd catalyst" line from "~/catalyst13.12 $" is just returns with another ready line saying "~/catalyst13.12/catalyst $" Now forgive me if this makes me sound like a total noob. But it seemed like something more should pop up so i could run the patch...? Well any help is apreceated!
Yes, that's the right command. Now continue on to the next step.
NMSM

Re: ATI catalyst 13.12 Linux mint 16: DKMS failed [Solved]

Post by NMSM »

Just to let everybody know, that, if you follow all the steps described above, it will work on your Linux Mint 16, as it did in mine.

Well done, and thanks for all
crazyclown

Re: ATI catalyst 13.12 Linux mint 16: DKMS failed [Solved]

Post by crazyclown »

Thank you Shillshocked
I had to install under compatibility mode as the desktop was just a pixelated mess only thing that would show was the bottom panel. As soon as I booted the same thing only bottom panel showed screen with pixelated lines threw it even open widows could not see a thing.

I was looking for ages as I needed a way to install the drivers without GUI so could not download them from the site had to be with wget but tryed direct wget url and it didnt work (Well downloaded 4.5mb of it then stopped)

Your guide saved me so much thank you so much I can now use the pc :D
Eltanin

Re: ATI catalyst 13.12 Linux mint 16: DKMS failed [Solved]

Post by Eltanin »

The guide from Shillshocked has been very helpful, thank you! However, I am still stuck, sadly.

I'm running Mint 16 64-bit which may be part of my challenge, I don't know. I got stuck with errors about libGL.so.1 when I tried "amdconfig --initial -f". To resolve this I ended up created a symlink (which also forces the use of 64-bit):

Code: Select all

sudo ln -s /usr/lib64 /lib/x86_64-linux-gnu/tls/x86_64
I determined the target location by digging through strace output for amdconfig.

So now I don't get any additional error messages, but when I run fglrxinfo, there is no indication that it's actually using xorg.conf:

Code: Select all

display: :0.0 screen: 0
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: Gallium 0.r on llvmpipe (LLVM 3.3, 256 bits)
OpenGL version string: 1.4 (2.1 Mesa 9.2.1)
Incidentally, I had VMware Workstation installed here, though I'm running Mint as the host. In a fit of frustrated troubleshooting, I uninstalled VMware Workstation just to see if it would help (it didn't, unsurprisingly).

I also looked in /var/log/Xorg.0.log and found these references to fglrx:

Code: Select all

LoadModule: "fglrx"
Warning, couldn't open module fglrx
UnloadModule: "fglrx"
Unloading fglrx
Failed to load module "fglrx" (module does not exist, 0)
Matched fglrx as autoconfigured driver 0
Matched ati as autoconfigured driver 1
Matched vesa as autoconfigured driver 2
Matched modesetting as autoconfigured driver 3
Matched fbdev as autoconfigured driver 4
Assigned the driver to the xf86ConfigLayout
LoadModule: "fglrx"
Warning, couldn't open module fglrx
UnloadModule: "fglrx"
Unloading fglrx
Failed to load module "fglrx" (module does not exist, 0)
Does anyone have any suggestions for what might be going wrong here? I've strayed from the path somehow. Any insights would be very much appreciated.
3KyNoX

Re: ATI catalyst 13.12 Linux mint 16: DKMS failed [Solved]

Post by 3KyNoX »

Hello guys,

I followed exact way posted by Shillshocked and still got DKMS error (after having changed kcl_acpi.c) and did finalized last commands about xorg.conf and xorg won't start after reboot, I returned then to original configuration and unable to get AMD Catalyst drivers working then...
Locked

Return to “Graphics Cards & Monitors”