SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2013-12-20 07:25:37

M.I.H.H
#! Member
From: /etc/init.d/
Registered: 2012-11-01
Posts: 72
Website

[Solved] Failed Installing New AMD_Catalyst-13.12 Driver

######### Solved: check post #14  ###############

hello guys.

today i've downloaded new AMD Catalyst driver, and when the installation process, an error message appears "there were errors during installationsad  here is step for the installation of me:
**sudo update && sudo upgrade done, reboot.

1. uninstall AMD Catalyst old driver (AMD_Catalyst-13.4):

$ sudo sh /usr/share/ati/amd-uninstall.sh
restore of system environment completed
done

(without errors)

2. reboot
3. install new driver

$ sudo sh amd-catalyst-13.12-linux-x86.x86_64.run

installation process error:
Screenshot_12202013_01_30_39_PM.jpg
here is the fglrx-install.log:

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.2.0-4-686-pae --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

4. reboot, then i can't login to startx  sad
5. so i uninstall the new driver, an message error appears:

$ sudo sh /usr/share/ati/amd-uninstall.sh
restore of system environment completed
Error! there are no instances of module: fglrx
13.251 locate in the DKMS tree
Error during DKMS module removal
Uninstall fglrx driver complete
for detailed log of uninstall, please see /etc/ati/fglrx-uninstall.log
System must be rebooted to avoid system instability and potential data loss.

here is the fglrx-uninstall.log:

*** AMD Catalyst(TM) Proprietary Driver Uninstall Log 2013-12-20 13:34:43 ***
Removed /usr/share/applications/amdcccle.desktop
Removed /usr/share/applications/amdccclesu.desktop
Removed /usr/share/icons/ccc_large.xpm
Removed /usr/share/ati/amdcccle/amdcccle_cs.qm
Removed /usr/share/ati/amdcccle/amdcccle_da_DK.qm
Removed /usr/share/ati/amdcccle/amdcccle_de.qm
Removed /usr/share/ati/amdcccle/amdcccle_el_GR.qm
Removed /usr/share/ati/amdcccle/amdcccle_es_ES.qm
Removed /usr/share/ati/amdcccle/amdcccle_fi_FI.qm
Removed /usr/share/ati/amdcccle/amdcccle_fr_FR.qm
Removed /usr/share/ati/amdcccle/amdcccle_hu_HU.qm
Removed /usr/share/ati/amdcccle/amdcccle_it_IT.qm
Removed /usr/share/ati/amdcccle/amdcccle_ja.qm
Removed /usr/share/ati/amdcccle/amdcccle_ko_KR.qm
Removed /usr/share/ati/amdcccle/amdcccle_nl_NL.qm
Removed /usr/share/ati/amdcccle/amdcccle_no.qm
Removed /usr/share/ati/amdcccle/amdcccle_pl.qm
Removed /usr/share/ati/amdcccle/amdcccle_pt_BR.qm
Removed /usr/share/ati/amdcccle/amdcccle_ru_RU.qm
Removed /usr/share/ati/amdcccle/amdcccle_sv_SE.qm
Removed /usr/share/ati/amdcccle/amdcccle_th.qm
Removed /usr/share/ati/amdcccle/amdcccle_tr_TR.qm
Removed /usr/share/ati/amdcccle/amdcccle_zh_CN.qm
Removed /usr/share/ati/amdcccle/amdcccle_zh_TW.qm
Removed /usr/share/ati/amdcccle/qt_cs.qm
Removed /usr/share/ati/amdcccle/qt_da.qm
Removed /usr/share/ati/amdcccle/qt_de.qm
Removed /usr/share/ati/amdcccle/qt_es.qm
Removed /usr/share/ati/amdcccle/qt_fr.qm
Removed /usr/share/ati/amdcccle/qt_hu.qm
Removed /usr/share/ati/amdcccle/qt_ja.qm
Removed /usr/share/ati/amdcccle/qt_ja_JP.qm
Removed /usr/share/ati/amdcccle/qt_ko.qm
Removed /usr/share/ati/amdcccle/qt_pl.qm
Removed /usr/share/ati/amdcccle/qt_pt.qm
Removed /usr/share/ati/amdcccle/qt_ru.qm
Removed /usr/share/ati/amdcccle/qt_sv.qm
Removed /usr/share/ati/amdcccle/qt_zh_CN.qm
Removed /usr/share/ati/amdcccle/qt_zh_TW.qm
Removed /usr/bin/amdcccle
Removed /usr/bin/amdxdg-su
Removed /usr/bin/amdupdaterandrconfig
Removed /usr/share/doc/ati/ccc_copyrights.txt
Removed /etc/security/console.apps/amdcccle-su
Removed /usr/share/ati/lib/libQtCore.so.4
Removed /usr/share/ati/lib/libQtGui.so.4
Removed /usr/share/doc/ati/LICENSE.TXT
Removed /usr/share/doc/ati/user-manual/AMD_Linux_Driver_Specification.pdf
Removed /usr/share/doc/ati/user-manual/index.html
Removed /usr/share/doc/ati/examples/etc/acpi/ati-powermode.sh
Removed /usr/share/doc/ati/examples/etc/acpi/events/a-ac-aticonfig
Removed /usr/share/doc/ati/examples/etc/acpi/events/a-lid-aticonfig
Removed /usr/share/doc/ati/examples/etc/init.d/atieventsd.sh
Removed /usr/share/doc/ati/articles/1gbhang.html
Removed /usr/share/doc/ati/articles/4461.html
Removed /usr/share/doc/ati/articles/4462.html
Removed /usr/share/doc/ati/articles/4463.html
Removed /usr/share/doc/ati/articles/4464.html
Removed /usr/share/doc/ati/articles/4469.html
Removed /usr/share/doc/ati/articles/4470.html
Removed /usr/share/doc/ati/articles/4475.html
Removed /usr/share/doc/ati/articles/4478.html
Removed /usr/share/doc/ati/articles/4479.html
Removed /usr/share/doc/ati/articles/4480.html
Removed /usr/share/doc/ati/articles/4481.html
Removed /usr/share/doc/ati/articles/4482.html
Removed /usr/share/doc/ati/articles/4483.html
Removed /usr/share/doc/ati/articles/4484.html
Removed /usr/share/doc/ati/articles/4485.html
Removed /usr/share/doc/ati/articles/corruptstereo.html
Removed /usr/share/doc/ati/articles/corruptvtswitch.html
Removed /usr/share/doc/ati/articles/devshm.html
Removed /usr/share/doc/ati/articles/dga3dhang.html
Removed /usr/share/doc/ati/articles/doom3corrupt.html
Removed /usr/share/doc/ati/articles/dualheadvideo.html
Removed /usr/share/doc/ati/articles/laptopsuspend.html
Removed /usr/share/doc/ati/articles/missingdrmheaders.html
Removed /usr/share/doc/ati/articles/mousecursorhang.html
Removed /usr/share/doc/ati/articles/no3d-aiw8500dv.html
Removed /usr/share/doc/ati/articles/no3d-kt400.html
Removed /usr/share/doc/ati/articles/nomembercount.html
Removed /usr/share/doc/ati/articles/pcie3dmemoryleak.html
Removed /usr/share/doc/ati/articles/r420blankdisplay.html
Removed /usr/share/doc/ati/articles/rv280dviblankdisplay.html
Removed /usr/share/doc/ati/articles/rv350springdale.html
Removed /usr/share/doc/ati/articles/secondheadcorruption.html
Removed /usr/share/doc/ati/articles/xf86_enodev.html
Removed /usr/share/doc/ati/articles/xrestartpcie.html
Removed /usr/share/doc/ati/articles/xvsatshift.html
Removed /usr/share/doc/ati/configure.html
Removed /usr/share/doc/ati/driverfaq.html
Removed /usr/share/doc/ati/index.html
Removed /usr/share/doc/ati/installer.html
Removed /usr/share/doc/ati/issues.html
Removed /usr/share/doc/ati/linuxfaq.html
Removed /usr/share/doc/ati/tips-linux.html
Removed /usr/share/man/man8/atieventsd.8
Removed /usr/lib/xorg/modules/linux/libfglrxdrm.so
Removed /usr/lib/xorg/modules/drivers/fglrx_drv.so
Removed /usr/lib/xorg/modules/glesx.so
Removed /usr/lib/xorg/modules/amdxmm.so
Removed /usr/lib/libAMDXvBA.cap
Removed /usr/lib/libAMDXvBA.so.1.0
Removed /usr/lib/libOpenCL.so.1
Removed /usr/lib/libXvBAW.so.1.0
Removed /usr/lib/libamdocl32.so
Removed /usr/lib/libatiadlxx.so
Removed /usr/lib/libaticalcl.so
Removed /usr/lib/libaticaldd.so
Removed /usr/lib/libaticalrt.so
Removed /usr/lib/libatiuki.so.1.0
Removed /usr/lib/libfglrx_dm.a
Removed /usr/lib/libfglrx_dm.so.1.0
Removed /usr/lib/fglrx/fglrx-libGL.so.1.2
Removed /usr/lib/fglrx/switchlibGL
Removed /usr/lib/fglrx/switchlibglx
Removed /usr/lib/i386-linux-gnu/dri/fglrx_dri.so
Removed /usr/lib/xorg/modules/extensions/fglrx/fglrx-libglx.so
Removed /usr/include/GL/glATI.h
Removed /usr/include/GL/glxATI.h
Removed /usr/include/ATI/GL/glx.h
Removed /usr/include/ATI/GL/glxext.h
Removed /usr/bin/fgl_glxgears
Removed /usr/bin/fglrxinfo
Removed /usr/bin/aticonfig
Removed /usr/bin/atiodcli
Removed /usr/bin/atiode
Removed /usr/bin/clinfo
Removed /usr/src/ati/fglrx_sample_source.tgz
Removed /usr/sbin/amdnotifyui
Removed /usr/sbin/atieventsd
Removed /usr/sbin/atigetsysteminfo.sh
Removed /etc/ati/amdpcsdb.default
Removed /etc/ati/atiapfxx
Removed /etc/ati/atiapfxx.blb
Removed /etc/ati/atiapfxx.log
Removed /etc/ati/atiogl.xml
Removed /etc/ati/authatieventsd.sh
Removed /etc/ati/control
Removed /etc/ati/logo.xbm.example
Removed /etc/ati/logo_mask.xbm.example
Removed /etc/ati/signature
Removed /etc/OpenCL/vendors/amdocl32.icd
/usr/bin/md5sum: /usr/X11R6/lib/modules/dri/fglrx_dri.so: No such file or directory
/usr/bin/md5sum: /usr/bin/amdconfig: No such file or directory
Removed /etc/modprobe.d/blacklist-fglrx.conf

6. then i reboot, login as usual without amd driver  sad
i've tried install old driver again (AMD_Catalyst-13.4) and nothing happens, the installation process successful, and the driver working well. Anyone get same problem like me  ? any suggestions guys ?

Last edited by M.I.H.H (2014-01-24 13:32:08)


i will continue to seek knowledge.


selling vpn, tutorials.

Offline

Be excellent to each other!

#2 2013-12-20 08:52:29

paxmark1
#! CrunchBanger
From: Winnipeg, MB Canada
Registered: 2009-07-08
Posts: 169

Re: [Solved] Failed Installing New AMD_Catalyst-13.12 Driver

I used to use this site until I went with the open source driver.  This page last updated Nov 13. 

http://wiki.cchtml.com/index.php/Debian


Jean Vanier wrote "Being Human" and "A Short History of Progress" by Ronald Wright.  Gotta love the Massey Lectures.

Offline

#3 2013-12-20 12:19:36

M.I.H.H
#! Member
From: /etc/init.d/
Registered: 2012-11-01
Posts: 72
Website

Re: [Solved] Failed Installing New AMD_Catalyst-13.12 Driver

paxmark1 wrote:

I used to use this site until I went with the open source driver.  This page last updated Nov 13. 

http://wiki.cchtml.com/index.php/Debian

i was following the guide, but still not working, same result, still error sad

Last edited by M.I.H.H (2013-12-21 03:46:50)


i will continue to seek knowledge.


selling vpn, tutorials.

Offline

#4 2013-12-21 13:12:25

M.I.H.H
#! Member
From: /etc/init.d/
Registered: 2012-11-01
Posts: 72
Website

Re: [Solved] Failed Installing New AMD_Catalyst-13.12 Driver

i've found this: http://phoronix.com/forums/showthread.p … ased/page4 then i'm trying the guide, but still not working  sad  here is the steps:

1. download this http://archive.ubuntu.com/ubuntu/pool/r … ian.tar.gz Have a look in "/debian/dkms/patches/", especially "replace_acpi_table_handler.patch".
2. create file looks_like_amd_forgot_this.patch:

--- 13.12/common/lib/modules/fglrx/build_mod/kcl_acpi.c	2013-12-17 20:05:35.000000000 +0100
+++ 13.12/common/lib/modules/fglrx/build_mod/kcl_acpi.c	2013-12-19 18:40:18.386568588 +0100
@@ -995,7 +995,11 @@
 #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;
-}
+}
\ No newline at end of file

3. ./amd-catalyst-13.12-linux-x86.x86_64.run --extract catalyst
4. Apply the patch:

$ patch -Np1 -i ./looks_like_amd_forgot_this.patch

File to patch: /home/bii/downloads/amd/catalyst/ati-installer.sh
patching file /home/bii/downloads/amd/catalyst/ati-installer.sh
Hunk #1 FAILED at 995.
1 out of 1 hunk FAILED -- saving rejects to file /home/bii/downloads/amd/catalyst/ati-installer.sh.rej

here is rejected part (ati-installer.sh.rej):

    --- common/lib/modules/fglrx/build_mod/kcl_acpi.c	2013-12-17 20:05:35.000000000 +0100
    +++ common/lib/modules/fglrx/build_mod/kcl_acpi.c	2013-12-19 18:40:18.386568588 +0100
    @@ -995,7 +995,11 @@
     #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;
    -}
    +}

$ uname -r
3.2.0-4-686-pae

####  UPDATE  ########
i've applied patch to wrong file  big_smile

should be as below:

$ patch -Np1 -i ./looks_like_amd_forgot_this.patch

File to patch: /home/bii/downloads/amd/catalyst/common/lib/modules/fglrx/build_mod/kcl_acpi.c
patching file /home/bii/downloads/amd/catalyst/common/lib/modules/fglrx/build_mod/kcl_acpi.c

Last edited by M.I.H.H (2014-01-01 15:04:53)


i will continue to seek knowledge.


selling vpn, tutorials.

Offline

#5 2013-12-31 03:56:36

Erik
#! CrunchBanger
From: Fort Worth, TX
Registered: 2009-03-28
Posts: 192

Re: [Solved] Failed Installing New AMD_Catalyst-13.12 Driver

I'm running into the same error here. Very unfortunate, because the ATI drivers in the debian testing generate a memory leak when playing Half-Life 2...

I'll look into the Phoronix link above tomorrow and see if I can get that to work.

I broke Steam over this... I know get an error message that Steam can't find libatiuki.so. Grrrr

Offline

#6 2014-01-01 02:11:24

KrunchTime
#! Die Hard
From: Not Where I Belong
Registered: 2012-03-02
Posts: 1,721

Re: [Solved] Failed Installing New AMD_Catalyst-13.12 Driver

@M.I.H.H.:  I see two issues.  First, per your screenshot and the filename you provided, it appears you're attempting to install a 64-bit package on a 32-bit system.  Second, the installation issue seems to have something to do with DKMS, which perhaps relates back to the first issue.

Additionally, is there a reason you want to install the newer software and driver?

Last edited by KrunchTime (2014-01-01 02:12:42)

Offline

#7 2014-01-01 03:44:32

Erik
#! CrunchBanger
From: Fort Worth, TX
Registered: 2009-03-28
Posts: 192

Re: [Solved] Failed Installing New AMD_Catalyst-13.12 Driver

short update on the 13.12 install:

I managed to apply that patch by doing it manually: see this.

However, I think it only works if you build a .deb package and for that you need to change a bunch of more stuff. In any case, direct installation did not work for me. I'll try again in 2014...

Offline

#8 2014-01-01 03:54:58

KrunchTime
#! Die Hard
From: Not Where I Belong
Registered: 2012-03-02
Posts: 1,721

Re: [Solved] Failed Installing New AMD_Catalyst-13.12 Driver

Based on the instructions, you do build a .deb package.  You would also need to know to ignore any steps specific to Ubuntu; e.g. install to Software Center.

Offline

#9 2014-01-01 04:37:06

rwsChris
Member
From: Stamford, CT, US
Registered: 2012-12-31
Posts: 43

Re: [Solved] Failed Installing New AMD_Catalyst-13.12 Driver

I'm wrestling with ATI drivers myself (but legacy). I may be wrong about this but you may be able to get 13.12 from unstable (package info here). (I'm extrapolating below from the Debian wiki entry.)

Super+T:

sudo geany /etc/apt/sources.list

Add lines:

## Debian Unstable
deb http://ftp.us.debian.org/debian unstable main contrib non-free

Save.

sudo apt-get update
sudo apt-get install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,')
sudo apt-get -t unstable install fglrx-driver

That should also recommend and install fglrx-modules-dkms, which should build the fglrx module for you.

sudo aticonfig --initial

And that should create a workable /etc/X11/xorg.conf.

Before you reboot, I would open /etc/apt/sources.list, comment-out unstable, and apt-get update one more time.

(Other wiser #!ers may recommend something else, but this is an idea.)

Offline

#10 2014-01-01 08:18:10

KrunchTime
#! Die Hard
From: Not Where I Belong
Registered: 2012-03-02
Posts: 1,721

Re: [Solved] Failed Installing New AMD_Catalyst-13.12 Driver

rwsChris wrote:

I'm wrestling with ATI drivers myself (but legacy).

I feel your pain:  AMD Mobility Radeon HD 4570.   cry

Last edited by KrunchTime (2014-01-01 08:18:32)

Offline

#11 2014-01-01 09:13:17

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 11,511

Re: [Solved] Failed Installing New AMD_Catalyst-13.12 Driver

@KrunchTime:  Have you tried the fglrx legacy package from wheezy-backports?
https://wiki.debian.org/ATIProprietary#wheezy-legacy
I only found this last week in another thread here.  Seems to be working OK with my Radeon HD 4250.  My ttys look really fugly, but I guess that's an acceptable loss.

Last edited by pvsage (2014-01-01 18:53:51)


Yes; as a matter of fact, I am a cop.  Why do you ask? cool
I'm a moderator here.  How are we doing?  Feedback is encouraged.

Online

#12 2014-01-01 15:21:15

M.I.H.H
#! Member
From: /etc/init.d/
Registered: 2012-11-01
Posts: 72
Website

Re: [Solved] Failed Installing New AMD_Catalyst-13.12 Driver

KrunchTime wrote:

@M.I.H.H.:  I see two issues.  First, per your screenshot and the filename you provided, it appears you're attempting to install a 64-bit package on a 32-bit system.  Second, the installation issue seems to have something to do with DKMS, which perhaps relates back to the first issue.

Additionally, is there a reason you want to install the newer software and driver?

hmm, i've downloaded and installed the driver with 32bit support, i get the driver from official AMD sites. And issues about DKMS build with new Catalyst driver not just me, i found a lot same issues as it happened to me. they are solving their problems using patch like i've described (post #4), but they are using Ubuntu and me used Crunchbang(actually based on debian), and i've tried following the guide, the result is not working sad

the reason is because i've problem with Fatal server error:  Caught signal 8 (Floating point exception). Server aborting check here
i think if i installed new driver, the problem can be solved, but a new problem appears  sad

Last edited by M.I.H.H (2014-01-01 15:27:44)


i will continue to seek knowledge.


selling vpn, tutorials.

Offline

#13 2014-01-02 01:27:27

Erik
#! CrunchBanger
From: Fort Worth, TX
Registered: 2009-03-28
Posts: 192

Re: [Solved] Failed Installing New AMD_Catalyst-13.12 Driver

OK, I decided to use a completely different approach. I've added the Debian Sid repos to my sources.list and added a line to my preferences file, pinning sid with value 200.

To successfully install the 13.12 drivers (that's the version in Sid), I had to first uninstall the fglrx driver I was currently using (the one from the testing repos). I then installed using:

sudo apt-get -t sid install fglrx-driver
sudo aticonfig --initial

(not 100% sure if that last line is necessary, I didn't delete my old config file)

My sources.list:

## CRUNCHBANG
## Compatible with Debian Wheezy, but use at your own risk.
deb http://packages.crunchbang.org/waldorf waldorf main
#deb-src http://packages.crunchbang.org/waldorf waldorf main

## DEBIAN
deb http://http.debian.net/debian wheezy main contrib non-free
#deb-src http://http.debian.net/debian wheezy main contrib non-free

#TESTING
deb http://ftp.us.debian.org/debian/ testing main contrib non-free

# SID
deb http://ftp.us.debian.org/debian/ sid main contrib non-free

## DEBIAN SECURITY
deb http://security.debian.org/ wheezy/updates main
#deb-src http://security.debian.org/ wheezy/updates main

#TESTING
deb http://security.debian.org/ testing/updates main contrib non-free

#JBROUT
deb http://jbrout.free.fr/download/debian binary/

My preferences file:

Package: *
Pin: release o=Debian,a=testing
Pin-Priority: 900

Package: *
Pin: release o=Debian,a=sid
Pin-Priority: 200

My apt.conf file:

APT::Default-Release "waldorf";

To see if the whole pinning thing worked out run:

sudo apt-get update

And:

apt-cache policy fglrx-driver

You should get a result that looks something like this (except I ran this command after the fact, hence the installed and candidate version are both 13.12.

fglrx-driver:
  Installed: 1:13.12-1
  Candidate: 1:13.12-1
  Version table:
 *** 1:13.12-1 0
        500 http://ftp.us.debian.org/debian/ sid/non-free amd64 Packages
        100 /var/lib/dpkg/status
     1:13.8~beta1-3 0
        900 http://ftp.us.debian.org/debian/ testing/non-free amd64 Packages
     1:12-6+point-3 0
        500 http://http.debian.net/debian/ wheezy/non-free amd64 Packages

So far, the memory leak looks to be gone, we'll see how this all goes.

Offline

#14 2014-01-20 00:55:07

Snus Addict
New Member
Registered: 2014-01-19
Posts: 2

Re: [Solved] Failed Installing New AMD_Catalyst-13.12 Driver

I found a way to get the latest drivers working.


edit: now tested working in 13.12 release and 13.11 beta.


Greetings Crunchbangers.

I'm using Debian but since this forum thread is the top hit in Google and I believe this is probably not a flavour-specific issue, I decided to post my solution here in the hope that it would be found by others, I hope that is not a breach of etiquette.

So, I had the exact same problem as OP, when trying to install Catalyst 13.12 to Debian Wheezy but came up with a dirty, yet effective fix. 

The problem in question being:

...

cd /var/lib/dkms/fglrx/13.251/build; sh make.sh --nohints --uname_r=3.2.0-4-686-pae --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

...

I am running: Linux 3.2.0-4-686-pae #1 SMP Debian 3.2.51-1 i686 GNU/Linux and my GPU is a Radeon HD 5870.


I spent DAYS in total, searching and trying the various solutions which have been suggested, including the source patch which you've probably seen.  Nothing worked and I gave up, using the flgrx-driver from the repo for a while; but it is too outdated for an application I wish to run, so today I decided to give the 13.12 another shot.

After many more hours of frustration, here's what I discovered:

The way to get around the DKMS problem is simply to disable the function within the ATI installer, which is responsible for the error, by slightly editing the installation source code.

First of all, check your DKMS build log to confirm that your issue has the same root cause!

I found mine here:  /var/lib/dkms/fglrx/13.25.18/3.2.0-4-686-pae/i686/log/ it should be named make.log or so.  If you have used the release installer, the directory following /fglrx/ will likely have a different name, based upon version 13.125.  Unfortunately I didn't copy the failure log at the time and the successful installation deleted or overwrote it, however, check through and if your build failed because of this file: kcl_iommu.o , then continue reading. (there may be other errors stemming from the failure of kcl_iommu.o but they go away when the root cause is removed).

Steps I used to get to the stage of a working flgrx module are as follows.

̶(̶n̶o̶t̶e̶:̶ ̶I̶ ̶a̶p̶p̶l̶i̶e̶d̶ ̶t̶h̶i̶s̶ ̶c̶h̶a̶n̶g̶e̶ ̶t̶o̶ ̶a̶m̶d̶-̶c̶a̶t̶a̶l̶y̶s̶t̶-̶1̶3̶.̶1̶1̶-̶b̶e̶t̶a̶V̶9̶.̶9̶5̶-̶l̶i̶n̶u̶x̶-̶x̶8̶6̶.̶x̶8̶6̶_̶6̶4̶,̶ ̶w̶h̶i̶c̶h̶ ̶i̶s̶ ̶p̶r̶e̶s̶e̶n̶t̶e̶d̶ ̶f̶o̶r̶ ̶d̶o̶w̶n̶l̶o̶a̶d̶ ̶o̶n̶ ̶t̶h̶e̶ ̶s̶a̶m̶e̶ ̶p̶a̶g̶e̶ ̶a̶s̶ ̶1̶3̶.̶1̶2̶,̶ ̶b̶u̶t̶ ̶g̶i̶v̶e̶n̶ ̶t̶h̶a̶t̶,̶ ̶b̶e̶f̶o̶r̶e̶ ̶m̶o̶d̶i̶f̶i̶c̶a̶t̶i̶o̶n̶,̶ ̶i̶t̶ ̶f̶a̶i̶l̶s̶ ̶w̶i̶t̶h̶ ̶e̶x̶a̶c̶t̶l̶y̶ ̶t̶h̶e̶ ̶s̶a̶m̶e̶ ̶e̶r̶r̶o̶r̶ ̶a̶n̶d̶ ̶h̶a̶s̶ ̶t̶h̶e̶ ̶s̶a̶m̶e̶ ̶r̶o̶u̶t̶i̶n̶e̶ ̶w̶h̶i̶c̶h̶ ̶k̶i̶l̶l̶s̶ ̶D̶K̶M̶S̶,̶ ̶I̶ ̶e̶x̶p̶e̶c̶t̶ ̶t̶h̶e̶ ̶f̶i̶x̶ ̶t̶o̶ ̶a̶l̶s̶o̶ ̶w̶o̶r̶k̶ ̶w̶i̶t̶h̶ ̶t̶h̶e̶ ̶1̶3̶.̶1̶2̶ ̶r̶e̶l̶e̶a̶s̶e̶ ̶-̶ ̶I̶ ̶d̶i̶d̶n̶'̶t̶ ̶c̶h̶o̶o̶s̶e̶ ̶B̶e̶t̶a̶ ̶b̶e̶c̶a̶u̶s̶e̶ ̶i̶t̶ ̶w̶a̶s̶ ̶w̶o̶r̶k̶i̶n̶g̶ ̶a̶n̶y̶ ̶b̶e̶t̶t̶e̶r̶,̶ ̶i̶t̶ ̶j̶u̶s̶t̶ ̶h̶a̶p̶p̶e̶n̶e̶d̶ ̶t̶o̶ ̶b̶e̶ ̶t̶h̶e̶ ̶v̶e̶r̶s̶i̶o̶n̶ ̶I̶ ̶h̶a̶d̶ ̶o̶p̶e̶n̶ ̶w̶h̶e̶n̶ ̶I̶ ̶t̶h̶o̶u̶g̶h̶t̶ ̶o̶f̶ ̶t̶h̶e̶ ̶f̶i̶x̶ ̶-̶ ̶I̶ ̶h̶a̶d̶ ̶d̶o̶w̶n̶l̶o̶a̶d̶e̶d̶ ̶t̶h̶e̶ ̶B̶e̶t̶a̶ ̶i̶n̶ ̶t̶h̶e̶ ̶h̶o̶p̶e̶ ̶t̶h̶a̶t̶ ̶i̶t̶ ̶h̶a̶d̶ ̶a̶l̶r̶e̶a̶d̶y̶ ̶b̶e̶e̶n̶ ̶f̶i̶x̶e̶d̶ ̶b̶u̶t̶ ̶t̶h̶i̶s̶ ̶w̶a̶s̶ ̶n̶o̶t̶ ̶t̶h̶e̶ ̶c̶a̶s̶e̶,̶ ̶t̶h̶e̶ ̶s̶a̶m̶e̶ ̶p̶r̶o̶b̶l̶e̶m̶ ̶m̶a̶n̶i̶f̶e̶s̶t̶s̶ ̶w̶h̶e̶t̶h̶e̶r̶ ̶y̶o̶u̶ ̶u̶s̶e̶ ̶b̶e̶t̶a̶ ̶o̶r̶ ̶r̶e̶l̶e̶a̶s̶e̶.̶)̶


1. Download Catalyst driver
2. Run it with the option --extract <folder you would like to extract to>
3. Open the following file in a text editor ./<yourfolder>/common/lib/modules/fglrx/build_mod/kcl_iommu.c
4. Find the line containing the following piece of code, it was line 188 for me:

int ATI_API_CALL KCL_IOMMU_CheckInfo( KCL_PCI_DevHandle pcidev)
{
    struct pci_dev* pdev = (struct pci_dev*)pcidev;
    if ( pdev->dev.archdata.iommu )
    {
        return 1;
    }
    return 0;
}

Replace the entire section with the following block, or just change the relevant parts:

int ATI_API_CALL KCL_IOMMU_CheckInfo( KCL_PCI_DevHandle pcidev)
{
    struct pci_dev* pdev = (struct pci_dev*)pcidev;
    if ( pdev > pdev )
    {
        return 0;
    }
    return 0;
}

Changing the first return causes 0 to be returned regardless of the outcome of the check; but only changing that causes another error relating to the if statement, so then the if statement is changed to something which doesn't cause an error.  The actual if statement is irrelevant now, since we are ignoring its value anyway, so I simply replaced the variable which was being reported as non-existent with the first valid one I found, i.e pdev. 


Save this file and your installer is ready to go!  To begin installing, run ati-installer.sh which is in the folder you extracted the the contents of the  .run file to.  If you do this from desktop, you get a nice menu, if you use command line then you must pass a couple of parameters thus:

sudo ./ati-installer.sh 13.11 --install

Note: The number after the script is the driver version, I used 13.11 because that's the version of the latest beta, if you're trying this with the regular release then it would be 13.12 or 13.125, I won't claim to be sure and I don't know if the last digit matters.

I recommend using the GUI interface, I used direct install option, I did not test the package build option and it may not work.

n.b: Ensure you run the installer.sh which you obtained by extracting the archive to a folder and NOT the original unmodified .run file.

Important: You must still perform the usual before and after steps required for a regular Catalyst driver install!  That is, meeting any dependencies, removing the old fglrx or otherwise conflicting drivers, running amdconfig -initial after the install, setting your kernel parameter nomodeset if needed, adding or removing module blacklist entries, rebooting etc.   I have not attempted to cover the regular installation procedure here, only how to un-break the installer!   

If you've met the usual requirements and done the modification, then the installer should report a successful installation - it may, during the process, report being unable to write fglrx_dri.so "file already exists" - this is not a fatal error - you can try deleting the offending file and running again but from what I observed, the installer itself is writing it at start time, then attempting to write it again, causing the warning.  As long as the file was newly generated by the installer, it doesn't seem to matter (to be on the safe side, you can run once, delete the file if you get the error then run the installer again).  If the problem persists after deleting once, then run with --force option to force installation (remember version parameter and --install if you do this).

After rebooting you can check that the module has loaded with lsmod | grep fglrx.  If fglrx has successfully loaded but problems still persist, then try out the usual troubleshooting guides for post ATI installation, some recommend reinstalling various components and libraries and I found that helpful with the repo driver 12.6.


So far, the driver has worked perfectly, tested with a 3D game in Wine and I've gained 4 fps on Furmark extreme burn-in test, 19-20fps as opposed to 15fps with the 12.6 driver from the Debian repository.  I've also not been victim to the random black screens I was experiencing with the 12.6 driver, which required me to ssh in and manually shut down.


Caveat: Before you attempt this, know that I am NOT a programmer, I made this patch/mod/hack out of desperation and sheer frustration at the lack of an available solution ;but it works.  I am sure that someone with a knowledge of C can explain exactly what is going wrong and perhaps write a more elegant solution but for now:

̶C̶a̶v̶e̶a̶t̶:̶ ̶A̶s̶ ̶a̶l̶r̶e̶a̶d̶y̶ ̶s̶t̶a̶t̶e̶d̶,̶ ̶i̶t̶ ̶w̶a̶s̶ ̶t̶h̶e̶ ̶l̶a̶t̶e̶s̶t̶ ̶B̶e̶t̶a̶ ̶r̶e̶l̶e̶a̶s̶e̶ ̶t̶h̶a̶t̶ ̶I̶ ̶"̶f̶i̶x̶e̶d̶"̶ ̶-̶ ̶h̶o̶w̶e̶v̶e̶r̶,̶ ̶g̶i̶v̶e̶n̶ ̶t̶h̶a̶t̶ ̶t̶h̶e̶ ̶e̶r̶r̶o̶r̶ ̶a̶n̶d̶ ̶s̶e̶c̶t̶i̶o̶n̶ ̶o̶f̶ ̶c̶o̶d̶e̶ ̶a̶r̶e̶ ̶i̶d̶e̶n̶t̶i̶c̶a̶l̶,̶ ̶I̶ ̶s̶e̶e̶ ̶n̶o̶ ̶r̶e̶a̶s̶o̶n̶ ̶t̶h̶a̶t̶ ̶t̶h̶e̶ ̶m̶o̶d̶ ̶w̶o̶u̶l̶d̶n̶'̶t̶ ̶w̶o̶r̶k̶ ̶w̶i̶t̶h̶ ̶1̶3̶.̶1̶2̶5̶.̶

Caveat: I've only tested this on my system with the kernel mentioned at the top of the page.

Hope this saves someone the frustration that I went through.

Install log for what it's worth, sorry that I don't have the before-patch-version to compare it with, suffice to say that it contained exactly the same error referring to DKMS, as the one you supplied.

Supported adapter detected.
Detected a previous installation, /usr/share/ati/amd-uninstall.sh
Installation with force option.
Check if system has the tools required for installation.
fglrx installation is being forced. Installation will proceed without the required tools on the system.
Uninstalling any previously installed drivers.
Forcing uninstall of AMD Catalyst(TM) Proprietary Driver.
No integrity verification is done.
restore of system environment completed
Uninstall fglrx driver complete.
For detailed log of uninstall, please see /etc/ati/fglrx-uninstall.log
System must be rebooted to avoid system instability and potential data loss.
/usr/share/ati/amd-uninstall.sh completed with 0

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

DKMS: add completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area....
cd /var/lib/dkms/fglrx/13.25.18/build; sh make.sh --nohints --uname_r=3.2.0-4-686-pae --norootcheck.....
cleaning build area....

DKMS: build completed.

fglrx:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/3.2.0-4-686-pae/updates/dkms/

depmod....

DKMS: install completed.
[Reboot] Kernel Module : update-initramfs

Last edited by Snus Addict (2014-01-22 07:07:57)

Offline

#15 2014-01-24 00:07:24

Erik
#! CrunchBanger
From: Fort Worth, TX
Registered: 2009-03-28
Posts: 192

Re: [Solved] Failed Installing New AMD_Catalyst-13.12 Driver

Awesome work!

Offline

#16 2014-01-24 13:27:41

M.I.H.H
#! Member
From: /etc/init.d/
Registered: 2012-11-01
Posts: 72
Website

Re: [Solved] Failed Installing New AMD_Catalyst-13.12 Driver

I really thanks a lot to you Snus Addict your guide is awesome, its work on me. I hope for next update Proprietary Driver, AMD will fix this issues  angel. Once again thanks a lot man.


i will continue to seek knowledge.


selling vpn, tutorials.

Offline

#17 2014-02-09 02:59:30

AreYouLoco?
Member
From: Poland
Registered: 2012-10-11
Posts: 22

Re: [Solved] Failed Installing New AMD_Catalyst-13.12 Driver

here is a better patch of kcl_iommu.c made by gnidek:

http://forums.amd.com/game/messageview. … erthread=y

--- kcl_iommu.c.orig    2014-01-06 23:40:00.090444433 +0100
+++ kcl_iommu.c    2014-01-06 23:40:52.013271589 +0100
@@ -187,11 +187,13 @@
  */
 int ATI_API_CALL KCL_IOMMU_CheckInfo( KCL_PCI_DevHandle pcidev)
 {
+    #ifdef IOMMUV2_SUPPORT
     struct pci_dev* pdev = (struct pci_dev*)pcidev;
     if ( pdev->dev.archdata.iommu )
     {
         return 1;
     }
+    #endif
     return 0;
 }

Debian bugtrace!:
http://bugs.debian.org/cgi-bin/bugrepor … =729765#88

Last edited by AreYouLoco? (2014-02-09 03:03:23)


AreYouLoco?@crunchbang ~# cd $HOME && echo "Home, sweet home:D"

Offline

#18 2014-02-21 03:42:41

Snus Addict
New Member
Registered: 2014-01-19
Posts: 2

Re: [Solved] Failed Installing New AMD_Catalyst-13.12 Driver

AreYouLoco? wrote:

here is a better patch of kcl_iommu.c made by gnidek:

Thanks, that's elegant; the patch and bug report are for a different driver version than the one we were discussing, perhaps that's why we didn't find it! 

Believe it or not, the bug has still not been fixed and remains present in the latest version of Catalyst (14.1 beta), which is still impossible to install without editing or patching kcl_iommu.c .  Shame on AMD.

I have tested Gindek's patch against 14.1 beta and it still works, diff output confirms that no changes to the patch are needed to use it with 14.1, it should also work with 13.12.

As an aside, I've found 14.1 beta to be a lot more stable than 13.12, a week of 3D gaming and crypto coin mining and not a single hang-up or glitch.

Kudos to Gindek and thanks for pointing this out.

Last edited by Snus Addict (2014-02-21 03:46:02)

Offline

#19 2014-03-03 12:42:57

3KyNoX
New Member
Registered: 2014-03-03
Posts: 1

Re: [Solved] Failed Installing New AMD_Catalyst-13.12 Driver

Hello folks,

I tried Snus Addict solution, did not changed anything, still with DKMS error.

Using Debian Testing x64 (Jessie) and Catalyst 13.12 (latest stable).

Last edited by 3KyNoX (2014-03-03 12:44:23)

Offline

#20 2014-03-06 23:39:04

AreYouLoco?
Member
From: Poland
Registered: 2012-10-11
Posts: 22

Re: [Solved] Failed Installing New AMD_Catalyst-13.12 Driver

3KyNoX wrote:

Hello folks,

I tried Snus Addict solution, did not changed anything, still with DKMS error.

Using Debian Testing x64 (Jessie) and Catalyst 13.12 (latest stable).

please write steps U've made and the output of installer


AreYouLoco?@crunchbang ~# cd $HOME && echo "Home, sweet home:D"

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo