LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
123
返回列表 发新帖
楼主: jeoncanon

nvidia驱动模块的疑问?

[复制链接]
发表于 2006-10-11 11:30:45 | 显示全部楼层
Post by fiag
编译加载成功,多谢。
我的源是
deb http://debian.cn99.com/debian/ testing main contrib non-free
deb-src http://debian.cn99.com/debian/ testing main contrib non-free

deb http://mirrors.geekbone.org/debian/ testing main contrib non-free
deb-src http://mirrors.geekbone.org/debian/ testing main contrib non-free

deb http://security.debian.org/ testing/updates main

能找到这些包。

achaoge兄写的很简略。

这篇HOWTO很详全,介绍了好几种方法。
http://home.comcast.net/~andrex/Debian-nVidia/installation.html

我的步骤整理如下:
1.安装内核相对应的 kernel-headers
# apt-get install kernel-headers-$(uname -r)

2,安装 nvidia-kernel-source,安装 nvidia-kernel-common
# apt-get install nvidia-kernel-source nvidia-kernel-common

3,进入/usr/src,将nvidia-kernel-source解压
# cd /usr/src
# tar xzf nvidia-kernel-source.tar.gz

4,设变量
# cd modules/nvidia-kernel
# export KVERS=$(uname -r)
# export KSRC=/usr/src/kernel-headers-$KVERS

5.编译模块
# cd /usr/src/modules/nvidia-kernel
# debian/rules binary_modules

6.安装生成的deb包
# dpkg -i /usr/src/modules/nvidia-kernel-*.deb

7.安装NVIDIA glx
# apt-get install nvidia-glx

8.修改X配置
# editor /etc/X11/XF86Config-4

"Module" section
Load "glx"

删除"dri" "GLCore"模块的加载

"Device" section
Driver "nvidia"

9.添加video用户组
# addgroup --system video
# adduser $USER video

$USER 是用来看影视的用户名
系统似乎已经建立过video用户组了。
10.确保nvidia模块在内核启动时加载
# grep -q ^nvidia /etc/modules || echo nvidia >> /etc/modules

11. 重启内核或者X看效果。



救命!做到第5步编译模块时出错!错误如下
word' differ in signedness
nv.c: In function 'nv_get_kern_phys_address':
nv.c:2637: error: 'CONFIG_PAGE_OFFSET' undeclared (first use in this function)
nv.c: In function 'nv_alloc_pages':
nv.c:2702: warning: pointer targets in passing argument 5 of 'KernAllocAGPPages' differ in signedness
nv.c:2732: warning: pointer targets in passing argument 6 of 'rm_alloc_agp_pages' differ in signedness
nv.c: In function 'nv_agp_init':
nv.c:3092: error: too few arguments to function 'agp_backend_acquire'
nv.c:3094: error: too few arguments to function 'agp_backend_release'
nv.c: In function 'nvos_count_devices':
nv.c:3232: warning: assignment makes pointer from integer without a cast
nv.c:3237: warning: assignment makes pointer from integer without a cast
make[1]: *** [nv.o] 错误 1
make[1]: Leaving directory `/usr/src/modules/nvidia-kernel/nv'
make: *** [build-stamp] 错误 2
回复 支持 反对

使用道具 举报

发表于 2007-3-18 21:17:49 | 显示全部楼层
小弟有两点疑惑:
我在安装Debian下Nvidia 显卡时,是按照您的操作下安装的。
但就在按照过后,原来还可以在图形化的界面里,但是现在怎么突然不能进去了。提示我
大家好,又有一个问题麻烦各位。我在安装完所有的x-window-system gnome gdm ;nvidia驱动等时候。用命令startx启动时发现如下错误:
do not start x server(your graphical interface)
the version of XFree86 has been extensively modified by the Debian Project ,and is not supported by the XFree86
Project.
(EE)No devices detected
    no screens found
请教,我该怎么设置才能最终成功显示桌面呢?

还有一个问题是:
我两种安装办法:
第一种,是最基础的安装,然后在这个之后x-window-system gnome gdm ;也能进入图形化界面,但是非常的黑暗,根本就看不见图标等。
第二中,是在安装时候,我选择了桌面安装,之后,进入图形化界面,里面要比上一种清晰的多,基本上也不用安装;nvidia驱动,我按照http://www.cublog.cn/u/12267/sho ... 而进不去了。
这两种怎么图形化的显示程度差别这么大?
十分不理解,请您回复。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表