【求助】菜鸟在t61中安装fedora9显卡驱动的问题
fedora9中始终无法安装NVS140M的显卡驱动因为需要编译,需要使用gcc kernel-devel,装完系统后就通过yum安装了kernel-devel
但回到text mode下安装驱动时还是提示需要kernel source或者kernel-devel
试了lenovo美国站提供的驱动和nv提供的169.12版驱动都是如此
请各位高人指点 附上是出错的日志
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Tue May 20 00:12:42 2008
option status:
license pre-accepted : true
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 : true
silent : true
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)
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)
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 : (not specified)
kernel output path : (not specified)
kernel install path : (not specified)
proc mount point : /proc
ui : none
tmpdir : /tmp
ftp mirror : ftp://download.nvidia.com
RPM file list : (not specified)
Using built-in stream user interface
-> Tagging shared libraries with chcon -t textrel_shlib_t.
-> License accepted by command line option.
-> 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: Yes)
ERROR: Unable to connect to download.nvidia.com (temporary DNS error (try again
later))
-> No matching precompiled kernel interface was found on the NVIDIA ftp site;
this means that the installer will need to compile a kernel interface for
your kernel.
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
ERROR: Unable to find the kernel source tree for the currently running kernel.
Please make sure you have installed the kernel source files for your
kernel and that they are properly configured; on Red Hat Linux systems,
for example, be sure you have the 'kernel-source' or 'kernel-devel' RPM
installed.If you know the correct kernel source files are installed,
you may specify the kernel source path with the '--kernel-source-path'
command line option.
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. 新版本的fedora用了新的kernel/src目录结构,结果以前的一些依靠kernel src的程序没法编译了。
回头我找找解决方法。我这里也有个程序碰到同样的问题。 对了,你先以root身份执行:
rpm -qa|grep kernel
把结果贴出来我看看,说不定你是因为没装kernel-src 运行之后是这样的
kernel-devel-2.6.25.3-18.fc9.i686
kerneloops-0.10-11.fc9.i386
kernel-2.6.25.3-18.fc9.i686
kernel-headers-2.6.25.3-18.fc9.i386 昨晚加上了livna源后胡乱的install、update一阵后,可以进行编译了,但过程报错,下面是日志,麻烦您看一下
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Tue May 20 10:03:47 2008
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)
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)
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 : (not specified)
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".
-> Kernel source path: '/lib/modules/2.6.25.3-18.fc9.i686/source'
-> Kernel output path: '/lib/modules/2.6.25.3-18.fc9.i686/build'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Performing Xen check.
-> Cleaning kernel module build directory.
executing: 'cd ./usr/src/nv; make clean'...
-> Building kernel module:
executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.25.3-18.fc9
.i686/source SYSOUT=/lib/modules/2.6.25.3-18.fc9.i686/build'...
NVIDIA: calling KBUILD...
make CC=cc KBUILD_OUTPUT=/lib/modules/2.6.25.3-18.fc9.i686/build KBUILD_VERB
OSE=1 -C /lib/modules/2.6.25.3-18.fc9.i686/source SUBDIRS=/tmp/selfgz4120/NV
IDIA-Linux-x86-169.12-pkg1/usr/src/nv modules
make -C /lib/modules/2.6.25.3-18.fc9.i686/build \
KBUILD_SRC=/usr/src/kernels/2.6.25.3-18.fc9.i686 \
KBUILD_EXTMOD="/tmp/selfgz4120/NVIDIA-Linux-x86-169.12-pkg1/usr/src/nv" -f
/usr/src/kernels/2.6.25.3-18.fc9.i686/Makefile \
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/selfgz4120/NVIDIA-Linux-x86-169.12-pkg1/usr/src/nv/.tmp_versio
ns ; rm -f /tmp/selfgz4120/NVIDIA-Linux-x86-169.12-pkg1/usr/src/nv/.tmp_vers
ions/*
make -f /usr/src/kernels/2.6.25.3-18.fc9.i686/scripts/Makefile.build obj=/tm
p/selfgz4120/NVIDIA-Linux-x86-169.12-pkg1/usr/src/nv
cc -Wp,-MD,/tmp/selfgz4120/NVIDIA-Linux-x86-169.12-pkg1/usr/src/nv/.nv.o.d
-nostdinc -isystem /usr/lib/gcc/i386-redhat-linux/4.3.0/include -D__KERNEL_
_ -Iinclude -Iinclude2 -I/usr/src/kernels/2.6.25.3-18.fc9.i686/include -incl
ude include/linux/autoconf.h-I/tmp/selfgz4120/NVIDIA-Linux-x86-169.12-pkg1
/usr/src/nv -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-ali
asing -fno-common -Werror-implicit-function-declaration -Os -fno-stack-prote
ctor -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-bou
ndary=2 -march=i686 -mtune=generic -mtune=generic -ffreestanding -DCONFIG_AS
_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchron
ous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -I/usr/src/kernels/
2.6.25.3-18.fc9.i686/include/asm-x86/mach-generic -Iinclude/asm-x86/mach-gen
eric -I/usr/src/kernels/2.6.25.3-18.fc9.i686/include/asm-x86/mach-default -I
include/asm-x86/mach-default -fno-omit-frame-po
inter -fno-optimize-sibling-calls -g -Wdeclaration-after-statement -Wno-poin
ter-sign-I/tmp/selfgz4120/NVIDIA-Linux-x86-169.12-pkg1/usr/src/nv -Wall -W
implicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wp
ointer-arith -Wno-multichar -Werror -MD -Wsign-compare -Wno-cast-qual -Wno-e
rror -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"169.12\" -UDEBUG -U_
DEBUG -DNDEBUG -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(n
v)"-D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz4120/NVIDIA-Linu
x-x86-169.12-pkg1/usr/src/nv/nv.o /tmp/selfgz4120/NVIDIA-Linux-x86-169.12-pk
g1/usr/src/nv/nv.c
In file included from include/linux/list.h:9,
from include/linux/preempt.h:12,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:30,
from include/linux/time.h:9,
from include/linux/timex.h:58,
from include/linux/sched.h:55,
from include/linux/utsname.h:36,
from /tmp/selfgz4120/NVIDIA-Linux-x86-169.12-pkg1/usr/src/n
v/nv-linux.h:20,
from /tmp/selfgz4120/NVIDIA-Linux-x86-169.12-pkg1/usr/src/n
v/nv.c:15:
include/linux/prefetch.h: In function ‘prefetch_range’:
include/linux/prefetch.h:57: warning: pointer of type ‘void *’ used in a
rithmetic
In file included from include/asm/dma-mapping_32.h:6,
from include/asm/dma-mapping.h:3,
from include/linux/dma-mapping.h:53,
from include/asm-generic/pci-dma-compat.h:8,
from include/asm/pci.h:91,
from include/linux/pci.h:946,
from /tmp/selfgz4120/NVIDIA-Linux-x86-169.12-pkg1/usr/src/n
v/nv-linux.h:87,
from /tmp/selfgz4120/NVIDIA-Linux-x86-169.12-pkg1/usr/src/n
v/nv.c:15:
include/linux/scatterlist.h: In function ‘sg_virt’:
include/linux/scatterlist.h:199: warning: pointer of type ‘void *’ used
in arithmetic
In file included from /tmp/selfgz4120/NVIDIA-Linux-x86-169.12-pkg1/usr/src/n
v/nv-linux.h:110,
from /tmp/selfgz4120/NVIDIA-Linux-x86-169.12-pkg1/usr/src/n
v/nv.c:15:
include/linux/highmem.h: In function ‘zero_user_segments’:
include/linux/highmem.h:134: warning: pointer of type ‘void *’ used in a
rithmetic
include/linux/highmem.h:134: warning: pointer of type ‘void *’ used in a
rithmetic
include/linux/highmem.h:134: warning: pointer of type ‘void *’ used in a
rithmetic
include/linux/highmem.h:134: warning: pointer of type ‘void *’ used in a
rithmetic
include/linux/highmem.h:137: warning: pointer of type ‘void *’ used in a
rithmetic
include/linux/highmem.h:137: warning: pointer of type ‘void *’ used in a
rithmetic
include/linux/highmem.h:137: warning: pointer of type ‘void *’ used in a
rithmetic
include/linux/highmem.h:137: warning: pointer of type ‘void *’ used in a
rithmetic
cc -Wp,-MD,/tmp/selfgz4120/NVIDIA-Linux-x86-169.12-pkg1/usr/src/nv/.nv-vm.
o.d-nostdinc -isystem /usr/lib/gcc/i386-redhat-linux/4.3.0/include -D__KER
NEL__ -Iinclude -Iinclude2 -I/usr/src/kernels/2.6.25.3-18.fc9.i686/include -
include include/linux/autoconf.h-I/tmp/selfgz4120/NVIDIA-Linux-x86-169.12-
pkg1/usr/src/nv -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict
-aliasing -fno-common -Werror-implicit-function-declaration -Os -fno-stack-p
rotector -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack
-boundary=2 -march=i686 -mtune=generic -mtune=generic -ffreestanding -DCONFI
G_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-async
hronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -I/usr/src/kern
els/2.6.25.3-18.fc9.i686/include/asm-x86/mach-generic -Iinclude/asm-x86/mach
-generic -I/usr/src/kernels/2.6.25.3-18.fc9.i686/include/asm-x86/mach-defaul
t -Iinclude/asm-x86/mach-default -fno-omit-frame-pointer -fno-optimize-sibli
ng-calls -g -Wdeclaration-after-statement -Wno-pointer-sign-I/tmp/selfgz41
20/NVIDIA-Linux-x86-169.12-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -W
switch -Wformat -Wchar-subscripts -Wparenthe
ses -Wpointer-arith -Wno-multichar -Werror -MD -Wsign-compare -Wno-cast-qual
-Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"169.12\" -UDEB
UG -U_DEBUG -DNDEBUG -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD
_STR(nv_vm)"-D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz4120/NV
IDIA-Linux-x86-169.12-pkg1/usr/src/nv/nv-vm.o /tmp/selfgz4120/NVIDIA-Linux-x
86-169.12-pkg1/usr/src/nv/nv-vm.c
In file included from include/linux/list.h:9,
from include/linux/preempt.h:12,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:30,
from include/linux/time.h:9,
from include/linux/timex.h:58,
from include/linux/sched.h:55,
from include/linux/utsname.h:36,
from /tmp/selfgz4120/NVIDIA-Linux-x86-169.12-pkg1/usr/src/n
v/nv-linux.h:20,
from /tmp/selfgz4120/NVIDIA-Linux-x86-169.12-pkg1/usr/src/n
v/nv-vm.c:15:
include/linux/prefetch.h: In function ‘prefetch_range’:
include/linux/prefetch.h:57: warning: pointer of type ‘void *’ used in a
rithmetic
In file included from include/asm/dma-mapping_32.h:6,
from include/asm/dma-mapping.h:3,
from include/linux/dma-mapping.h:53,
from include/asm-generic/pci-dma-compat.h:8,
from include/asm/pci.h:91,
from include/linux/pci.h:946,
from /tmp/selfgz4120/NVIDIA-Linux-x86-169.12-pkg1/usr/src/n
v/nv-linux.h:87,
from /tmp/selfgz4120/NVIDIA-Linux-x86-169.12-pkg1/usr/src/n
v/nv-vm.c:15:
include/linux/scatterlist.h: In function ‘sg_virt’:
include/linux/scatterlist.h:199: warning: pointer of type ‘void *’ used
in arithmetic
In file included from /tmp/selfgz4120/NVIDIA-Linux-x86-169.12-pkg1/usr/src/n
v/nv-linux.h:110,
from /tmp/selfgz4120/NVIDIA-Linux-x86-169.12-pkg1/usr/src/n
v/nv-vm.c:15:
include/linux/highmem.h: In function ‘zero_user_segments’:
include/linux/highmem.h:134: warning: pointer of type ‘void *’ used in a
rithmetic
include/linux/highmem.h:134: warning: pointer of type ‘void *’ used in a
rithmetic
include/linux/highmem.h:134: warning: pointer of type ‘void *’ used in a
rithmetic
include/linux/highmem.h:134: warning: pointer of type ‘void *’ used in a
rithmetic
include/linux/highmem.h:137: warning: pointer of type ‘void *’ used in a
rithmetic
include/linux/highmem.h:137: warning: pointer of type ‘void *’ used in a
rithmetic
include/linux/highmem.h:137: warning: pointer of type ‘void *’ used in a
rithmetic
include/linux/highmem.h:137: warning: pointer of type ‘void *’ used in a
rithmetic
/tmp/selfgz4120/NVIDIA-Linux-x86-169.12-pkg1/usr/src/nv/nv-vm.c: In function
‘nv_flush_caches’:
/tmp/selfgz4120/NVIDIA-Linux-x86-169.12-pkg1/usr/src/nv/nv-vm.c:364: error:
implicit declaration of function ‘global_flush_tlb’
make: *** [/tmp/selfgz4120/NVIDIA-Linux-x86-169.12-pkg1/usr/src/nv/nv-vm.
o] Error 1
make: *** [_module_/tmp/selfgz4120/NVIDIA-Linux-x86-169.12-pkg1/usr/src/n
v] Error 2
make: *** Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make: *** Error 1
make: *** 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. 你遇到的问题仍旧是kernel-src引起的。
你先
ls -l /lib/modules/2.6.25.3-18.fc9.i686/
把结果贴一下,另外,你重新安装一次,在到了这步:
...
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)
这个地方选Yes
看看后面能否通过 ls的结果是
$ ls -l /lib/modules/2.6.25.3-18.fc9.i686/
总计 1748
lrwxrwxrwx 1 root root 45 05-19 16:01 build -> ../../../usr/src/kernels/2.6.25.3-18.fc9.i686
drwxr-xr-x 2 root root 4096 05-13 09:46 extra
drwxr-xr-x 9 root root 4096 05-19 16:01 kernel
-rw-r--r-- 1 root root 369164 05-19 16:01 modules.alias
-rw-r--r-- 1 root root 1616 05-13 09:47 modules.block
-rw-r--r-- 1 root root 69 05-19 16:01 modules.ccwmap
-rw-r--r-- 1 root root 342143 05-19 16:01 modules.dep
-rw-r--r-- 1 root root 147 05-19 16:01 modules.ieee1394map
-rw-r--r-- 1 root root 375 05-19 16:01 modules.inputmap
-rw-r--r-- 1 root root12467 05-19 16:01 modules.isapnpmap
-rw-r--r-- 1 root root 1673 05-13 09:47 modules.networking
-rw-r--r-- 1 root root 74 05-19 16:01 modules.ofmap
-rw-r--r-- 1 root root62584 05-13 09:45 modules.order
-rw-r--r-- 1 root root 265091 05-19 16:01 modules.pcimap
-rw-r--r-- 1 root root 1009 05-19 16:01 modules.seriomap
-rw-r--r-- 1 root root 150822 05-19 16:01 modules.symbols
-rw-r--r-- 1 root root 496491 05-19 16:01 modules.usbmap
lrwxrwxrwx 1 root root 5 05-19 16:01 source -> build
drwxr-xr-x 2 root root 4096 05-13 09:46 updates
drwxr-xr-x 2 root root 4096 05-19 16:01 vdso
drwxr-xr-x 2 root root 4096 05-13 09:46 weak-updates
重装安装了一次还是不不行,提示没有合适的precompiled kernel interface
确认可以可以连通外网、DNS正常运行 执行nvidia-installer的命令时看看能带哪些参数。比如:
nvidia-installer -help
或者nvidia-installer -?
类似这样的命令,把结果发上来看看,我帮你找找设置kernnel src目录的地方,把默认的目录改为:
/usr/src/kernels/2.6.25.3-18.fc9.i686 export KSRC=/usr/src/kernels/2.6.25.3-18.fc9.i686 Posted by Roamvalley on 2008-5-20 19:23 http://www.thinkpad.cn/forum/images/common/back.gif
执行nvidia-installer的命令时看看能带哪些参数。比如:
nvidia-installer -help
或者nvidia-installer -?
类似这样的命令,把结果发上来看看,我帮你找找设置kernnel src目录的地方,把默认的目录改为:
/ ...
执行后有这么几个参数与“kernel”有关
--kernel-include-path=KERNEL-INCLUDE-PATH
The directory containing the kernel include files that
should be used when compiling the NVIDIA kernel module.
This option is deprecated; please use
'--kernel-source-path' instead.
--kernel-source-path=KERNEL-SOURCE-PATH
The directory containing the kernel source files that
should be used when compiling the NVIDIA kernel module.
When not specified, the installer will use
'/lib/modules/`uname -r`/build', if that directory exists.
Otherwise, it will use '/usr/src/linux'.
--kernel-output-path=KERNEL-OUTPUT-PATH
The directory containing any KBUILD output files if either
one of the 'KBUILD_OUTPUT' or 'O' parameters were passed to
KBUILD when building the kernel image/modules.When not
specified, the installer will assume that no separate
output directory was used.
--kernel-install-path=KERNEL-INSTALL-PATH
The directory in which the NVIDIA kernel module should be
installed.The default value is either
'/lib/modules/`uname -r`/kernel/drivers/video' (if
'/lib/modules/`uname -r`/kernel' exists) or
'/lib/modules/`uname -r`/video'.
我用第二个指定kernel-source-path后,还是没有办法通过,仍然是在编译过程中出错 下载了新的173版驱动终于可以编译了;之后又试了下之前的169版、171版、Lenovo10X版,还是不行,也许就是它的问题吧
不过,现在还是无法正常运行,在启动时无法进入x-window界面,只能在"login"那个命令行画面闪来闪去。最后只好进入控制台模式,备份回之前的xorg.conf文件了,草草地按照NV的说明改了一下也是不行。先google一下解决办法……
折腾的这几天,学到了不少的东西,非常感谢热心Roamvalley兄的耐心指点:)
[ Edited byrealise624 on 2008-5-21 17:43 ] 这个驱动是for NVS140M吗,在哪里下载的,楼主能给个连接吗? 晕,我半年前在t61装Fedora core 9的时候自动识别、搞定的nvs140m。我当时超级惊讶,以前我dell d630的135m卡可费了我不少力气。 看看这个链接, 安装nv显卡驱动:
http://www.fedorafaq.org/#nvidia
页:
[1]