Topic Title: [fix]Debian testing 3.10-3-686-pae, DKMS issue
Topic Summary: simple fix for i686 arch
Created On: 10/22/2013 04:50 PM
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
View similar topics View similar topics
View topic in raw text format. Print this topic.
 10/22/2013 04:50 PM
User is offline View Users Profile Print this message

Author Icon

Posts: 5
Joined: 10/22/2013

I have problem with installation fglrx driver, so after some investigation I found 2 bugs. 

ofc this is working on my envorionment 
I don't give any warranty that this will working with your setup.
So you are doing this on your own responsibilty :-).

ln -s /usr/src/linux-headers-XXX-XXX-XXX /usr/src/linux

2. Lack of define check in one function: (diff below). (my cpu and kernel don't support IOMMU)

--- fglrx-13.20.16_old/kcl_iommu.c 2013-10-22 21:50:18.340550281 +0200
+++ fglrx-13.20.16/2.6.x/kcl_iommu.c 2013-10-22 21:50:06.400657648 +0200
@@ -186,11 +186,13 @@
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;

(DO NOT COPY PASTE !!!!!!!!!!! )
Then to install driver
0. Uninstall old driver installation: /usr/share/ati/ --force  && reboot
1. Extract driver: ./ --extract amd-driver
2. Apply patch kcl_iommu.c 
3. ./ 13.20.16 --install  (parameters taken from watch "ps aux | grep ati-instller"

 03/03/2014 01:54 PM
User is offline View Users Profile Print this message

Author Icon

Posts: 2
Joined: 03/01/2014

Trying to build this on Debian 7.4 with a 3.2.0-4 kernel and using the 14.2 beta which actually unpacks as 13.35.1005. After following your directions, the last step

    ./ 13.35.1005 --install

I still get (bad exit status 1) from the module build. Unfortunately that is all it tells me in the log file as well. The issue with iommu is gone but something is still wrong and appears to be DKMS failure.

I was able to use the default Debian fglrx package on my older HD5450 wihtout incident. I have been trying to compile my own becasue of an upgrade to the Sapphire R7 260X.

Update: Gindek's fix does work for the compile if you have a space between #ifdef and IOMMUV2_SUPPORT. Sheesh!

After a successful compile I don't even get to login screen. It just goes black and I'm done.

Graphics Card
- Sapphire R7 260X 2G  GDDR% PCI-E no over clocking

AMD Catalyst Driver Version, and Driver History
- 14.2-betav1.3 (ATI Installer actually says 13.35.1005)

Operating System
- Debian Wheezy 7.4 32 bit, fresh install

Issue Details
- initially installed the R7 in my system and performed a fresh install of Debian. Everything went fine up until I attempted a login after the install was complete. This was Gnome desktop login. The screen goes black for a minute or so and then a terminal icon pops up with the message "Oops, something has gone wrong!" Contact a system adminstrator.
-this same install works just fine with an older HD5450 1GB adapter in the same slot.

Motherboard or System Make & Model
ASUS M4A785-M no overclocking
Power Supply

- 500W

Display Device(s) and Connection(s) Used
- ASUS 24in 1920 x 1080

Applications and Games

CPU Details
- AMD Athlon II X2 255 Processor 3100MHz

Motherboard BIOS Version
-  AMI v02.61

System Memory Type & Amount
- 4GB kingston hyperX PC8500 DDR2 1066MHz
Additional Hardware
- WD Black 1TB Sata II drive
Additional Details
-not having issues with the system only building and installing the catalyst drivers. Here is the output from the fglrx-install.log

Supported adapter detected.
Detected a previous installation, /usr/share/ati/
Dryrun uninstall succeeded continuing with installation.
Check if system has the tools required for installation.
Uninstalling any previously installed drivers.
Forcing uninstall of AMD Catalyst(TM) Proprietary Driver.
No integrity verification is done.
restore of system environment completed
Errors 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.
/usr/share/ati/ completed with 0

Creating symlink /var/lib/dkms/fglrx/13.35.1005/source ->

DKMS: add completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area....
cd /var/lib/dkms/fglrx/13.35.1005/build; sh --nohints --uname_r=3.2.0-4-686-pae --norootcheck.....(bad exit status: 1)
[Error] Kernel Module : Failed to build fglrx-13.35.1005 with DKMS
[Error] Kernel Module : Removing fglrx-13.35.1005 from DKMS

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


Edited: 03/03/2014 at 03:46 PM by sledged
93133 users are registered to the AMD Support and Game forum.
There are currently 1 users logged in.

FuseTalk Hosting Executive Plan v3.2 - © 1999-2015 FuseTalk Inc. All rights reserved.