QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1162|回复: 6

请教NVIDIA显卡驱动的安装问题,谢谢

[复制链接]
发表于 2005-10-5 10:32:45 | 显示全部楼层 |阅读模式
因为系统认不出我的显卡和显示器,所以想装一个显卡驱动试试
昨天在驱动之家下载了两个驱动
NVIDIA-Linux-x86-1.0-5328-pkg1.run
和NVIDIA_GLX-1.0-4499.tar.gz NVIDIA_kernel-1.0-4499.tar.gz
=====================================================================
先是装5328哪个,先#sh解压后,进入子文件夹 NVIDIA-Linux-x86-1.0-5328-pkg1
接着make install,但是出错啦,请教老鸟们问题出在哪里,错误如下:

[root@localhost NVIDIA-Linux-x86-1.0-5328-pkg1]# make install
cd usr/src/nv; make install
make[1]: Entering directory `/home/sprewell/driver/NVIDIA-Linux-x86-1.0-5328/NVIDIA-Linux-x86-1.0-5328-pkg1/usr/src/nv'
ld -r -o nvidia.o nv-linux.o nv-kernel.o
Warning: loading /lib/modules/2.4.20-8/kernel/drivers/video/nvidia.o will taint
the kernel: non-GPL license - NVIDIA
See http://www.tux.org/lkml/#export-tainted for information about tainted modules
/lib/modules/2.4.20-8/kernel/drivers/video/nvidia.o: init_module: No such deviceHint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
You may find more information in syslog or the output from dmesg
/lib/modules/2.4.20-8/kernel/drivers/video/nvidia.o: insmod /lib/modules/2.4.20-8/kernel/drivers/video/nvidia.o failed
/lib/modules/2.4.20-8/kernel/drivers/video/nvidia.o: insmod nvidia failed
make[1]: *** [package-install] Error 255
make[1]: Leaving directory `/home/sprewell/driver/NVIDIA-Linux-x86-1.0-5328/NVIDIA-Linux-x86-1.0-5328-pkg1/usr/src/nv'
make: *** [kernel_module_install] Error 2

========================================================================
这个驱动装不了,就试一下第二个
用tar解压之后进入子文件夹,先是安装kernel这个,但是又出错啦,错误如下

[root@localhost NVIDIA_kernel-1.0-4499]# make install
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 -mcmodel=kernel -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=4499 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNV_64_BITS -DNVCPU_X86_64 -DREMAP_PAGE_RANGE_5 -I. -I/lib/modules/2.4.20-8/build/include -Wno-cast-qual nv.c
cc1: code model `kernel' not supported in the 32 bit mode
In file included from /lib/modules/2.4.20-8/build/include/linux/vmalloc.h:8,
from nv-linux.h:72,
from nv.c:14:
/lib/modules/2.4.20-8/build/include/linux/highmem.h: In function `bh_kmap':
/lib/modules/2.4.20-8/build/include/linux/highmem.h:20: warning: pointer of type `void *' used in arithmetic
nv.c: In function `nv_agp_translate_address':
nv.c:2789: warning: cast from pointer to integer of different size
make: *** [nv.o] Error 1

====================================================================
请问老鸟们错误出在什么地方呢?需要怎样解决?谢谢
机器配置如下:
XP1700+;MX440;512DDR;philips107S4
vm下用red hat 9.0,分256的内存

===================================================
下面附上我的XF86Config现在的内容
# XFree86 4 configuration created by redhat-config-xfree86

Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "DevInputMice" "AlwaysCore"
EndSection

Section "Files"

# RgbPath is the location of the RGB database. Note, this is the name of the
# file minus the extension (like ".txt" or ".db"). There is normally
# no need to change the default.
# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Red Hat 6.0 and later now use a font server independent of
# the X server to render fonts.
RgbPath "/usr/X11R6/lib/X11/rgb"
FontPath "unix/:7100"
EndSection

Section "Module"
Load "dbe"
Load "extmod"
Load "fbdevhw"
Load "glx"
Load "record"
Load "freetype"
Load "type1"
EndSection

Section "InputDevice"

# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
# Option "Xleds" "1 2 3"
# To disable the XKEYBOARD extension, uncomment XkbDisable.
# Option "XkbDisable"
# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults). For example, for a non-U.S.
# keyboard, you will probably want to use:
# Option "XkbModel" "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
# Option "XkbModel" "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
# Option "XkbLayout" "de"
# or:
# Option "XkbLayout" "de"
# Option "XkbVariant" "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
# Option "XkbOptions" "ctrl:swapcaps"
# Or if you just want both to be control, use:
# Option "XkbOptions" "ctrl:nocaps"
#
Identifier "Keyboard0"
Driver "keyboard"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/psaux"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "no"
EndSection

Section "InputDevice"

# If the normal CorePointer mouse is not a USB mouse then
# this input device can be used in AlwaysCore mode to let you
# also use USB mice at the same time.
Identifier "DevInputMice"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "no"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Unknown monitor"
HorizSync 50.0 - 60.0
VertRefresh 80.0 - 100.0
Option "dpms"
EndSection

Section "Device"
Identifier "Videocard0"
Driver "vesa"
VendorName "Videocard vendor"
BoardName "VESA driver (generic)"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 16
Modes "1024x768" "800x600"
EndSubSection
SubSection "Display"
Depth 24
Modes "800x600"
EndSubSection
EndSection

Section "DRI"
Group 0
Mode 0666
EndSection
发表于 2005-10-5 11:10:48 | 显示全部楼层
init 3,然后sh NVIDIA*.RUN
回复

使用道具 举报

发表于 2005-10-5 11:13:18 | 显示全部楼层
什么发行版。
.run运行安装就可以了,谁说要make的   

参考一下置顶的 http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=96028
回复

使用道具 举报

发表于 2005-10-5 13:04:43 | 显示全部楼层
借地方问一下,我是红旗5.0,用sh完成驱动安装(nvidia),也照论坛上的说法把xorg.conf改成"nvidia",但是重新起动后总是无法启动驱动。如果在命令模式下startx的话可以看到nvidia的logo,但是死在空白的桌面上,我是不是少做了什么,请教大虾。
回复

使用道具 举报

 楼主| 发表于 2005-10-7 10:31:05 | 显示全部楼层
[quote:9b11fde208="月下刀客"]什么发行版。
.run运行安装就可以了,谁说要make的   

参考一下置顶的 http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=96028[/quote]

直接运行run也不行,提示是找不到kernel header。具体的错误提示如下:

ERROR:Unable to load the kernel module 'nvidia.o'. This is most likely because the kernel module was built using the wrong kernel header files. Please make sure you have installed the kernel header files for your kernel; on red hat linux systen, for example, be sure you have the 'kernel-source' rpm install. If you know the correct kernel header files installed. you may specify the kernel include path with the  '--kernel -include-path-' commadline option.

这样是不是还要下载一个kernel-source包来安装一下呢?谢谢
回复

使用道具 举报

发表于 2005-10-9 01:04:56 | 显示全部楼层
对,一定要先装kernel-source

我也有个问题,我看到有的人说是直接
sh  ***.run
有的人说要先
sh ***.run --add-this-kernel
生成一个新的***.sh再run,到底应该是怎么样呢??

第二种是不是多此一举?
回复

使用道具 举报

 楼主| 发表于 2005-10-9 10:08:15 | 显示全部楼层
两个一样的吧?第一个也会自动加载kernel的

我现在找了一个6629版本的装好啦,但是还是认不出我的显卡和显示器
XF86Config这个文件我已经改了n次啦,但是一改显示器和显卡就进不了X
说no sreen
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-23 23:09 , Processed in 0.116248 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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