LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 3641|回复: 10

redhat测试版fedora安装nvidia驱动记

[复制链接]
发表于 2003-10-10 08:38:03 | 显示全部楼层 |阅读模式
由于nvidia4496pkg2的驱动不认fedora的内核,所以不能用sh NVIDIA-Linux-x86-1.0-4496-pkg2.run的方法来安装
这时候用sh NVIDIA-Linux-x86-1.0-4496-pkg2.run --extract-only命令来获得它的源码,然后cd NVIDIA-Linux-x86-1.0-4496-pkg2
执行make install,这时会提示内核的编译器与nvidia驱动用的编译器不相符,并中止安装,解决的方法是设置环境变量export IGNORE_CC_MISMACH=yes,
然后make install 。修改XF86Config.大功告成
发表于 2003-10-10 19:31:27 | 显示全部楼层
不错
多谢兄弟,辛苦了
只是教程中export命令不对,少了一个字母

设置环境变量
#export IGNORE_CC_MISMATCH=yes

然后改/etc/X11/XF86Config文件中的这段。

Section "Device"
        Identifier  "Videocard0"
        Driver      "nv"把这里的nv 改成nvidia
        VendorName  "Videocard vendor"
        BoardName   "NVIDIA GeForce 2 MX (generic)"
EndSection
 楼主| 发表于 2003-10-11 08:47:33 | 显示全部楼层
不好意思,幸亏北南兄细心,多谢
发表于 2003-10-11 08:54:40 | 显示全部楼层
最初由 bywind 发表
不好意思,幸亏北南兄细心,多谢


没有什么,只是兄弟少打了一个字母,我补上了,并把兄弟写的教程整理好了,放在了这里。

http://www.linuxsir.cn/postnuke/ ... order=0&thold=0
发表于 2003-10-11 12:22:45 | 显示全部楼层
呵呵,谢谢兄弟了,这就装,前几天升级过内核和gcc后,一直出现eth0:too much
work的问题,进而死机,搜索google,有这个问题的不在少数,可好像没有什么实质行的解决办法,无奈,装了fedora先体验一下,结果不能装nvidia驱动,正准备去nvidia论坛去问呢,多亏兄弟及时。
发表于 2003-11-22 11:35:48 | 显示全部楼层
........
nv-linux.h:508: (Each undeclared identifier is reported only once
nv-linux.h:508: for each function it appears in.)
nv.c: In function `nvos_proc_create':
nv.c:623: warning: implicit declaration of function `sprintf_R1d26aa98'
nv.c: In function `nv_agp_init':
nv.c:2700: warning: implicit declaration of function `inter_module_get_Rf6a0ce24'
nv.c:2701: warning: implicit declaration of function `inter_module_put_R6b99f7d8'
make[1]: *** [nv.o] Error 1
make[1]: Leaving directory `/software/NVIDIA-Linux-x86-1.0-4496-pkg2/usr/src/nv'
make: *** [kernel_module_install] Error 2


why?
thank you
发表于 2003-11-22 23:39:30 | 显示全部楼层
最初由 colorwolf 发表
........


why?
thank you



要注意几点:

一。要把驱动放在linux的分区解压,在windows的分区中解压和安装无效

二。要把内核源码包安装上,也就是kernel-source
发表于 2003-12-20 13:46:59 | 显示全部楼层
我按上面的方法安装好了驱程,但在显示设置那里还是只有400*600
800*600两个选项^^,请问这是什么原因?
发表于 2003-12-20 14:09:13 | 显示全部楼层
# XFree86 4 configuration created by redhat-config-xfree86

Section "ServerLayout"
        Identifier     "single head configuration"
        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"
        #Load  "dri"
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            "rotocol" "IMPS/2"
        Option            "Device" "/dev/psaux"
        Option            "ZAxisMapping" "4 5"
        Option            "Emulate3Buttons" "yes"
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            "rotocol" "IMPS/2"
        Option            "Device" "/dev/input/mice"
        Option            "ZAxisMapping" "4 5"
        Option            "Emulate3Buttons" "no"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "未探测过的显示器"
        HorizSync    31.5 - 37.9
        VertRefresh  50.0 - 70.0
        Option            "dpms"
EndSection

Section "Device"
        Identifier  "Videocard0"
        Driver      "nvidia"
        VendorName  "Videocard vendor"
        BoardName   "NVIDIA GeForce 2 MX (generic)"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Videocard0"
        Monitor    "Monitor0"
        DefaultDepth     24
        SubSection "Display"
                Depth     24
                Modes    "800x600" "640x480"
        EndSubSection
EndSection

Section "DRI"
        Group        0
        Mode         0666
EndSection
发表于 2003-12-20 18:14:16 | 显示全部楼层
ding
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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