How to Install ATI/AMD Catalyst 13.4 Linux Driver in Ubuntu 10.04

首先在AMD官网http://support.amd.com/en-us/download下载amd-driver-installer-catalyst-13-4-linux-x86.x86_64.zip

根据官方的Release Note描述,此版本支持的Linux发行版本为:

    • Red Hat Enterprise Linux Suite 6.3 and 6.4
    • SUSE® Linux Enterprise 11 SP3
    • OpenSUSE 11.4 and 12.1
    • Ubuntu 12.04.2 and 13.04
由于本人Linux为Ubuntu 10.04 LTS版本(内核2.6.32-41-generic,显卡: AMD Radeon™ HD 6700M Series),所以将amd-driver-installer-catalyst-13-4-linux-x86.x86_64.zip解压出来的amd-driver-installer-catalyst-13-4-x86.x86_64.run文件直接进行安装时,并没有成功.

根据官方文档http://wiki.cchtml.com/index.php/Ubuntu_Lucid_Installation_Guide在执行下面的命令

sudo sh amd-driver-installer-catalyst-13-4-x86.x86_64.run --buildpkg Ubuntu/lucid

进行安装时,出现以下错误:

dh_install: fglrx missing files (arch/#SRCOTHERARCH#/etc/OpenCL/vendors/*.icd), aborting

现将具体安装步骤记录如下:

打开新立得软件包管理软件,搜索分别搜索amd、ati、fglrx,将搜索到的软件包全部卸载掉,在终端执行以下命令:

$ sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
$ sudo apt-get update
$ sudo apt-get install fglrx
$ sudo apt-get install build-essential cdbs fakeroot dh-make debhelper debconf libstdc++6 dkms libqtgui4 wget execstack libelfg0
在安装过程中,可能还需要一些额外的外部程序,根据命令自行安装

https://launchpad.net/~happyaron/+archive/kernel/+build/2163444下载dh-modaliases_0.8.0ubuntu3~lucid1_all.deb并安装

解压安装文件amd-driver-installer-catalyst-13-4-x86.x86_64.run到文件夹driver:

sh amd-driver-installer-catalyst-13-4-x86.x86_64.run --extract driver
cd driver
根据 http://parallelplusplus.blogspot.ca/2013/01/problems-with-amd-catalyst-131-on-ubuntu.html(Problems with AMD Catalyst 13.1 on Ubuntu,可能需要翻过去才能看到)解决 dh_install: fglrx missing files (arch/#SRCOTHERARCH#/etc/OpenCL/vendors/*.icd), aborting错误,其全文为:

AMD Catalyst 13.1 driver was released two days ago but I encountered problems when I tried to generate Ubuntu packages for both 10.04 & 12.04 releases.

In case anybody is interested, I'm providing some brief workarounds here:
One has to extract the driver files using the "--extract" option.
In both cases the problem was due to the "rules" file located under the "packages/Ubuntu/dists/{precise/lucid}" directory. Thus, the following changes had to be made in "rules" file.

In case of Ubuntu 12.04 the following line:
dh_install -p$(PKG_driver) "arch/x86_64/usr/share/ati/lib" "$(datadir)/ati"
had to be replaced with:
dh_install -p$(PKG_driver) "arch/x86/usr/share/ati/lib" "$(datadir)/ati"


In case of Ubuntu 10.04 the following line had to be appended after line 69:
 SRC_other_arch := x86_64
and the following line had to be appended after line 151:
  -e "s|#SRCOTHERARCH#|$(SRC_other_arch)|g" \

All packages then should be created as usual by giving:
 sudo ./ati-installer.sh 9.012 --buildpkg Ubuntu/precise
or
 sudo ./ati-installer.sh 9.012 --buildpkg Ubuntu/lucid

也就是根据自己的实际情况(ubuntu 10.04/12.04)修改packages/Ubuntu/dists/lucid/rules文件,由于我系统为ubuntu 10.04,实际修改如下:

L151行后添加:

-e "s|#SRCOTHERARCH#|$(SRC_other_arch)|g"

L36行后添加

SRC_other_arch := x86_64

保存文件.在driver目录下执行命令:

sudo ./ati-installer.sh 9.012 --buildpkg Ubuntu/lucid
命令执行成功后,

返回driver的上层目录并安装驱动及管理工具:

cd ..
sudo dpkg -i fglrx_*.deb

至此安装结束,根据以下命令配置驱动:

sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.bak
sudo aticonfig --initial -f

重启电脑即可.

相关参考文档:

http://wiki.cchtml.com/index.php/Troubleshooting

http://blog.sina.com.cn/s/blog_49cfe3f10100kft0.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值