LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: wohensha

nvidia驱动安装方法[已经更新]──2004-12-25

[复制链接]
发表于 2003-3-10 09:46:48 | 显示全部楼层
昨天我把内核升级到了2.4.20 ,再次编译NVIDIA_kernel_4191源码
还是提示make:***No rule to make target `nv-kernel.o`,needed by `nvidia.o` .Stop.
我就想不明白了。
查看了一个,编译时生成的.o文件中没有nv-kernel.o,再看了一下makefile中也没有生成nv-kernel.o,难道在源码包中?
果不出其然。
我真不明白NVIDIA公司,既然这个nv-kernel.o是随包安装的,为什么还要在makefile 的clean段中把它给删了呢?
从包中重新解出后,一切ok!,不过说实话,我的这个4191还不如原来的3123,3D速度反而慢了一些。

最后要谢谢北南南北兄这段时间为我费心了!!
虽然这次的升级不是很顺利,但回想一下的感受同YeahKing
兄的还是差不多-又学到了不少知识。
发表于 2003-3-10 14:05:56 | 显示全部楼层

Re: nvidia发布最新驱动4191!!

最初由 wohensha 发布

[root@linuxsir01 root]# cd NVIDIA_GLX-1.0-4191

[root@linuxsir01 NVIDIA_GLX-1.0-4191]#make

提示:install:usr/X11R6/lib/modules/drivers/nvidia_drv.o
                  not such file or directory
                  make:***[default] Error
按3楼的方法修改 etc/X11/XF86Config文件后无法启动X。
我的配置是:P42.0G,华硕P4SE主板,512M DDR内存,显卡是nvidia Geforce
linux为红旗2.0中文版。现只能用256色 640*480。
菜鸟请求指点!
发表于 2003-3-10 20:39:40 | 显示全部楼层
编译时提示缺少 nvidia_drv.o这个文件。
这个文件在GLX的安装包中,你先make GLX然后再按正常安装方法试一次。
发表于 2003-3-12 09:25:51 | 显示全部楼层

这正常吗?

我的显卡是nvidia Geforce4 MX 440,在windows下能用24位真彩色,1024*768象素。好不容易把显卡驱动并设置好(只能用24位,800*600象素)了,但发觉在linux下的图案效果看上去比在Windows下要明显逊色一些。即使在windows下用16位色彩,效果也要比在linux下好。这是否正常呢?
发表于 2003-3-12 11:06:20 | 显示全部楼层
可能是显示器上不了1024*768,说一下显示器?
如果是redhat 8.0
我们可以用
#redhat-config-xfree86来试一下
发表于 2003-3-12 14:05:25 | 显示全部楼层
显示器上不了1024*768的问题已经解决了。只是色彩上比在window下要差,为什么?
发表于 2003-3-12 16:17:46 | 显示全部楼层
redhat8.1(2.4.20-2.48)安装出错

[root@User20 NVIDIA]# dir
NVIDIA_GLX-1.0-4191.src.rpm NVIDIA_kernel-1.0-4191.src.rpm README.txt
[root@User20 NVIDIA]# rpmbuild --rebuild NV*k*
Installing NVIDIA_kernel-1.0-4191.src.rpm
warning: user buildmeister does not exist - using root
warning: group buildmeister does not exist - using root
warning: user buildmeister does not exist - using root
warning: group buildmeister does not exist - using root
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.46027
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ cd /usr/src/redhat/BUILD
+ rm -rf NVIDIA_kernel-1.0-4191
+ /bin/gzip -dc /usr/src/redhat/SOURCES/NVIDIA_kernel-1.0-4191.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd NVIDIA_kernel-1.0-4191
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.44226
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd NVIDIA_kernel-1.0-4191
+ LANG=C
+ export LANG
+ set +e
++ rpm -q --queryformat '%{VERSION}' rpm
+ RPMVERSION=4.2
++ echo 4.2
++ awk -F . '{print $1;}'
+ RPMMAJOR=4
++ echo 4.2
++ awk -F . '{print $2;}'
+ RPMMINOR=2
++ echo 4.2
++ awk -F . '{print $3;}'
+ RPMPATCH=
+ '[' 4 -le 3 -a 2 -le 0 -a -lt 4 ']'
/var/tmp/rpm-tmp.44226: line 35: [: too many arguments
+ make nvidia.o
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -1`\" > nv_compiler.h
cc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wcast-qual -Wno-multichar -O -MD -D__KERNEL__ -DMODULE
-D_LOOSE_KERNEL_NAMES -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=4191 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -I. -I/lib/modules/2.4.20-2.48/build/include -Wno-cast-qual nv.c
In file included from /lib/modules/2.4.20-2.48/build/include/linux/vmalloc.h:8,
from nv-linux.h:64,
from nv.c:14:
/lib/modules/2.4.20-2.48/build/include/linux/highmem.h: In function `bh_kmap':
/lib/modules/2.4.20-2.48/build/include/linux/highmem.h:20: warning: pointer of type `void *' used in arithmetic
nv.c: In function `nv_kern_mmap':
nv.c:1282: warning: passing arg 1 of `remap_page_range_R839d959e' makes pointer
from integer without a cast
nv.c:1282: incompatible type for argument 4 of `remap_page_range_R839d959e'
nv.c:1282: too few arguments to function `remap_page_range_R839d959e'
nv.c:1301: warning: passing arg 1 of `remap_page_range_R839d959e' makes pointer
from integer without a cast
nv.c:1301: incompatible type for argument 4 of `remap_page_range_R839d959e'
nv.c:1301: too few arguments to function `remap_page_range_R839d959e'
nv.c:1387: warning: passing arg 1 of `remap_page_range_R839d959e' makes pointer
from integer without a cast
nv.c:1387: incompatible type for argument 4 of `remap_page_range_R839d959e'
nv.c:1387: too few arguments to function `remap_page_range_R839d959e'
nv.c: In function `nv_get_phys_address':
nv.c:2250: warning: implicit declaration of function `pte_offset'
nv.c:2250: invalid type argument of `unary *'
make: *** [nv.o] Error 1
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.47547
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd NVIDIA_kernel-1.0-4191
+ LANG=C
+ export LANG
+ rm -f /tmp/files.lst
+ '[' -z '' ']'
++ uname -r
+ export TARGET_KERNEL=2.4.20-2.48
+ TARGET_KERNEL=2.4.20-2.48
+ '[' -d /lib/modules/2.4.20-2.48/kernel ']'
+ INSTALLPATH=/lib/modules/2.4.20-2.48/kernel/drivers/video
+ mkdir -p /var/tmp/NVIDIA_kernel-1.0//lib/modules/2.4.20-2.48/kernel/drivers/video
+ install -m 0444 nvidia.o /var/tmp/NVIDIA_kernel-1.0//lib/modules/2.4.20-2.48/kernel/drivers/video
install: cannot stat `nvidia.o': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.47547 (%install)


RPM build errors:
user buildmeister does not exist - using root
group buildmeister does not exist - using root
user buildmeister does not exist - using root
group buildmeister does not exist - using root
Bad exit status from /var/tmp/rpm-tmp.47547 (%install)

请问是什么原因?我用的是mx440
发表于 2003-3-12 23:40:35 | 显示全部楼层

装不好显卡

编译第一个的时候出现下面的错误
我的kernel-source-2.4.20-2.48.i386.rpm装好了请问怎么解决

Requires: NVIDIA_kernel XFree86 >= 4.0.1 kernel > 2.2.0 libGLcore.so.1 libX11.so.6 libXext.so.6 libc.so.6 libc.so.6(GLIBC_2.0) libdl.so.2 libdl.so.2(GLIBC_2.0)
libdl.so.2(GLIBC_2.1) libm.so.6
Processing files: NVIDIA_GLX-debuginfo-1.0-4191
error: Could not open %files file /usr/src/redhat/BUILD/${RPM_PACKAGE_NAME}-${RPM_PACKAGE_VERSION}-${RPM_PACKAGE_RELEASE}/debugfiles.list: 没有那个文件或目录


_PACKAGE_NAME}-${RPM_PACKAGE_VERSION}-${RPM_PACKAGE_RELEASE}/debugfiles.list: 没有那个文件或目录


RPM build errors:
    user buildmeister does not exist - using root
    group buildmeister does not exist - using root
    user buildmeister does not exist - using root
    group buildmeister does not exist - using root
    Could not open %files file /usr/src/redhat/BUILD/${RPM_PACKAGE_NAME}-${RPM_PACKAGE_VERSION}-${RPM_PACKAGE_RELEASE}/debugfiles.list: 没有那个文件或目录
发表于 2003-3-13 08:37:05 | 显示全部楼层
lw81814兄,你用的是哪个版本的linux,是不是升级了内核??
还是redhat 8.1?
发表于 2003-3-13 08:57:38 | 显示全部楼层
北南南北兄:

我的问题是因为什么样的原因?我用的是redhat8.1(2.4.20-2.48),显卡是GFoce4 MX440.CPU是P4-1.7G,RAM320 主板是intel845
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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