|
因为系统认不出我的显卡和显示器,所以想装一个显卡驱动试试
昨天在驱动之家下载了两个驱动
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 |
|