QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1820|回复: 19

用nforec2的巨虾们,有成功安装GeForce驱动吗?

[复制链接]
发表于 2003-5-5 03:51:12 | 显示全部楼层 |阅读模式
主板: epox 8rda+
显卡:耕宇 GF3Ti200 已跳成  Quadro DCC
AMD xp 1700+
内存:256x2 infineon ,双通道
里仁发行的 redhat9 简体中文版

试过:
NVIDIA-Linux-x86-1.0-4363.run 结果执行 init 5 后满荧屏都是字符乱码 ( XF86Config 改好了 )

NVIDIA-Linux-x86-1.0-4349.run 同意协议后就没有了响应

下面两个是 Quadro 驱动,都是 make 时出错
NVIDIA_kernel-1.0-4191.tar.gz
NVIDIA_kernel-1.0-2960.tar.gz

会不会是 nforce2 太新,redhat9 还不能完全支持? ( 可能有好多人还不知道 nvidia 也做主板芯片组 :)

另外 nforce2 的驱动也遇到了问题:
NVIDIA_nforce-1.0-0248.tar.gz 安装没问题,就是有时进 KDE 会弹出一个错误对话框:

提示 - art 信息

Sound server informational message:
Error while initalizing the sound driver:
device /dev/dsp can't ve opened (No such device)
The sound server will continue, using the null output device.

我用的就是板载的 alc650 + APU ,依然可以正常使用。

我看到 nvidia 主页上说 0248 是最新的驱动,有一次我通过 elsa.com 里的链接发现了 0256 版的驱动:

NVIDIA_nforce-1.0-0256.tar.gz 不过 make 时出错

NVIDIA_nforce-1.0-0256.rh80up_2.4.18_27.athlon.rpm 可以正常安装,那个错误对话框依旧,又试了一遍显卡驱动还是不灵
 楼主| 发表于 2003-5-5 03:51:40 | 显示全部楼层
NVIDIA_nforce-1.0-0256.tar.gz :

[root@localhost nforce]# make
make -C  nvnet
make[1]: Entering directory `/root/nforce/nvnet'
cc -c -Wall -DLINUX -DMODULE -DEXPORT_SYMTAB -D__KERNEL__ -O -Wstrict-prototypes -DCONFIG_PM  -fno-strict-aliasing -mpreferred-stack-boundary=2 -march=i686 -falign-functions=4 -DMODULE -I/lib/modules/2.4.20-8/build/include   -DMODVERSIONS -include /lib/modules/2.4.20-8/build/include/linux/modversions.h nvnet.c
ld -r -o temp.o nvnet.o nvnetlib.o
objcopy --strip-symbol="gcc2_compiled." temp.o
cp temp.o nvnet.o
rm temp.o
make[1]: Leaving directory `/root/nforce/nvnet'
make -C  nvaudio
make[1]: Entering directory `/root/nforce/nvaudio'
make nvaudio.o
make[2]: Entering directory `/root/nforce/nvaudio'
cc -D__KERNEL__  -I/lib/modules/2.4.20-8/build/include -Wall -Wstrict-prototypes -O -fno-strict-aliasing -mpreferred-stack-boundary=2 -march=i686 -falign-functions=4 -DMODULE  -DMODVERSIONS -include /lib/modules/2.4.20-8/build/include/linux/modversions.h   -c -o nvhw.o nvhw.c
cc -D__KERNEL__  -I/lib/modules/2.4.20-8/build/include -Wall -Wstrict-prototypes -O -fno-strict-aliasing -mpreferred-stack-boundary=2 -march=i686 -falign-functions=4 -DMODULE  -DMODVERSIONS -include /lib/modules/2.4.20-8/build/include/linux/modversions.h   -c -o nvrec.o nvrec.c
cc -D__KERNEL__  -I/lib/modules/2.4.20-8/build/include -Wall -Wstrict-prototypes -O -fno-strict-aliasing -mpreferred-stack-boundary=2 -march=i686 -falign-functions=4 -DMODULE  -DMODVERSIONS -include /lib/modules/2.4.20-8/build/include/linux/modversions.h   -c -o nvwavout.o nvwavout.c
cc -D__KERNEL__  -I/lib/modules/2.4.20-8/build/include -Wall -Wstrict-prototypes -O -fno-strict-aliasing -mpreferred-stack-boundary=2 -march=i686 -falign-functions=4 -DMODULE  -DMODVERSIONS -include /lib/modules/2.4.20-8/build/include/linux/modversions.h   -c -o nvspdif.o nvspdif.c
cc -D__KERNEL__  -I/lib/modules/2.4.20-8/build/include -Wall -Wstrict-prototypes -O -fno-strict-aliasing -mpreferred-stack-boundary=2 -march=i686 -falign-functions=4 -DMODULE  -DMODVERSIONS -include /lib/modules/2.4.20-8/build/include/linux/modversions.h   -c -o nvcrush.o nvcrush.c
nvcrush.c: In function `Nvaudio_mmapwrite':
nvcrush.c:426: warning: passing arg 1 of `remap_page_range_R2baf18f2' makes pointer from integer without a cast
nvcrush.c:426: incompatible type for argument 4 of `remap_page_range_R2baf18f2'
nvcrush.c:426: too few arguments to function `remap_page_range_R2baf18f2'
nvcrush.c: In function `Nvaudio_mmap':
nvcrush.c:465: warning: passing arg 1 of `remap_page_range_R2baf18f2' makes pointer from integer without a cast
nvcrush.c:465: incompatible type for argument 4 of `remap_page_range_R2baf18f2'
nvcrush.c:465: too few arguments to function `remap_page_range_R2baf18f2'
make[2]: *** [nvcrush.o] Error 1
make[2]: Leaving directory `/root/nforce/nvaudio'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/nforce/nvaudio'
make: *** [nvaudio_make] Error 2
[root@localhost nforce]#
回复

使用道具 举报

 楼主| 发表于 2003-5-5 03:52:11 | 显示全部楼层
NVIDIA_kernel-1.0-2960.tar.gz :

[root@localhost NVIDIA_kernel-1.0-2960]# make
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 -D_X86=1 -Di386=1 -DUNIX -DLINUX -DNV4_HW -DNTRM -DRM20 -D_GNU_SOURCE -DRM_HEAPMGR -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=2960   -I. -I/lib/modules/2.4.20-8/build/include -Wno-cast-qual nv.c
In file included from /lib/modules/2.4.20-8/build/include/linux/vmalloc.h:8,
                 from nv-linux.h:29,
                 from nv.c:27:
/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_kern_mmap':
nv.c:1392: warning: passing arg 1 of `remap_page_range_R2baf18f2' makes pointer from integer without a cast
nv.c:1392: incompatible type for argument 4 of `remap_page_range_R2baf18f2'
nv.c:1392: too few arguments to function `remap_page_range_R2baf18f2'
nv.c:1409: warning: passing arg 1 of `remap_page_range_R2baf18f2' makes pointer from integer without a cast
nv.c:1409: incompatible type for argument 4 of `remap_page_range_R2baf18f2'
nv.c:1409: too few arguments to function `remap_page_range_R2baf18f2'
nv.c:1440: warning: passing arg 1 of `remap_page_range_R2baf18f2' makes pointer from integer without a cast
nv.c:1440: incompatible type for argument 4 of `remap_page_range_R2baf18f2'
nv.c:1440: too few arguments to function `remap_page_range_R2baf18f2'
nv.c: In function `nv_get_phys_address':
nv.c:2276: warning: implicit declaration of function `pte_offset'
nv.c:2276: invalid type argument of `unary *'
make: *** [nv.o] Error 1
[root@localhost NVIDIA_kernel-1.0-2960]#
回复

使用道具 举报

 楼主| 发表于 2003-5-5 03:52:36 | 显示全部楼层
NVIDIA_kernel-1.0-4191.tar.gz :

[root@localhost NVIDIA_kernel-1.0-4191]# make
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-8/build/include -Wno-cast-qual nv.c
In file included from /lib/modules/2.4.20-8/build/include/linux/vmalloc.h:8,
                 from nv-linux.h:64,
                 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_kern_mmap':
nv.c:1282: warning: passing arg 1 of `remap_page_range_R2baf18f2' makes pointer from integer without a cast
nv.c:1282: incompatible type for argument 4 of `remap_page_range_R2baf18f2'
nv.c:1282: too few arguments to function `remap_page_range_R2baf18f2'
nv.c:1301: warning: passing arg 1 of `remap_page_range_R2baf18f2' makes pointer from integer without a cast
nv.c:1301: incompatible type for argument 4 of `remap_page_range_R2baf18f2'
nv.c:1301: too few arguments to function `remap_page_range_R2baf18f2'
nv.c:1387: warning: passing arg 1 of `remap_page_range_R2baf18f2' makes pointer from integer without a cast
nv.c:1387: incompatible type for argument 4 of `remap_page_range_R2baf18f2'
nv.c:1387: too few arguments to function `remap_page_range_R2baf18f2'
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
[root@localhost NVIDIA_kernel-1.0-4191]#
回复

使用道具 举报

 楼主| 发表于 2003-5-5 03:53:04 | 显示全部楼层
NVIDIA-Linux-x86-1.0-4363.run 安装后 init5 出现乱码时的 /etc/X11/XF86Config 文件内容(汉化过):
汉化方法:http://www.linuxsir.com/bbs/showthread.php?s=&threadid=30742

# XFree86 4 configuration created by redhat-config-xfree86

Section "ServerLayout"
        Identifier     "Default Layout"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
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     "/usr/system/fonts"
        FontPath     "/usr/system/ROfonts"
        FontPath     "unix/:7100"
EndSection

Section "Module"
#        Load  "dbe"
        Load  "extmod"
        Load  "fbdevhw"
        Load  "glx"
        Load  "record"
        Load  "freetype"
        Load  "xtt"
        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            "Protocol" "IMPS/2"
        Option            "Device" "/dev/input/mice"
        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    "PHILIPS 107P"
        DisplaySize  320        240
        HorizSync    30.0 - 92.0
        VertRefresh  50.0 - 160.0
        Option            "dpms"
EndSection

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

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

Section "DRI"
        Group        0
        Mode         0666
EndSection
回复

使用道具 举报

 楼主| 发表于 2003-5-8 21:02:05 | 显示全部楼层
没人知道吗?

需要重新编译内核也可以,应该下那个版本的?选上哪些选项以完全支持 nForce2 AGP ?

多谢
回复

使用道具 举报

发表于 2003-5-9 20:52:04 | 显示全部楼层
老兄
我的情况和你一样
也在想办法

希望有哪位高人指教一下
回复

使用道具 举报

发表于 2003-5-10 09:51:05 | 显示全部楼层
去www.nvnews.net去搜寻吧,或者forums.gentoo.org也有可能找到答案
回复

使用道具 举报

发表于 2003-5-11 14:13:32 | 显示全部楼层
你用的内核是rh9的内核吧?这版本内核rh修改很大,造成很多函数和标准的有问题,其中一个有改动的函数就是remap_page_range,比2.4.18加入了一个参数,导致驱动编译出错,nvidia驱动没有开放源码,否则可以修改驱动里的代码加上参数,因此如果你真想编译驱动;那只好将内核降级(2.4.18-27)回去试试,或下载标准原装的内核自己编译装上,或,等待nvidia上的驱动更新,期待下个版本加入rh9内核的支持
回复

使用道具 举报

发表于 2003-5-11 14:16:02 | 显示全部楼层
茅塞顿开
回复

使用道具 举报

 楼主| 发表于 2003-5-12 00:36:17 | 显示全部楼层
多谢老大指点

重新安装 redhat9 ,下载原版内核 2.4.20 编译,试了两次,装上显卡驱动还是满屏字符乱码

第一次,加上了 patch-2.4.21-rc1
配置文件用的是 redhat9 自带的 kernel-2.4.20-athlon.config
make xconfig 时出错,幸好 make menuconfig 正常,rc1 是测试版的意思吗?
内核里好像只有在声卡支持里出现过 nforce 字样
使用新内核后,原来编译驱动程序时的错误不再出现
先装的主板驱动: NVIDIA_nforce-1.0-0256.tar.gz (主板驱动好像只包括 声卡 和 网卡)
#make
#make install
reboot
再装显卡驱动: NVIDIA-Linux-x86-1.0-4363.run
#sh NVIDIA-Linux-x86-1.0-4363.run
修改 /etc/X11/XF86Config
reboot
init 5
还是字符乱码


第二次,没有加 patch-2.4.21-rc1
操作方法与第一次一样
#make xconfig 这回正确
结果还是字符乱码

另外有个问题,使用新内核后我的 USB 口的鼠标罢工了,灯还能亮,配置内核时我没有动 USB 里的选项,是哪里出了岔子?(鼠标是罗技的极光旋貂)

编译内核的方法:

#cd /usr/src
#mkdir linux
#mv linux linux-2.4.20
#ln -s /usr/src/linux-2.4.20 /usr/src/linux

#patch -p0 < patch-2.4.21-rc1
(第二次没有加 patch)

#cd linux (这时的路径 /usr/src/linux)
#cp /usr/src/linux-2.4.20-8/configs/kernel-2.4.20-athlon.config .config

#make xconfig (去掉了一些不必要的支持,如 SCSI ISDN 等,)
#make dep
#make clean
#make bzImage
#make modules
#make modules_install
#depmod -a

#cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz-2.4.21-rc1
(第二次 #cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz-2.4.20)

#cp /usr/src/linux/System.map /boot/System.map-2.4.21-rc1
(第二次 #cp /usr/src/linux/System.map /boot/System.map-2.4.20)

#new-kernel-pkg --mkinitrd --rmmoddep --install 2.4.21-rc1
(第二次 #new-kernel-pkg --mkinitrd --rmmoddep --install 2.4.20)

我准备重新安装 redhat8 试试
回复

使用道具 举报

 楼主| 发表于 2003-5-12 01:49:07 | 显示全部楼层
我试过 redhat8 了,和 redhat9 新内核一样

编译驱动时一样没有错误,一样画屏

我是不是可以宣布 Linux 尚不完全支持 nForce2 ,至少包括 nForce2 AGP ?
回复

使用道具 举报

发表于 2003-5-12 11:36:12 | 显示全部楼层
nvidia目前没有公布单独的nforce2的agp驱动,在nvnews上面说下一个nforce驱动将包括。目前有个hacker已经弄出来一个nforce2的agp驱动,可以很好的支持非nvidia的显卡。
回复

使用道具 举报

 楼主| 发表于 2003-5-12 15:08:00 | 显示全部楼层
期待ing
回复

使用道具 举报

发表于 2003-5-12 15:26:59 | 显示全部楼层
我用的是GF2 MX200的显卡,装好系统后直接调整分辨率就OK了 ,只是屏幕偏移没有解决
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-3 04:16 , Processed in 0.059026 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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