Debian Installation Guide: Difference between revisions

From cchtml.com
No edit summary
 
(119 intermediate revisions by 67 users not shown)
Line 1: Line 1:
2007-11, see http://wiki.debian.org/AtiHowTo
----
As of November 2005, ATI's drivers are in the non-free area of Debian. Make sure your /etc/apt/sources.list contains "contrib non-free" as well as main. You will, however, have to build your own kernel modules.
As of November 2005, ATI's drivers are in the non-free area of Debian. Make sure your /etc/apt/sources.list contains "contrib non-free" as well as main. You will, however, have to build your own kernel modules.


''Warning: do not mix the non-free packages with the packages created by the installer as they will conflict in non-obvious ways.  Before switching from one method to another, completely remove all fglrx-related packages.  Never do upgrade from one method to another directly!''
''Warning: do not mix the non-free packages with the packages created by the installer as they will conflict in non-obvious ways.  Before switching from one method to another, completely remove all fglrx-related packages.  Never do upgrade from one method to another directly!''


The buildpackage will fail on Debian 6.0 (Squeeze). They're quite broken.


== Which install method? ==
In addition, the generic installer will fail if your / partition has less space available than it wants, even if all of the files would be placed on a different partition (such as /usr).
There are two methods that can be used to install the fglrx driver in Debian.  The first, and recommended way is to use the native Debian packages directly from the non-free repository.  The second, which may be required for newly release drivers, is to generate the Debian packages directly from the ATI installer.  Both methods are documented here.  After the packages are installed, the remaining steps are common, regardless of the install method chosen.
== Update the xorg.conf file (Configuration) ==
<pre>
sudo aticonfig --initial
</pre>
Now restart X, or reboot for the driver changes to take effect.


=== Method 1: Installing from Debian non-free ===
== Confirm that it worked ==
<pre>
$ fglrxinfo
display: :0.0  screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: MOBILITY RADEON 9700 Generic
OpenGL version string: 1.3.5461 (X4.3.0-8.19.10)
</pre>


==== Install the driver ====
If it didn't work, you may need to run:
<pre>
<pre>
sudo apt-get update
# mkdir -p /usr/X11R6/lib/modules/dri
sudo apt-get install module-assistant fglrx-driver fglrx-kernel-src
# ln -s /usr/lib/dri/fglrx_dri.so /usr/X11R6/lib/modules/dri
</pre>
</pre>


=== Method 2: Generating/Installing Debian packages from the ATI installer ===
Thanks to Maciej Matysiak for the clear debug [http://lists.debian.org/debian-amd64/2006/02/msg00217.html here] and solution [http://lists.debian.org/debian-amd64/2006/02/msg00311.html here].
==== Download the ATI driver installer ====
Download the driver packages directly from [http://www.ati.com ATI]. You need to download the ATI [https://a248.e.akamai.net/f/674/9206/0/www2.ati.com/drivers/linux/ati-driver-installer-8.33.6-x86.x86_64.run installer], not the RPM packages for this method to work.


==== Build the Debian packages ====
If it's still not working, try:
Change to the download directory.
<pre>
<pre>
sudo apt-get install module-assistant build-essential fakeroot dh-make debconf bzip2
# rm /usr/lib/libGL.so*
sudo sh ./ati-driver-installer-8.35.5-x86.x86_64.run --buildpkg [Distribution]
# rm /usr/X11R6/lib/libGL.so*
(run with --listpkg too see which Distributions and releases are available)
# cd /usr/X11R6/lib
# cp /usr/lib/fglrx/diversions/lib/libGL.so.1.2 .
# ln -s libGL.so.1.2 libGL.so.1
# ldconfig
</pre>
</pre>
This used to create five deb packages in the current directory. With version 36, it creates only four. If this step succeeded without any errors but there are no packages, check the /tmp directory.
and confirm that 'ldd /usr/bin/fglrxinfo' is pointing to the right one.
 


==== Install the driver ====
People seem to be experiencing a broken libGL.so.1 after installing 8.41 on Debian/etchIf `amdcccle` complains that libGL.so.1 does't exist, DONT DELETE /usr/lib/libGL.so.1.2 LIKE IT SAYS ABOVE.  Make symbolic link to libGL.so.1.2 (which is included in fglrx package - 14 megs in size):
You might get some errors regarding dependencies during the dpkg processYou can ignore them since they should be resolved when you run the ''upgrade'' step.
<pre>
<pre>
sudo dpkg -i fglrx-control-qt3_8.24.8-1_i386.deb
# cd /usr/lib
sudo dpkg -i fglrx-kernel-src_8.24.8-1_i386.deb
# ln -s libGL.so.1.2 libGL.so.1
sudo dpkg -i fglrx-driver-dev_8.24.8-1_i386.deb
sudo apt-get -f upgrade
</pre>
</pre>


A cruder way would be just calling <pre> dpkg -i fglrx-*.deb </pre>


== Compile the kernel driver ==
[[Category:Installation Documentation]]
 
This work fine for ATI mobility radeon 1400
 
(make backup the olds xorg.* files in your folder)
 
<pre>
<pre>
sudo module-assistant prepare
$ cp /etc/X11/xorg.conf /home/username/xorg.conf.old
sudo module-assistant update
$ cp /var/log/Xorg.0.log /home/username/Xorg.0.log.old
sudo module-assistant a-i fglrx
</pre>
</pre>


=== Observed error messages ===
(add contrib non-free in repositories)
 
<pre>
<pre>
                    |  dh_testdir                                                                │
$ apt-get update
                    │ /usr/bin/make -C /lib/modules/2.6.11/source SUBDIRS=/usr/src/modules/fglrx │
$ apt-get install module-assistant build-essential fakeroot dh-make debconf bzip2
                    │ /bin/sh: /usr/src/linux-2.6.11/scripts/gcc-version.sh: Datei oder Verzeich │
                    │ make[1]: Entering directory `/usr/src/linux-2.6.11'                        │
                    │ make[2]: scripts/Makefile.build: Datei oder Verzeichnis nicht gefunden    │
                    │ make[2]: *** Keine Regel, um »scripts/Makefile.build« zu erstellen.  Schlu │
                    │ make[1]: *** [_module_/usr/src/modules/fglrx] Fehler 2                    │
                    │ make[1]: Leaving directory `/usr/src/linux-2.6.11'                        │
                    │ make: *** [build] Fehler 2                   
</pre>
</pre>
(from www.amd.com download the current version of driver for your ATI)
<pre>
$ sh ./ati-driver-installer-8.40.4-x86.x86_64.run --buildpkg Debian/lenny
</pre>                       


<pre>
<pre>
(II) LoadModule: "fglrx"
$ apt-get install fglrx-amdcccle_8.40.4-1_i386.deb
(II) Loading /usr/lib/xorg/modules/drivers/fglrx_drv.so
$ apt-get install fglrx-driver-_8.40.4-1_i386.deb
dlopen: libstdc++.so.5: cannot open shared object file: No such file or directory
$ apt-get install fglrx-driver-dev_8.40.4-1_i386.deb
(EE) Failed to load /usr/lib/xorg/modules/drivers/fglrx_drv.so
$ apt-get install fglrx-kernel-src_8.40.4-1_i386.deb
(II) UnloadModule: "fglrx"
$ apt-get -f upgrade
(EE) Failed to load module "fglrx" (loader failed, 7)
$ apt-get update
</pre>
</pre>
'''Solution:'''
 
Install a newer C library and recompile the kernel:
 
 
<pre>
<pre>
sudo apt-get install libstdc++5
$ module-assistant prepare
$ module-assistant update
$ module-assistant a-i fglrx
</pre>
</pre>


== Update the xorg.conf file ==
<pre>
<pre>
sudo aticonfig --initial
$ aticonfig --initial
</pre>
</pre>


Now restart X, or reboot for the driver changes to take effect.
(reboot computer)


== Confirm that it worked ==
<pre>
<pre>
$ fglrxinfo
$ fglrxinfo
</pre>
<pre>
display: :0.0  screen: 0
display: :0.0  screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL vendor string: ATI Technologies Inc.
Line 88: Line 108:
OpenGL version string: 1.3.5461 (X4.3.0-8.19.10)
OpenGL version string: 1.3.5461 (X4.3.0-8.19.10)
</pre>
</pre>
If it didn't work, you may need to run:
<pre>
# mkdir -p /usr/X11R6/lib/modules/dri
# ln -s /usr/lib/dri/fglrx_dri.so /usr/X11R6/lib/modules/dri
</pre>
Thanks to Maciej Matysiak for the clear debug [http://lists.debian.org/debian-amd64/2006/02/msg00217.html here] and solution [http://lists.debian.org/debian-amd64/2006/02/msg00311.html here].
If it's still not working, try:
<pre>
# rm /usr/lib/libGL.so*
# rm /usr/X11R6/lib/libGL.so*
# cd /usr/X11R6/lib
# cp /usr/lib/fglrx/diversions/lib/libGL.so.1.2 .
# ln -s libGL.so.1.2 libGL.so.1
# ldconfig
</pre>
and confirm that 'ldd /usr/bin/fglrxinfo' is pointing to the right one.
[[Category:Installation Documentation]]

Latest revision as of 22:25, 28 February 2013

2007-11, see http://wiki.debian.org/AtiHowTo


As of November 2005, ATI's drivers are in the non-free area of Debian. Make sure your /etc/apt/sources.list contains "contrib non-free" as well as main. You will, however, have to build your own kernel modules.

Warning: do not mix the non-free packages with the packages created by the installer as they will conflict in non-obvious ways. Before switching from one method to another, completely remove all fglrx-related packages. Never do upgrade from one method to another directly!

The buildpackage will fail on Debian 6.0 (Squeeze). They're quite broken.

In addition, the generic installer will fail if your / partition has less space available than it wants, even if all of the files would be placed on a different partition (such as /usr).

Update the xorg.conf file (Configuration)

sudo aticonfig --initial

Now restart X, or reboot for the driver changes to take effect.

Confirm that it worked

$ fglrxinfo
display: :0.0  screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: MOBILITY RADEON 9700 Generic
OpenGL version string: 1.3.5461 (X4.3.0-8.19.10)

If it didn't work, you may need to run:

# mkdir -p /usr/X11R6/lib/modules/dri
# ln -s /usr/lib/dri/fglrx_dri.so /usr/X11R6/lib/modules/dri

Thanks to Maciej Matysiak for the clear debug here and solution here.

If it's still not working, try:

# rm /usr/lib/libGL.so*
# rm /usr/X11R6/lib/libGL.so*
# cd /usr/X11R6/lib
# cp /usr/lib/fglrx/diversions/lib/libGL.so.1.2 .
# ln -s libGL.so.1.2 libGL.so.1
# ldconfig

and confirm that 'ldd /usr/bin/fglrxinfo' is pointing to the right one.


People seem to be experiencing a broken libGL.so.1 after installing 8.41 on Debian/etch. If `amdcccle` complains that libGL.so.1 does't exist, DONT DELETE /usr/lib/libGL.so.1.2 LIKE IT SAYS ABOVE. Make symbolic link to libGL.so.1.2 (which is included in fglrx package - 14 megs in size):

# cd /usr/lib
# ln -s libGL.so.1.2 libGL.so.1

This work fine for ATI mobility radeon 1400

(make backup the olds xorg.* files in your folder)

$ cp /etc/X11/xorg.conf /home/username/xorg.conf.old
$ cp /var/log/Xorg.0.log /home/username/Xorg.0.log.old

(add contrib non-free in repositories)

$ apt-get update
$ apt-get install module-assistant build-essential fakeroot dh-make debconf bzip2

(from www.amd.com download the current version of driver for your ATI)

$ sh ./ati-driver-installer-8.40.4-x86.x86_64.run --buildpkg Debian/lenny
$ apt-get install fglrx-amdcccle_8.40.4-1_i386.deb
$ apt-get install fglrx-driver-_8.40.4-1_i386.deb
$ apt-get install fglrx-driver-dev_8.40.4-1_i386.deb
$ apt-get install fglrx-kernel-src_8.40.4-1_i386.deb
$ apt-get -f upgrade
$ apt-get update


$ module-assistant prepare
$ module-assistant update
$ module-assistant a-i fglrx
$ aticonfig --initial

(reboot computer)

$ fglrxinfo
display: :0.0  screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: MOBILITY RADEON 9700 Generic
OpenGL version string: 1.3.5461 (X4.3.0-8.19.10)