atfa 发表于 2005-8-18 21:29:05

Debian ATI 3D驱动傻瓜教程[ZT]

linuxsir 首发
菜鸟我刚刚接触Debian不久(其实时间也不短了,但是没有深研究),在各位前辈的指导下,成功完成了X的安装以及字体AA等设定,但是,ATI驱动程序的安装一直没有解决,按照网络上一些文章也未能成功。在IRC.debian.org的国外友人指导下,终于于今天完成,但是过程仍旧有不尽人意之处,还望大家指教。

环境:Debian Sarge (2.6.8-2-386) AMD Barton 2500+
ATI 9550
1G DDR400
WD800JB

采用以下驱动http://xoomer.virgilio.it/flavio.stanchina/debian/fglrx-installer.html%C7%FD%B6%AF

按照说明
第一步:
apt-get install kernel-source-2.x.y
cd /usr/src
tar xjvf kernel-source-2.x.y.tar.bz2
cd kernel-source-2.x.y
cp /boot/config-2.x.y-flavour .config
make-kpkg --append-to-version "-flavour" --revision 2.x.y-z --config old configure

其中2.x.y 用当前的linux内核版本代替 比如说我就用2.8.6

2.x.y-z 用 2.8.6-2 (用uname -a 查询)代替

"-flavour" 用 -2-386 代替(没有引号!)

完成
第二步

为了安全起见
在 XF86Config-4 里面的 Section "Device"
加入
Option "UseInternalAGPGART" "no"

如果出现问题 就将no 改成 yes 用内核的支持程序

第三步

下面我们要做的是检查 debhelper, kernel-package and fakeroot是否安装
apt-get install debhelper kernel-package fakeroot

然后我们有两个选择
一个是利用fglrx-installer 下载 deb包文件
还有就是利用apt
fglrx-installer 还需要下载其他的一些支持包,不幸的是我的系统有些包尚且不能用
不过fglrx-installer从ATI网站下载这些东西,ATI网站速度也不快 所以我们用第二种方法

在sources.list当中加入:
deb http://www.stanchina.net/~flavio/debian-fglrx-xfree86/ ./ #Xfree86 4.3.0
deb http://www.stanchina.net/~flavio/debian-fglrx-xorg/ ./ #X.Org
deb http://www.stanchina.net/~flavio/de...-xfree86-amd64/ ./
#Xfree86 for AMD64
选择适合自己的 加入sources.list

以后还要加入这一条 顺便加上吧
deb http://www.stanchina.net/~flavio/debian-fglrx-modules/ ./

然后 apt-get install fglrx-driver fglrx-kernel-src

这样 我们就安装好了fglrx驱动程序

第四步 安装驱动内核模块

这里有很多种方法 任选
(0)
假设你不知道什么编译内核 那么直接下编译好了的

apt-get install packagename
packagename 按下表替换
fglrx-control-qt3 - Control panel for the ATI graphics accelerators
fglrx-driver-dev - Video driver for the ATI graphics accelerators (devel files)
fglrx-driver - Video driver for the ATI graphics accelerators
fglrx-kernel-src - Kernel module source for the ATI graphics accelerators
fglrx-sources - Source code for the ATI graphics accelerators control panel
fglrx-kernel-2.4.27-2-386 - ATI binary kernel module for Linux 2.4.27-2-386
fglrx-kernel-2.4.27-2-586tsc - ATI binary kernel module for Linux 2.4.27-2-586tsc
fglrx-kernel-2.4.27-2-686 - ATI binary kernel module for Linux 2.4.27-2-686
fglrx-kernel-2.4.27-2-686-smp - ATI binary kernel module for Linux 2.4.27-2-686-smp
fglrx-kernel-2.4.27-2-k6 - ATI binary kernel module for Linux 2.4.27-2-k6
fglrx-kernel-2.4.27-2-k7 - ATI binary kernel module for Linux 2.4.27-2-k7
fglrx-kernel-2.4.27-2-k7-smp - ATI binary kernel module for Linux 2.4.27-2-k7-smp
fglrx-kernel-2.6.11-1-386 - ATI binary kernel module for Linux 2.6.11-1-386
fglrx-kernel-2.6.11-1-686 - ATI binary kernel module for Linux 2.6.11-1-686
fglrx-kernel-2.6.11-1-686-smp - ATI binary kernel module for Linux 2.6.11-1-686-smp
fglrx-kernel-2.6.11-1-k7 - ATI binary kernel module for Linux 2.6.11-1-k7
fglrx-kernel-2.6.11-1-k7-smp - ATI binary kernel module for Linux 2.6.11-1-k7-smp
fglrx-kernel-2.6.8-2-386 - ATI binary kernel module for Linux 2.6.8-2-386
fglrx-kernel-2.6.8-2-686 - ATI binary kernel module for Linux 2.6.8-2-686
fglrx-kernel-2.6.8-2-686-smp - ATI binary kernel module for Linux 2.6.8-2-686-smp
fglrx-kernel-2.6.8-2-k7 - ATI binary kernel module for Linux 2.6.8-2-k7
fglrx-kernel-2.6.8-2-k7-smp - ATI binary kernel module for Linux 2.6.8-2-k7-smp


(1)
cd /usr/src
bzcat fglrx.tar.bz2 | tar x

然后 cd /usr/src/modules/fglrx
./make.sh
mkdir /lib/modules/$(uname -r)/misc
cp fglrx.ko /lib/modules/$(uname -r)/misc/
depmod -ae
(root 下操作)

(2)
module-assistant prepare
module-assistant a-i fglrx


上面(1)和(2)结束以后还要执行modprobe fglrx 安装模块

第五步
调整XF86Config-4
将Load "extmod" 替换成

# Load "extmod" but omit DGA extension
# (the DGA extension is broken in the fglrx driver)
SubSection "extmod"
Option "omit xfree86-dga"
EndSubSection

Section "Device"按如下修改
Section "Device"
Identifier "ATI"
Driver "fglrx" # this is the important bit
Option "VideoOverlay" "on"
Option "OpenGLOverlay" "off"
Option "UseInternalAGPGART" "no" #出现问题改成yes
EndSection

Section "Screen" 中的 Device 改成 ATI

Section "DRI"如下修改
Section "DRI"
Mode 0666
EndSection

这里也有人用fglrxconfig 不过我用过了以后X无法起动 可能是Mouse端口不对
所以还是手工修改为好

至此 如果一切正常,ATI 3D 驱动就可以使用了

进入X 运行fgl_glxgears 和glxgears测试

如果斑竹觉得有价值 请加精哦

欢迎和我交流 小弟还有很多不懂的哦~
Email: [email protected]
QQ: 2001269

atfa 发表于 2005-8-18 21:29:35

http://xoomer.virgilio.it/flavio.stanchina/debian/fglrx-installer.html

cnhnln 发表于 2005-8-18 23:26:35

没A卡,看看,顺便帮顶

goodboy1881 发表于 2005-8-19 09:39:29

一直用这个驱动,一开半透明的时候系统就不认我的9600。更要命的是2.6.12在debian下面似乎没有.
kernel-source-2.6.12.1,kernel.org上面是2.6.12-5的


十分钟后,我就在kernel上面找到了2.6.12-1,ft

linky_fan 发表于 2005-8-19 22:42:31

虽然俺不用a卡的, 不过还是为了那些在受a卡折磨的兄弟加个精了, 谢谢atfa了. :-D

deepsleeper 发表于 2005-8-19 22:42:46

再加一篇,可能对有些opengl程序有帮助

原文地址http://www.xsibase.com/forum/index.php?board=9;action=display;threadid=19062

when i start XSI i get as far as to choose my keyboard pref's, then it crashes with a segmentation fault. Behavior 2.0 in turn works fine (only of course when i try to open a xsi view). has anyone some ideas for me? i'd be really happy to get xsi running under linux, it's just my prefered os ;-)

..................

thanks for the hint with the opengl driver. it was something of the kind...
for everybody who's interested: additionally to the xlibmesa-gl1-dri-trunk you also need the s3tc library (the dri installer should point out that some opengl application might not work without them and ... well they are right). to get this running:
1. apt-get install xlibmesa-dev
2. download s3tc sources from http://homepage.hispeed.ch/rscheidegger/dri_experimental/s3tc_index.html (check the readme, especially the section about legal terms)
3. in the download dir run: make , make install, ldconfig
now s3tc support should be installed to your dri driver and everything works fine. (if you haven't already dri, check http://dri.freedesktop.org/wiki/Download)
the system i tried with: intel pentium 4, ati mobility 7500, debian kernel 2.6.8, xfce 4.2 (works fine ;-)

goodboy1881 发表于 2005-8-22 13:56:16

在2.6.12上面编译的话似乎需要加patch,否则编译会失败,具体的我也不太清楚。。。

REISTLIN 发表于 2005-8-24 22:20:05

问题!我在执行下面这步的时候:

cd /usr/src/modules/fglrx
./make.sh

提示是:

Link /lib/modules/2.6.8-2-386/build does not exist (or is not a link)

求助啊!各位。谢谢。

linky_fan 发表于 2005-8-25 10:55:25

你的kernel pkg装了没有(source)?

REISTLIN 发表于 2005-8-29 09:15:50

装了啊。
页: [1]
查看完整版本: Debian ATI 3D驱动傻瓜教程[ZT]