发新话题
打印

我的显卡导致的一系列问题

我的显卡导致的一系列问题

我的显卡是 Nvidia 8600gt
安装Fedora6 linux text
probe 显卡的时候是unkown Nvidia Corperation Device
完成安装后如果直接 startX黑屏。但是机器不死
www.nvidia.cn 下载驱动程序NVIDIA-Linux-x86_64-100.14.11-pkg1.run
安装时候提示要编译内核接口
于是 yum kernel-devel 并且安装
并且在sh NVIDIA-Linux-x86_64-100.14.11-pkg1.run --kernel-source-path /usr/src/kernels/2.6.22.9-61.fc6-i686

但是显示安装结果Unable to build the NVIDIA kernel module.
以下是安装日志文件
请问我现在到底该怎么办啊

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Wed Oct 24 22:12:13 2007

option status:
  license pre-accepted    : false
  update                  : false
  force update            : false
  expert                  : false
  uninstall               : false
  driver info             : false
  precompiled interfaces  : true
  no ncurses color        : false
  query latest version    : false
  OpenGL header files     : true
  no questions            : false
  silent                  : false
  no recursion            : false
  no backup               : false
  kernel module only      : false
  sanity                  : false
  add this kernel         : false
  no runlevel check       : false
  no network              : false
  no ABI note             : false
  no RPMs                 : false
  no kernel module        : false
  force SELinux           : default
  no X server check       : false
  force tls               : (not specified)
  force compat32 tls      : (not specified)
  X install prefix        : (not specified)
  X library install path  : (not specified)
  X module install path   : (not specified)
  OpenGL install prefix   : (not specified)
  OpenGL install libdir   : (not specified)
  compat32 install chroot : (not specified)
  compat32 install prefix : (not specified)
  compat32 install libdir : (not specified)
  utility install prefix  : (not specified)
  utility install libdir  : (not specified)
  doc install prefix      : (not specified)
  kernel name             : (not specified)
  kernel include path     : (not specified)
  kernel source path      : /usr/src/kernels/2.6.22.9-61.fc6-i686
  kernel output path      : (not specified)
  kernel install path     : (not specified)
  proc mount point        : /proc
  ui                      : (not specified)
  tmpdir                  : /tmp
  ftp mirror              : ftp://download.nvidia.com
  RPM file list           : (not specified)

Using: nvidia-installer ncurses user interface
-> Tagging shared libraries with chcon -t textrel_shlib_t.
-> License accepted.
-> No precompiled kernel interface was found to match your kernel; would you li
   ke the installer to attempt to download a kernel interface for your kernel f
   rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: No)
-> No precompiled kernel interface was found to match your kernel; this means
   that the installer will need to compile a new kernel interface.
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> Using the kernel source path '/usr/src/kernels/2.6.22.9-61.fc6-i686' as
   specified by the '--kernel-source-path' commandline option.
-> Kernel source path: '/usr/src/kernels/2.6.22.9-61.fc6-i686'
-> Kernel output path: '/usr/src/kernels/2.6.22.9-61.fc6-i686'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Performing Xen check.
-> Cleaning kernel module build directory.
   executing: 'cd ./usr/src/nv; make clean'...
   rm -f -f nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nv-i2c.o nvacpi.
   o nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nv-i2c.o nvacpi.o nvidi
   a.mod.o
   rm -f -f build-in.o nv-linux.o *.d .*.{cmd,flags}
   rm -f -f nvidia.{o,ko,mod.{o,c}} nv_compiler.h *~
   rm -f -f stprof stprof.o symtab.h Modules.symvers
   rm -f -rf .tmp_versions
   rm -f Makefile
-> Building kernel module:
   executing: 'cd ./usr/src/nv; make module SYSSRC=/usr/src/kernels/2.6.22.9-61
   .fc6-i686 SYSOUT=/usr/src/kernels/2.6.22.9-61.fc6-i686'...
   sh ./conftest.sh "cc" "cc" /usr/src/kernels/2.6.22.9-61.fc6-i686 /usr/src/ke
   rnels/2.6.22.9-61.fc6-i686 cc_sanity_check full_output
   sh ./conftest.sh "cc" "cc" /usr/src/kernels/2.6.22.9-61.fc6-i686 /usr/src/ke
   rnels/2.6.22.9-61.fc6-i686 select_makefile full_output
   make --no-print-directory -f Makefile module
   
   NVIDIA: calling KBUILD...
   make CC=cc  KBUILD_VERBOSE=1 -C /usr/src/kernels/2.6.22.9-61.fc6-i686 SUBDIR
   S=/tmp/selfgz3610/NVIDIA-Linux-x86_64-100.14.11-pkg1/usr/src/nv modules
   test -e include/linux/autoconf.h -a -e include/config/auto.conf || (                \
           echo;                                                                \
           echo "  ERROR: Kernel configuration is invalid.";                \
           echo "         include/linux/autoconf.h or include/config/auto.conf are mis
   sing.";        \
           echo "         Run 'make oldconfig && make prepare' on kernel src to fix it
   .";        \
           echo;                                                                \
           /bin/false)
   mkdir -p /tmp/selfgz3610/NVIDIA-Linux-x86_64-100.14.11-pkg1/usr/src/nv/.tmp_
   versions
   rm -f /tmp/selfgz3610/NVIDIA-Linux-x86_64-100.14.11-pkg1/usr/src/nv/.tmp_ver
   sions/*
   make -f scripts/Makefile.build obj=/tmp/selfgz3610/NVIDIA-Linux-x86_64-100.1
   4.11-pkg1/usr/src/nv
   echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /tmp/selfgz3610/NVI
   DIA-Linux-x86_64-100.14.11-pkg1/usr/src/nv/nv_compiler.h
     cc -Wp,-MD,/tmp/selfgz3610/NVIDIA-Linux-x86_64-100.14.11-pkg1/usr/src/nv/.
   nv.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/4.1.1/include -D
   __KERNEL__ -Iinclude  -include include/linux/autoconf.h -Wall -Wundef -Wstri
   ct-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os  -m64 -mno
   -red-zone -mcmodel=kernel -pipe -Wno-sign-compare -fno-asynchronous-unwind-t
   ables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -maccumulate-o
   utgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -fomit-frame-p
   ointer -g  -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-s
   ign -I/tmp/selfgz3610/NVIDIA-Linux-x86_64-100.14.11-pkg1/usr/src/nv -Wall -W
   implicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wp
   ointer-arith  -Wno-multichar  -Werror  -O -fno-common -msoft-float
   -mcmodel=kernel -mno-red-zone        -MD   -Wsign-compare -Wno-cast-qual -Wn
   o-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  -DNVRM -DNV_VERSION_STR
   ING=\"100.14.11\" -UDEBUG -U_DEBUG -DNDEBUG -DNV_SIGNAL_STRUCT_RLIM -DNV_MUL
   TIPLE_BRIDGE_AGPGART_PRESENT -DNV_PCI_GET_CLASS_PRESENT -DNV_SYSCTL_MAX_MAP_
   COUNT_PRESENT -DNV_PM_MESSAGE_T_PRESENT -DNV_PCI_CHOOSE_STATE_PRESENT -DNV_V
   M_INSERT_PAGE_PRESENT -DNV_OLD_MM_KGDB_BREAKPOINT_PRESENT -DNV_REMAP_PFN_RAN
   GE_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_ACQUIRE_CONSOLE_SEM_PRESENT -D
   NV_VMAP_4_PRESENT  -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_S
   TR(nv)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz3610/NVIDIA-
   Linux-x86_64-100.14.11-pkg1/usr/src/nv/.tmp_nv.o /tmp/selfgz3610/NVIDIA-Linu
   x-x86_64-100.14.11-pkg1/usr/src/nv/nv.c
   In file included from include/asm/system.h:4,
                    from include/asm/processor.h:18,
                    from include/asm/thread_info.h:16,
                    from include/linux/thread_info.h:21,
                    from include/linux/preempt.h:9,
                    from include/linux/spinlock.h:49,
                    from include/linux/capability.h:47,
                    from include/linux/sched.h:53,
                    from include/linux/utsname.h:35,
                    from /tmp/selfgz3610/NVIDIA-Linux-x86_64-100.14.11-pkg1/usr
   /src/nv/nv-linux.h:19,
                    from /tmp/selfgz3610/NVIDIA-Linux-x86_64-100.14.11-pkg1/usr
   /src/nv/nv.c:14:      

TOP

include/linux/kernel.h:126: warning: conflicting types for built-in function
   鈥榮nprintf鈥?   include/linux/kernel.h:128: warning: conflicting types for built-in function
   鈥榲snprintf鈥?   In file included from include/linux/string.h:21,
                    from include/linux/bitmap.h:8,
                    from include/linux/cpumask.h:86,
                    from include/asm/processor.h:22,
                    from include/asm/thread_info.h:16,
                    from include/linux/thread_info.h:21,
                    from include/linux/preempt.h:9,
                    from include/linux/spinlock.h:49,
                    from include/linux/capability.h:47,
                    from include/linux/sched.h:53,
                    from include/linux/utsname.h:35,
                    from /tmp/selfgz3610/NVIDIA-Linux-x86_64-100.14.11-pkg1/usr
   /src/nv/nv-linux.h:19,
                    from /tmp/selfgz3610/NVIDIA-Linux-x86_64-100.14.11-pkg1/usr
   /src/nv/nv.c:14:
   include/asm/string.h:44: warning: conflicting types for built-in function 鈥
   榮trncpy鈥?   include/asm/string.h:80: warning: conflicting types for built-in function 鈥
   榮trncat鈥?   include/asm/string.h:125: warning: conflicting types for built-in function ?   ?榮trncmp鈥?   include/asm/string.h:189: warning: conflicting types for built-in function ?   ?榮trlen鈥?   include/asm/string.h:326: warning: conflicting types for built-in function ?   ?榤emmove鈥?   In file included from include/linux/bitmap.h:8,
                    from include/linux/cpumask.h:86,
                    from include/asm/processor.h:22,
                    from include/asm/thread_info.h:16,
                    from include/linux/thread_info.h:21,
                    from include/linux/preempt.h:9,
                    from include/linux/spinlock.h:49,
                    from include/linux/capability.h:47,
                    from include/linux/sched.h:53,
                    from include/linux/utsname.h:35,
                    from /tmp/selfgz3610/NVIDIA-Linux-x86_64-100.14.11-pkg1/usr
   /src/nv/nv-linux.h:19,
                    from /tmp/selfgz3610/NVIDIA-Linux-x86_64-100.14.11-pkg1/usr
   /src/nv/nv.c:14:
   include/linux/string.h:54: warning: conflicting types for built-in function
   鈥榮trncasecmp鈥?   include/linux/string.h:82: warning: conflicting types for built-in function
   鈥榮trspn鈥?   include/linux/string.h:85: warning: conflicting types for built-in function
   鈥榮trcspn鈥?   include/linux/string.h:101: warning: conflicting types for built-in function
   鈥榑_builtin_memcmp鈥?   In file included from include/linux/list.h:8,
                    from include/linux/wait.h:22,
                    from include/asm/semaphore.h:41,
                    from include/linux/sched.h:66,
                    from include/linux/utsname.h:35,
                    from /tmp/selfgz3610/NVIDIA-Linux-x86_64-100.14.11-pkg1/usr
   /src/nv/nv-linux.h:19,
                    from /tmp/selfgz3610/NVIDIA-Linux-x86_64-100.14.11-pkg1/usr
   /src/nv/nv.c:14:
   include/linux/prefetch.h: In function 鈥榩refetch_range鈥?
   include/linux/prefetch.h:62: warning: pointer of type 鈥榲oid *鈥?used in a
   rithmetic
   In file included from include/asm/smp.h:15,
                    from include/linux/smp.h:20,
                    from include/linux/sched.h:72,
                    from include/linux/utsname.h:35,
                    from /tmp/selfgz3610/NVIDIA-Linux-x86_64-100.14.11-pkg1/usr
   /src/nv/nv-linux.h:19,
                    from /tmp/selfgz3610/NVIDIA-Linux-x86_64-100.14.11-pkg1/usr
   /src/nv/nv.c:14:
   include/asm/mpspec.h:6:25: error: mach_mpspec.h: No such file or directory
   In file included from include/asm/smp.h:15,
                    from include/linux/smp.h:20,
                    from include/linux/sched.h:72,
                    from include/linux/utsname.h:35,
                    from /tmp/selfgz3610/NVIDIA-Linux-x86_64-100.14.11-pkg1/usr
   /src/nv/nv-linux.h:19,
                    from /tmp/selfgz3610/NVIDIA-Linux-x86_64-100.14.11-pkg1/usr
   /src/nv/nv.c:14:
   include/asm/mpspec.h: At top level:
   include/asm/mpspec.h:8: error: 鈥楳AX_MP_BUSSES鈥?undeclared here (not in a
   function)
   include/asm/mpspec.h:22: error: 鈥楳AX_IRQ_SOURCES鈥?undeclared here (not i
   n a function)
   In file included from include/linux/smp.h:20,
                    from include/linux/sched.h:72,
                    from include/linux/utsname.h:35,
                    from /tmp/selfgz3610/NVIDIA-Linux-x86_64-100.14.11-pkg1/usr
   /src/nv/nv-linux.h:19,
                    from /tmp/selfgz3610/NVIDIA-Linux-x86_64-100.14.11-pkg1/usr
   /src/nv/nv.c:14:
   include/asm/smp.h:150:26: error: mach_apicdef.h: No such file or directory
   In file included from include/linux/smp.h:20,
                    from include/linux/sched.h:72,
                    from include/linux/utsname.h:35,
                    from /tmp/selfgz3610/NVIDIA-Linux-x86_64-100.14.11-pkg1/usr
   /src/nv/nv-linux.h:19,
                    from /tmp/selfgz3610/NVIDIA-Linux-x86_64-100.14.11-pkg1/usr
   /src/nv/nv.c:14:
   include/asm/smp.h: In function 鈥榟ard_smp_processor_id鈥?
   include/asm/smp.h:154: warning: implicit declaration of function 鈥楪ET_APIC
   _ID鈥?   In file included from include/linux/irq.h:23,
                    from include/asm/hardirq.h:5,
                    from include/linux/hardirq.h:7,
                    from include/linux/interrupt.h:11,
                    from /tmp/selfgz3610/NVIDIA-Linux-x86_64-100.14.11-pkg1/usr
   /src/nv/nv-linux.h:79,
                    from /tmp/selfgz3610/NVIDIA-Linux-x86_64-100.14.11-pkg1/usr
   /src/nv/nv.c:14:
   include/asm/irq.h:15:25: error: irq_vectors.h: No such file or directory
   In file included from include/asm/hardirq.h:5,
                    from include/linux/hardirq.h:7,
                    from include/linux/interrupt.h:11,
                    from /tmp/selfgz3610/NVIDIA-Linux-x86_64-100.14.11-pkg1/usr
   /src/nv/nv-linux.h:79,
                    from /tmp/selfgz3610/NVIDIA-Linux-x86_64-100.14.11-pkg1/usr
   /src/nv/nv.c:14:
   include/linux/irq.h: At top level:
   include/linux/irq.h:178: error: 鈥楴R_IRQS鈥?undeclared here (not in a func
   tion)
   In file included from include/linux/interrupt.h:11,
                    from /tmp/selfgz3610/NVIDIA-Linux-x86_64-100.14.11-pkg1/usr
   /src/nv/nv-linux.h:79,
                    from /tmp/selfgz3610/NVIDIA-Linux-x86_64-100.14.11-pkg1/usr
   /src/nv/nv.c:14:
   include/linux/hardirq.h:40:27: warning: "NR_IRQS" is not defined
   make[3]: *** [/tmp/selfgz3610/NVIDIA-Linux-x86_64-100.14.11-pkg1/usr/src/nv/
   nv.o] Error 1
   make[2]: *** [_module_/tmp/selfgz3610/NVIDIA-Linux-x86_64-100.14.11-pkg1/usr
   /src/nv] Error 2
   NVIDIA: left KBUILD.
   nvidia.ko failed to build!
   make[1]: *** [module] Error 1
   make: *** [module] Error 2
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
ERROR: Installation has failed.  Please see the file
       '/var/log/nvidia-installer.log' for details.  You may find suggestions
       on fixing installation problems in the README available on the Linux
       driver download page at www.nvidia.com.      

TOP

似乎你还需要安装kernel-headers的rpm包,还有,你确定你的机器是x86_64的吗?不要用错了驱动。

[ 本帖最后由 zltjiangshi 于 2007-10-26 22:29 编辑 ]      
1,本人乃Linux伊甸园“Linux内核学习”,“红旗等发行版”版主,请大家捧场。
2,红旗Linux在设备驱动,系统设置,中文美化,易用性方面做得非常好,建议大家使用。
3,本人是红旗Linux的粉丝,不是枪手。

TOP

回复 #3 zltjiangshi 的帖子

不会吧.我是amdx2 3600+。。。。      

TOP

后半句只是提醒你一下,前半句那个rpm是一定要安装的。

[ 本帖最后由 zltjiangshi 于 2007-10-26 22:30 编辑 ]      
1,本人乃Linux伊甸园“Linux内核学习”,“红旗等发行版”版主,请大家捧场。
2,红旗Linux在设备驱动,系统设置,中文美化,易用性方面做得非常好,建议大家使用。
3,本人是红旗Linux的粉丝,不是枪手。

TOP

回楼上的。我yum install kernel-headers.x86_64以后。安装还是失败。老样子。怎么看头文件安装在哪里呢。我看显卡安装后面可以带头文件路径。能告诉我安装的 kernel-headers RPM包把include 放到哪里了吗      

TOP

头文件

你看看/usr/include目录下的文件。      

TOP

今天我试了一下:sh NVIDIA-Linux-x86_64-100.14.19-pkg2.run --kernel-source-patch /usr/src/kernels/2.6.22.9-61.fc6-i686/ --kernel-include-path /usr/include/

怎么还是不行啊。

include/asm/irq.h:15:25: error: irq_vectors.h: No such file or directory
   In file included from include/asm/hardirq.h:5,
                    from include/linux/hardirq.h:7,
                    from include/linux/interrupt.h:11,
                    from /tmp/selfgz2963/NVIDIA-Linux-x86_64-100.14.19-pkg2/usr
   /src/nv/nv-linux.h:79,
                    from /tmp/selfgz2963/NVIDIA-Linux-x86_64-100.14.19-pkg2/usr
   /src/nv/nv.c:14:
   include/linux/irq.h: At top level:
   include/linux/irq.h:178: error: 鈥楴R_IRQS鈥?undeclared here (not in a func
   tion)
   In file included from include/linux/interrupt.h:11,
                    from /tmp/selfgz2963/NVIDIA-Linux-x86_64-100.14.19-pkg2/usr
   /src/nv/nv-linux.h:79,
                    from /tmp/selfgz2963/NVIDIA-Linux-x86_64-100.14.19-pkg2/usr
   /src/nv/nv.c:14:
   include/linux/hardirq.h:40:27: warning: "NR_IRQS" is not defined
   make[3]: *** [/tmp/selfgz2963/NVIDIA-Linux-x86_64-100.14.19-pkg2/usr/src/nv/
   nv.o] Error 1
   make[2]: *** [_module_/tmp/selfgz2963/NVIDIA-Linux-x86_64-100.14.19-pkg2/usr
   /src/nv] Error 2
   NVIDIA: left KBUILD.
   nvidia.ko failed to build!
   make[1]: *** [module] Error 1
   make: *** [module] Error 2
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
ERROR: Installation has failed.  Please see the file
       '/var/log/nvidia-installer.log' for details.  You may find suggestions
       on fixing installation problems in the README available on the Linux
       driver download page at www.nvidia.com.      

TOP

试一下这个命令
./NVIDIA-Linux-x86_64-100.14.19-pkg2.run --kernel-source-path=/usr/src/kernels/2.6.22.9-61.fc6-i686/ --kernel-include-path=/usr/src/kernels/2/6/22/9-61.fc6-i686/include/      
1,本人乃Linux伊甸园“Linux内核学习”,“红旗等发行版”版主,请大家捧场。
2,红旗Linux在设备驱动,系统设置,中文美化,易用性方面做得非常好,建议大家使用。
3,本人是红旗Linux的粉丝,不是枪手。

TOP

发新话题