Arch Linux: Difference between revisions

From cchtml.com
(ltLzJxaIQrh)
Line 1: Line 1:
Installing and using fglrx drivers on Arch Linux should be a piece of cake, as the distro provides pre-built packages in its official repos, accessible through the pacman package manager.
A miunte saved is a minute earned, and this saved hours!
 
The installation instructions I've taken straight from Arch's own wiki page, linked below in the External Resources section.
 
==Installation==
 
 
 
===Before you start===
You'll need to install the necessary programs
{{Box Terminal|
<nowiki>#</nowiki> pacman -S xf86-input-evdev<br />
<nowiki>#</nowiki> pacman -S xf86-input-mouse<br/>
<nowiki>#</nowiki> pacman -S xf86-input-keyboard<br/>
<nowiki>#</nowiki> /etc/rc.d/hal start<br/>
<nowiki>#</nowiki> pacman -Rd libgl
}}
<br/>
{{Box Terminal|
<nowiki>#</nowiki> pacman -Sy catalyst catalyst-utils<br/>
<nowiki>#</nowiki> aticonfig --initial     
}}
 
 
 
====Notes====
 
* These packages contain '''only''' the kernel module, and depend on the <code>catalyst-utils</code> package.  The <code>catalyst-utils</code> package is kernel-independent and provides the libraries and utilities for Xorg, including ATI's own <code>libGL.so</code>.
* After installing the package, you'll need to either <code>source /etc/profile</code> or log out, then back in to set up the environment properly.
* If you run both <code>kernel26</code> and <code>kernel26beyond</code> then install both catalyst module packages.  They won't conflict with one another.
 
=== Custom Kernels ===
 
To install catalyst for a custom kernel, you'll need to build your own <code>catalyst-$kernel</code> package, containing the kernel module compiled specifically for your kernel.
 
If you are at all uncomfortable or inexperienced making packages, read up Arch's [http://wiki.archlinux.org/index.php/ABS ABS] wiki page first so things go smoothly.
 
==== Obtaining PKGBUILD ====
Obtain the <code>PKGBUILD</code> and <code>catalyst.install</code> files from CVS or ABS.  Either:
 
* Visit http://www.archlinux.org/packages.php?id=10416 and click "View CVS Entries" to find them, or
* Run <code>abs</code> as root and locate the files in <code>/var/abs/extra/modules/catalyst</code>.
 
==== Editing the PKGBUILD and building ====
Three changes need to be made here:
 
'''First''', change
    pkgname=catalyst
to
    pkgname=catalyst-KERNEL_NAME
where KERNEL_NAME is whatever you want (custom, mm, themostawesomekernelever)
 
'''Second''', remove <code>kernel26</code> from the dependencies list.
 
'''Third''', change
    _kernver=2.6.15-ARCH
to
    _kernver=`uname -r`
(or directly insert the output of uname -r '''when running your custom kernel''' there)
 
Finally, build and install the package.  (<code>makepkg -i</code> or <code>makepkg</code> followed by <code>pacman -A pkgname.pkg.tar.gz</code>)
 
==== Notes ====
 
* No changes need to be made to the <code>catalyst-utils</code> package, which is completely kernel-independent.  '''All''' you need to do is compile a kernel module.
* To build and run the catalyst kernel module with 2.6.16 kernels, patches are needed! Check out the cvs entries for catalyst in testing for the required patch.
 
==Related Resources==
* [http://www.archlinux.org Arch Linux Homepage]
* [http://bbs.archlinux.org Arch Linux Forums]
* http://wiki.archlinux.org/index.php/ATI
 
{{VCT}}
[[Category:Distributions]]

Revision as of 11:51, 22 January 2012

A miunte saved is a minute earned, and this saved hours!