Jonathan Kaye ha scritto:
Hi Davide,
Here's how I did it:
1. Remove all fglrx packages currently installed.
2. as root or using sudo
  a. go to /usr/src/modules and rm -r fglrx
  b. if you an flgrx-kernel .deb file in /usr/src, delete it.
Now to build the new driver.
1. Go to the folder where you have downloaded the
ati-driver-installer-8.42.3-x86.x86_64.run file
2. Make sure the file is executable
3. As root or using sudo
  a. #./ati-driver-installer-8.42.3-x86.x86_64.run --buildpkg Debian/lenny

Thanks again for this simple howto. It was more or less what I tried to do myself, but building the package does not work. It fails like this (long log follows):

Created directory fglrx-install.zq4758
Verifying archive integrity... All good.
Uncompressing ATI Proprietary Linux Driver-8.42.3....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
==================================================
 ATI Technologies Linux Driver Installer/Packager
==================================================
Generating package: Debian/sid
Package build failed!
Package build utility output:
dpkg-buildpackage: source package fglrx-installer
dpkg-buildpackage: source version 8.42.3-1
dpkg-buildpackage: source changed by ATI Technologies Inc. <http://ati.amd.com/support/driver.html>
 debian/rules build
dpkg-buildpackage: host architecture amd64
dh_testdir
# move licenses away from binary dir
if [ ! -d usr/share/doc/fglrx ]; then \
          mkdir -p usr/share/doc/fglrx; \
          mv usr/X11R6/bin/LICENSE.* usr/share/doc/fglrx; \
        fi
# set executable on user apps
find usr/X11R6/bin -type f | xargs chmod a+x
# remove exec bit from files that don't deserve it
find usr/X11R6/include \
             usr/X11R6/lib \
             usr/X11R6/lib64 \
             usr/share usr/src     -type f | xargs chmod -x
find: usr/X11R6/lib: No such file or directory
find lib -not -name "*.sh" -type f | xargs chmod -x
find lib      -name "*.sh" -type f | xargs chmod +x
# set proper permissions on /etc files
if [ -d etc/ati ]; then                 \
                chmod 755 etc/ati ;                     \
                chmod 644 etc/ati/* ;           \
                chmod a+x etc/ati/*.sh ;        \
        fi
if [ -f debian/fglrx.default ]; then \
          mv -v debian/fglrx.default debian/fglrx; \
        fi
`debian/fglrx.default' -> `debian/fglrx'
# remove exec bit from 64-bit libs too
find usr/X11R6/lib64       -type f | xargs chmod -x
 debian/rules binary
dh_testdir
# move licenses away from binary dir
if [ ! -d usr/share/doc/fglrx ]; then \
          mkdir -p usr/share/doc/fglrx; \
          mv usr/X11R6/bin/LICENSE.* usr/share/doc/fglrx; \
        fi
# set executable on user apps
find usr/X11R6/bin -type f | xargs chmod a+x
# remove exec bit from files that don't deserve it
find usr/X11R6/include \
             usr/X11R6/lib \
             usr/X11R6/lib64 \
             usr/share usr/src     -type f | xargs chmod -x
find: usr/X11R6/lib: No such file or directory
find lib -not -name "*.sh" -type f | xargs chmod -x
find lib      -name "*.sh" -type f | xargs chmod +x
# set proper permissions on /etc files
if [ -d etc/ati ]; then                 \
                chmod 755 etc/ati ;                     \
                chmod 644 etc/ati/* ;           \
                chmod a+x etc/ati/*.sh ;        \
        fi
if [ -f debian/fglrx.default ]; then \
          mv -v debian/fglrx.default debian/fglrx; \
        fi
# remove exec bit from 64-bit libs too
find usr/X11R6/lib64       -type f | xargs chmod -x
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# Create the directories to install into
dh_installdirs -pfglrx-driver \
                usr \
                usr/lib/xorg \
                usr/lib/xorg/modules \
                usr/lib/dri \
                usr/bin \
                usr/sbin \
                etc/acpi \
                etc/acpi/events \
                etc/default \
                etc/X11/Xsession.d
# the amd64 package includes 32bit compatibility libraries
dh_installdirs -pfglrx-driver \
                emul/ia32-linux/usr/lib \
                emul/ia32-linux/usr/lib/xorg \
                emul/ia32-linux/usr/lib/xorg/modules \
                emul/ia32-linux/usr/lib/dri
dh_installdirs -pfglrx-driver-dev \
                usr \
                usr/include \
                usr/lib
dh_installdirs -pfglrx-kernel-src \
                usr/src/modules/fglrx \
                usr/src/modules/fglrx/debian
dh_installdirs -A -pfglrx-amdcccle \
                usr \
                usr/bin \
                usr/share \
                usr/share/applnk \
                usr/share/applications \
                usr/share/icons \
                usr/share/pixmaps
dh_installdirs -p \
                usr/src
dh_install
dh_install -pfglrx-driver "usr/X11R6/bin/fgl*"      "usr/bin"
dh_install -pfglrx-driver "usr/X11R6/bin/aticonfig" "usr/bin"
dh_install -pfglrx-driver "usr/sbin/atieventsd"     "usr/sbin"
dh_installman -pfglrx-driver "usr/share/man/man8/atieventsd.8"
# amd64 needs some library redirection
dh_install -pfglrx-driver "usr/X11R6/lib64/*.so*"           "usr/lib"
dh_install -pfglrx-driver "usr/X11R6/lib64/modules/dri"     "usr/lib"
dh_install -pfglrx-driver "usr/X11R6/lib64/modules/linux" "usr/lib/xorg/modules" dh_install -pfglrx-driver "usr/X11R6/lib64/modules/drivers" "usr/lib/xorg/modules" dh_install -pfglrx-driver "usr/X11R6/lib64/modules/*.so" "usr/lib/xorg/modules" dh_install -pfglrx-driver "usr/X11R6/lib64/modules/*.a" "usr/lib/xorg/modules" dh_install -pfglrx-driver "usr/X11R6/lib/*.so*" "emul/ia32-linux/usr/lib" dh_install -pfglrx-driver "usr/X11R6/lib/modules/dri" "emul/ia32-linux/usr/lib"
cp: cannot stat `./usr/X11R6/lib/modules/dri': No such file or directory
dh_install: command returned error code 256
make: *** [binary] Error 1
dpkg-buildpackage: failure: debian/rules binary gave error exit status 2
Removing temporary directory: fglrx-install.zq4758

Why? Is it because I am on amd64? I will try to reinstall from scratch everything which is GL-related...

Davide

--
A tautology is a thing which is tautological.
--
Time flies like an arrow.  Fruit flies like a banana.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to