[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

HOWTO: module-assistant on amd64



I have just installed fglrx on my amd64 system, and thought I should
contribute with a small howto and some gotchas.

First, the gotchas:
 * On pure64 the default compiler is gcc-3.3. However, the kernel is
   compiled with gcc-3.4, since 3.4 was the first gcc with multiarch
   support. There is a gcc-3.4 package, just install it. In order to
   make fglrx-installer use the correct gcc, the symlink /usr/bin/gcc
   needs to be changed while you compile. Setting $CC or $GCC does not
   work, you need to change the symlink temporarily. Perhaps the
   packages call /usr/bin/gcc directly somewhere?

 * In the documentation on http://debian-amd64.alioth.debian.org/ the
   path /var/chroot/sid-ia32 is used throughout the examples for the
   chroot, however the driver uses /emul/ia32-linux to store the ia32
   libraries. I just did a 
        mkdir -p /emul && ln -s /var/chroot/sid-ia32 /emul/ia32-linux
   and the drivers were put where they should on my system. Perhaps the
   packages should have a debconf setting for this path?

After resolving the boring gotchas, this is all you need to do:

  # Add mirror with binaries
  echo 'http://rufus.hackish.org/~rufus/files/fglrx/ ./' >> /etc/apt/sources.list
  
  # Install needed tools (I might have forgot one or two, you'll notice)
  aptitude install module-assistant gcc-3.4
  
  # Install driver and kernel headers
  aptitude install fglrx-driver fglrx-kernel-src kernel-headers-`uname -r`
 
  # Create and install modules
  module-assistant auto-install fglrx-kernel
  
  # Create the magic symlink so the driver finds the libs =)
  ln -s lib /usr/X11R6/lib64
  
  # Test
  modprobe fglrx

The next time you change your drivers or kernel version, just run
module-assistant auto-install fglrx-kernel again and reload the module
and X :-)
  
-- 
Knut Auvor Grythe