LinuxSir.cn,穿越时空的Linuxsir!

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

求助在linux下make nvidia1.0-4363驱动的问题

[复制链接]
发表于 2003-5-18 13:18:51 | 显示全部楼层 |阅读模式
各位高手请教:
  显卡:geforce2ti(gts超)
   redhat9.0
   kernel已重新编译,支持单cpu版本
   编译nvidia_kernel-1.0-4363驱动时出现如下错误:
   如何解决,谢谢!

   
[root@localhost NVIDIA]# cd NVIDIA_kernel-1.0-4363
[root@localhost NVIDIA_kernel-1.0-4363]# 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 -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=4363  -DNV_UNIX   -DNV_LINUX   -DNV_INT64_OK   -DNVCPU_X86      -DREMAP_PAGE_RANGE_5  -I. -I/lib/modules/2.4.20-8/build/include -Wno-cast-qual nv.c
In file included from nv-linux.h:27,
                 from nv.c:14:
/lib/modules/2.4.20-8/build/include/linux/kernel.h:60: invalid suffix on integer constant
/lib/modules/2.4.20-8/build/include/linux/kernel.h:60: parse error before numeric constant
/lib/modules/2.4.20-8/build/include/linux/kernel.h:61: invalid suffix on integer constant
/lib/modules/2.4.20-8/build/include/linux/kernel.h:61: parse error before numeric constant
/lib/modules/2.4.20-8/build/include/linux/kernel.h:62: `panic_R_ver_str' declared as function returning a function
/lib/modules/2.4.20-8/build/include/linux/kernel.h:68: parse error before numeric constant
/lib/modules/2.4.20-8/build/include/linux/kernel.h:68: `simple_strtoul_R_ver_str' declared as function returning a function
/lib/modules/2.4.20-8/build/include/linux/kernel.h:69: invalid suffix on integer constant
/lib/modules/2.4.20-8/build/include/linux/kernel.h:69: parse error before numeric constant
/lib/modules/2.4.20-8/build/include/linux/kernel.h:69: `simple_strtol_R_ver_str' declared as function returning a function
/lib/modules/2.4.20-8/build/include/linux/kernel.h:70: invalid suffix on integer constant
/lib/modules/2.4.20-8/build/include/linux/kernel.h:70: parse error before numeric constant
/lib/modules/2.4.20-8/build/include/linux/kernel.h:70: `simple_strtoull_R_ver_str' declared as function returning a function
/lib/modules/2.4.20-8/build/include/linux/kernel.h:72: invalid suffix on integer constant
/lib/modules/2.4.20-8/build/include/linux/kernel.h:72: parse error before numeric constant
/lib/modules/2.4.20-8/build/include/linux/kernel.h:73: `sprintf_R_ver_str' declared as function returning a function
/lib/modules/2.4.20-8/build/include/linux/kernel.h:74: invalid suffix on integer constant
/lib/modules/2.4.20-8/build/include/linux/kernel.h:74: parse error before numeric constant
/lib/modules/2.4.20-8/build/include/linux/kernel.h:74: `vsprintf_R_ver_str' declared as function returning a function
/lib/modules/2.4.20-8/build/include/linux/kernel.h:75: invalid suffix on integer constant
/lib/modules/2.4.20-8/build/include/linux/kernel.h:75: parse error before numeric constant
/lib/modules/2.4.20-8/build/include/linux/kernel.h:76: `snprintf_R_ver_str' declared as function returning a function
/lib/modules/2.4.20-8/build/include/linux/kernel.h:77: invalid suffix on integer constant
/lib/modules/2.4.20-8/build/include/linux/kernel.h:77: parse error before numeric constant
/lib/modules/2.4.20-8/build/include/linux/kernel.h:77: `vsnprintf_R_ver_str' declared as function returning a function
/lib/modules/2.4.20-8/build/include/linux/kernel.h:79: invalid suffix on integer constant
/lib/modules/2.4.20-8/build/include/linux/kernel.h:79: parse error before numeric constant
/lib/modules/2.4.20-8/build/include/linux/kernel.h:80: `sscanf_R_ver_str' declared as function returning a function
/lib/modules/2.4.20-8/build/include/linux/kernel.h:81: `vsscanf_R_ver_str' declared as function returning a function
/lib/modules/2.4.20-8/build/include/linux/kernel.h:81: warning: parameter names
(without types) in function declaration
/lib/modules/2.4.20-8/build/include/linux/kernel.h:83: `get_option_R_ver_str' declared as function returning a function
/lib/modules/2.4.20-8/build/include/linux/kernel.h:83: warning: parameter names
(without types) in function declaration
/lib/modules/2.4.20-8/build/include/linux/kernel.h:84: invalid suffix on integer constant
/lib/modules/2.4.20-8/build/include/linux/kernel.h:84: parse error before numeric constant
/lib/modules/2.4.20-8/build/include/linux/kernel.h:84: `get_options_R_ver_str' declared as function returning a function
/lib/modules/2.4.20-8/build/include/linux/kernel.h:85: invalid suffix on integer constant
/lib/modules/2.4.20-8/build/include/linux/kernel.h:85: parse error before numeric constant
/lib/modules/2.4.20-8/build/include/linux/kernel.h:85: `memparse_R_ver_str' declared as function returning a function
/lib/modules/2.4.20-8/build/include/linux/kernel.h:91: invalid suffix on integer constant
/lib/modules/2.4.20-8/build/include/linux/kernel.h:91: parse error before numeric constant
/lib/modules/2.4.20-8/build/include/linux/kernel.h:92: `printk_R_ver_str' declared as function returning a function
/lib/modules/2.4.20-8/build/include/linux/kernel.h:108: parse error before numeric constant
/lib/modules/2.4.20-8/build/include/linux/kernel.h:109: warning: parameter names (without types) in function declaration
/lib/modules/2.4.20-8/build/include/linux/kernel.h:114: invalid suffix on integer constant
/lib/modules/2.4.20-8/build/include/linux/kernel.h:114: parse error before numeric constant
/lib/modules/2.4.20-8/build/include/linux/kernel.h:114: `dump_stack_R_ver_str' declared as function returning a function
/lib/modules/2.4.20-8/build/include/linux/kernel.h:191: invalid suffix on integer constant
/lib/modules/2.4.20-8/build/include/linux/kernel.h:191: parse error before numeric constant
/lib/modules/2.4.20-8/build/include/linux/kernel.h:191: `__out_of_line_bug_R_ver_str' declared as function returning a function
In file included from /lib/modules/2.4.20-8/build/include/linux/prefetch.h:13,
                 from /lib/modules/2.4.20-8/build/include/linux/list.h:6,
                 from /lib/modules/2.4.20-8/build/include/linux/module.h:12,
                 from nv-linux.h:28,
                 from nv.c:14:
/lib/modules/2.4.20-8/build/include/asm/processor.h:60: warning: parameter names (without types) in function declaration
/lib/modules/2.4.20-8/build/include/asm/processor.h:60: field `loops_per_jiffy_R_ver_str' declared as a function
/lib/modules/2.4.20-8/build/include/asm/processor.h:82: invalid suffix on integer constant
/lib/modules/2.4.20-8/build/include/asm/processor.h:82: parse error before numeric constant
In file included from /lib/modules/2.4.20-8/build/include/linux/prefetch.h:13,
                 from /lib/modules/2.4.20-8/build/include/linux/list.h:6,
                 from /lib/modules/2.4.20-8/build/include/linux/module.h:12,
                 from nv-linux.h:28,
                 from nv.c:14:
/lib/modules/2.4.20-8/build/include/asm/processor.h:267:1: warning: "EISA_bus" redefined
In file included from /lib/modules/2.4.20-8/build/include/linux/modversions.h:132,
                 from nv-linux.h:24,
                 from nv.c:14:
/lib/modules/2.4.20-8/build/include/linux/modules/i386_ksyms.ver:92:1: warning:
this is the location of the previous definition
/lib/modules/2.4.20-8/build/include/asm/processor.h:269: warning: parameter names (without types) in function declaration
In file included from nv-linux.h:28,
                 from nv.c:14:
/lib/modules/2.4.20-8/build/include/linux/module.h:183: invalid suffix on integer constant
/lib/modules/2.4.20-8/build/include/linux/module.h:183: parse error before numeric constant
/lib/modules/2.4.20-8/build/include/linux/module.h:183: `inter_module_register_R_ver_str' declared as function returning a function
/lib/modules/2.4.20-8/build/include/linux/module.h:184: invalid suffix on integer constant
/lib/modules/2.4.20-8/build/include/linux/module.h:184: parse error before numeric constant
/lib/modules/2.4.20-8/build/include/linux/module.h:184: `inter_module_unregister_R_ver_str' declared as function returning a function
/lib/modules/2.4.20-8/build/include/linux/module.h:185: `inter_module_get_R_ver_str' declared as function returning a function
/lib/modules/2.4.20-8/build/include/linux/module.h:185: warning: parameter names (without types) in function declaration
/lib/modules/2.4.20-8/build/include/linux/module.h:186: `inter_module_get_request_R_ver_str' declared as function returning a function
/lib/modules/2.4.20-8/build/include/linux/module.h:186: warning: parameter names (without types) in function declaration
/lib/modules/2.4.20-8/build/include/linux/module.h:187: invalid suffix on integer constant
/lib/modules/2.4.20-8/build/include/linux/module.h:187: parse error before numeric constant
/lib/modules/2.4.20-8/build/include/linux/module.h:187: `inter_module_put_R_ver_str' declared as function returning a function
/lib/modules/2.4.20-8/build/include/linux/module.h:196: `try_inc_mod_count_R_ver_str' declared as function returning a function
/lib/modules/2.4.20-8/build/include/linux/module.h:196: warning: parameter names (without types) in function declaration
In file included from /lib/modules/2.4.20-8/build/include/linux/fs.h:19,
                 from /lib/modules/2.4.20-8/build/include/linux/capability.h:17,                 from /lib/modules/2.4.20-8/build/include/linux/binfmts.h:4,
                 from /lib/modules/2.4.20-8/build/include/linux/sched.h:10,
                 from /lib/modules/2.4.20-8/build/include/linux/mm.h:22,
                 from /lib/modules/2.4.20-8/build/include/linux/slab.h:14,
                 from nv-linux.h:71,
                 from nv.c:14:
/lib/modules/2.4.20-8/build/include/linux/dcache.h: In function `dget':
/lib/modules/2.4.20-8/build/include/linux/dcache.h:254: warning: implicit declaration of function `__out_of_line_bug_R8b0fd3c5'
In file included from nv.c:14:
nv-linux.h: In function `pgprot_noncached':
nv-linux.h:273: `boot_cpu_data_R0657d037' undeclared (first use in this function)
nv-linux.h:273: (Each undeclared identifier is reported only once
nv-linux.h:273: for each function it appears in.)
nv.c: In function `nvos_proc_create':
nv.c:596: warning: implicit declaration of function `sprintf_R1d26aa98'
nv.c: In function `nv_agp_init':
nv.c:2637: warning: implicit declaration of function `inter_module_get_Rf6a0ce24'
nv.c:2638: warning: implicit declaration of function `inter_module_put_R6b99f7d8'
make: *** [nv.o] Error 1
发表于 2003-5-20 01:14:08 | 显示全部楼层
显卡:geforce2ti(gts超)


是不是和超频有关???
 楼主| 发表于 2003-5-24 00:27:48 | 显示全部楼层
:confused: 我也不太清楚,只知道我买的是remark的显卡,bios被刷为2ti,在linux-xwindows下被检测默认为2gts,lspci发现是2ti.主板为原装intel850,不知如何无法编译驱动?谢谢!
发表于 2003-5-24 00:43:05 | 显示全部楼层
如果不重编内核是不是能装上这个驱动呢?我感觉也有这方面的因素。现在只能一个一个的排除了。没有更好的办法。下面这项,在kernel中有。
nv.c: In function `nv_agp_init':
 楼主| 发表于 2003-5-24 01:49:05 | 显示全部楼层
感谢南北大哥的热心帮助,我试试再告诉你,谢谢!
发表于 2003-5-24 08:59:08 | 显示全部楼层

是不是也是make 过内核?

试试看把source 卸载以后 重新安装 然后再安装驱动
 楼主| 发表于 2003-5-25 19:37:39 | 显示全部楼层

新的问题

其实着也是很旧以来的问题.我不知道更改了什莫,导致启动后出现了一个蓝色的对话框,一些乱码,含有xwindows字样,选两个no才可登陆进入文本模式,startx提示有错误,以后重新自定义按了两次rh9都如此.换装了7.2,却登录不进去,single模式修该密码也是如此,:confused: 封闭了很少有机会接触自己的电脑~~~~~~~~~~贴子回的慢,请见谅!!!!!!!!!!!!
发表于 2003-5-25 23:13:41 | 显示全部楼层
其实着也是很旧以来的问题.我不知道更改了什莫,导致启动后出现了一个蓝色的对话框,一些乱码,含有xwindows字样,选两个no才可登陆进入文本模式,startx提示有错误,以后重新自定义按了两次rh9都如此.换装了7.2,却登录不进去,single模式修该密码也是如此, 封闭了很少有机会接触自己的电脑~~~~~~~~~~贴子回的慢,请见谅!!!!!!!!!!!!


帖一下/etc/X11/XF86Config和错误信息
多谢。
 楼主| 发表于 2003-5-31 22:02:15 | 显示全部楼层
我重装了~~~n次rh9.0(重新安装),但就是进不去xwindows,每次显示登陆画面,正确输入了用户密码,有回到了text下login:,一会儿有出现登陆画面,重复还是如此,但single模式却能进去...........以前我用7.2也出现类似情况,但这次怎摸也整不好,我都怀疑是主板的bug~~~~~~~~~~~~~~~
  xf86config如下,应该没问题:

# XFree86 4 configuration created by pyxf86config

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"
        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" "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            "rotocol" "IMPS/2"
        Option            "Device" "/dev/input/mice"
        Option            "ZAxisMapping" "4 5"
        Option            "Emulate3Buttons" "no"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "SyncMaster"
        DisplaySize  320        240
        HorizSync    30.0 - 71.0
        VertRefresh  50.0 - 160.0
        Option            "dpms"
EndSection

Section "Device"
        Identifier  "Videocard0"
        Driver      "nv"
        VendorName  "Videocard vendor"
        BoardName   "NVIDIA GeForce 2 GTS (generic)"
        VideoRam    32768
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
  :p 谢了
 楼主| 发表于 2003-6-1 01:18:55 | 显示全部楼层

make nvidia_kernel-1.0-4363已解决

自回
/////////////////////////////////////////////////////////////////
各位高手请教:
显卡:geforce2ti(gts超)
redhat9.0
kernel已重新编译,支持单cpu版本
编译nvidia_kernel-1.0-4363驱动时出现如下错误:
如何解决,谢谢!
///////////////////////////////////////////////////////////////////
都是蚂蚁惹的祸,:mad: 小生我用modem上网,下nvidia_kernel-1.0-4363驱动用的是netants1.0,解压后并未注意数据包有损坏就make了,才产生开始的错误!!!!!后来用flashget重新下了nvidia-1.0-4363,在single模式下面make,并修改了xf86config,在登陆前见到了久违的nvidia标志>>>>>>>>>>>>>>,
但是,任然登陆不进去?????????????????????
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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