Copied from: https://litecointalk.org/index.php?topic=2542.0
Running with all ATI Cards, most of this guide can be used for any linux
Download: (x86!)
Catalyst 13.4
http://support.amd.com/de/gpudownload/linux/Pages/radeon_linux.aspx?type=2.4.1&product=2.4.1.3.42&lang=English
APP-SDK 2.8
http://developer.amd.com/tools/heterogeneous-computing/amd-accelerated-parallel-processing-app-sdk/downloads/
and ADL 5.0
http://developer.amd.com/tools/graphics-development/display-library-adl-sdk/
Uninstall current driver (might not be necessary)
apt-get update
apt-get install ftpd
/usr/share/ati/fglrx-uninstall.sh --force
coldreboot
FTP catalyst driver to /tmp/
cd /tmp
unzip amd-catalyst-13.4-linux-x86.x86_64.zip
chmod +x amd-catalyst-13.4-linux-x86.x86_64.run
./amd-catalyst-13.4-linux-x86.x86_64.run --force
aticonfig --adapter=all --initial
coldreboot
FTP app-sdk to /tmp/
cd /tmp
tar xfvz AMD-APP-SDK-v2.8-lnx32.tgz
chmod +x Install-AMD-APP.sh
./Install-AMD-APP.sh
rm -rf /opt/AMD-APP-SDK-v2.4-lnx32/
coldreboot
FTP adl include/ folder to /tmp/
ln -sf /opt/AMDAPP/include/CL /usr/include
ln -sf /opt/AMDAPP/lib/x86/* /usr/lib/
ldconfig
cd /opt/miners
rm -rf cgminer
git clone https://github.com/ckolivas/cgminer.git
cp /tmp/include/* cgminer/ADL_SDK/
cd cgminer
./autogen.sh
CFLAGS="-O2 -Wall -march=native -I/usr/include/CL" LDFLAGS="-L/usr/lib" ./configure --enable-scrypt
make
and done 8)
Run:
export DISPLAY=:0
export GPU_USE_SYNC_OBJECTS=1
export GPU_MAX_ALLOC_PERCENT=100
./cgminer -n
to check if your card is listed and everything went as planned…
Add these into /etc/init.d/mine
export DISPLAY=:0
export GPU_USE_SYNC_OBJECTS=1
export GPU_MAX_ALLOC_PERCENT=100