Ati installer in Lenny

{X} Be aware that upgrading from packages created by the ATI installer is and will most probably NEVER be supported by the Debian maintainer of the fglrx-driver package(s)!

Changelog:

1. Instruction for ati installer version 10.1

ATI installer for Debian is buggy, and requires some tricks:

./ati-driver-installer-10-1-x86.x86_64.run --buildpkg Debian/lenny
Generating package: Debian/lenny
cp: cannot stat `/home/jarek/install/fglrx-install.ClcbzZ/x710/*': No such file or directory
Package build failed!

To correct this you have to extract sources:

./ati-driver-installer-10-1-x86.x86_64.run --extract fglrx-10.1

and do the following. Enter driver directory:

cd fglrx-10.1

Open file: packages/Debian/ati-packager.sh and in line 67 change:

lenny|testing) X_DIR=x710; X_NAME=lenny;;

to

lenny|testing) X_DIR=x690; X_NAME=lenny;;

Open file packages/Debian/dists/lenny/fglrx-driver.shlibs and at the end add line:

libatiuki       1 fglrx-driver

Copy file libatiuki.so.1.0 and create symbolic link: (for 32-bit system)

cp arch/x86/usr/lib/libatiuki.so.1.0 x690/usr/X11R6/lib/
ln -s libatiuki.so.1.0 x690/usr/X11R6/lib/libatiuki.so.1

For 64-bit system, change x86 to x86_64, x690 to x690_64a, lib to lib64, for above paths.

Now you should be able to build debs:

./ati-installer.sh 10.1 --buildpkg Debian/lenny

2. Instruction for ati installer version 10.2

Extract sources:

./ati-driver-installer-10-2-x86.x86_64.run --extract fglrx-10.2

and do the following. Enter driver directory:

cd fglrx-10.2

Open file: packages/Debian/ati-packager.sh and in line 67 change:

lenny|testing) X_DIR=x710; X_NAME=lenny;;

to

lenny|testing) X_DIR=x690; X_NAME=lenny;;

Build deb packages:

./ati-installer.sh 10.2 --buildpkg Debian/lenny

3. Instruction for ati installer version 10.3

Same applies for 10.3.

4. After building debs

This new created debs, may be incomatible with original debian fglrx packages, so before installation, you should uninstall them. First check what is installed:

aptitude search fglrx | grep "^i.*"

and if there are any, uninstall them (dpkg -r <package_name>).

Finally, you should install all created debs, and build new kernel driver using m-a command.

5. Problems during install debs and build kernel driver

xserver-xorg-core has a conflict with fglrx-driver. dpkg-divert it: dpkg-divert --package xserver-xorg-core add /usr/lib/xorg/modules/extensions/libglx.so

Install deb-conf, module assistant, linux header, buildessentials, ia32-libs (For 64bit system only), etc.

Disable the non-free repository from Debian. (Debian thought its package newer than the newest packages from AMD)

m-a a-i fglrx

Link the correct file to /usr/lib/xorg/modules/extensions/libglx.so, two libglx files lie there, pick the newer one.

See Also:

ATIProprietary