|
发表于 2007-3-1 09:29:05
|
显示全部楼层
Post by echo
内核是自己编译的2.6.20.1,什么linux-kernel-headers,GCC,内核源代码都已经安装了
在shell下直接./NVIDIA-Linux-x86_64-1.0-7184-pkg2.run来安装的
安装日志如下:
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Tue Feb 27 20:18:19 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 : (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
-> 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.20.1/source'
-> Kernel output path: '/lib/modules/2.6.20.1/build'
-> Performing rivafb check.
-> Performing nvidiafb 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.o nv-vm.o os-
agp.o os-interface.o os-registry.o nvidia.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 -rf .tmp_versions
-> Building kernel module:
executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.20.1/source
SYSOUT=/lib/modules/2.6.20.1/build'...
NVIDIA: calling KBUILD...
make CC=cc KBUILD_OUTPUT=/lib/modules/2.6.20.1/build KBUILD_VERBOSE=1 -C /li
b/modules/2.6.20.1/source SUBDIRS=/tmp/selfgz3877/NVIDIA-Linux-x86_64-1.0-71
84-pkg2/usr/src/nv modules
make -C /lib/modules/2.6.20.1/build \
KBUILD_SRC=/usr/src/linux-2.6.20.1 \
KBUILD_EXTMOD="/tmp/selfgz3877/NVIDIA-Linux-x86_64-1.0-7184-pkg2/usr/src/nv
" -f /usr/src/linux-2.6.20.1/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/selfgz3877/NVIDIA-Linux-x86_64-1.0-7184-pkg2/usr/src/nv/.tmp_v
ersions
rm -f /tmp/selfgz3877/NVIDIA-Linux-x86_64-1.0-7184-pkg2/usr/src/nv/.tmp_vers
ions/*
make -f /usr/src/linux-2.6.20.1/scripts/Makefile.build obj=/tmp/selfgz3877/N
VIDIA-Linux-x86_64-1.0-7184-pkg2/usr/src/nv
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /tmp/selfgz3877/NVI
DIA-Linux-x86_64-1.0-7184-pkg2/usr/src/nv/nv_compiler.h
cc -Wp,-MD,/tmp/selfgz3877/NVIDIA-Linux-x86_64-1.0-7184-pkg2/usr/src/nv/.n
v.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.1.2/include -D__KE
RNEL__ -Iinclude -Iinclude2 -I/usr/src/linux-2.6.20.1/include -include inclu
de/linux/autoconf.h -I/tmp/selfgz3877/NVIDIA-Linux-x86_64-1.0-7184-pkg2/usr
/src/nv -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasin
g -fno-common -Os -march=k8 -m64 -mno-red-zone -mcmodel=kernel -pipe -fno-re
order-blocks -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-t
ime -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -maccumulate-outgoing-args -DCONF
IG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -fomit-frame-pointer -fno-stack-p
rotector -Wdeclaration-after-statement -Wno-pointer-sign -I/tmp/selfgz3877/
NVIDIA-Linux-x86_64-1.0-7184-pkg2/usr/src/nv -Wall -Wimplicit -Wreturn-type
-Wswitch -Wformat -Wchar-subscripts -Wparentheses
-Wpointer-arith -Wno-multichar -Werror -O -fno-common -mno-red-zone -minlin
e-all-stringops -MD -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL
_NAMES -D__KERNEL__ -DMODULE -mcmodel=kernel -DNTRM -D_GNU_SOURCE -D_LOOSE_K
ERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0
-DNV_PATCHLEVEL=7184 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNV_64_BITS -DNVCPU
_X86_64 -UDEBUG -U_DEBUG -DNDEBUG -DNV_SIGNAL_STRUCT_RLIM -DNV_MULTIPLE_BRID
GE_AGPGART_PRESENT -DNV_PCI_GET_CLASS_PRESENT -DNV_PM_MESSAGE_T_PRESENT -DNV
_PCI_CHOOSE_STATE_PRESENT -DNV_VM_INSERT_PAGE_PRESENT -DNV_REMAP_PFN_RANGE_P
RESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_VMAP_4_PRESENT -DMODULE -D"KBUILD_
STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)" -D"KBUILD_MODNAME=KBUILD_STR(
nvidia)" -c -o /tmp/selfgz3877/NVIDIA-Linux-x86_64-1.0-7184-pkg2/usr/src/nv/
nv.o /tmp/selfgz3877/NVIDIA-Linux-x86_64-1.0-7184-pkg2/usr/src/nv/nv.c
In file included from /tmp/selfgz3877/NVIDIA-Linux-x86_64-1.0-7184-pkg2/usr/
src/nv/nv.c:14:
/tmp/selfgz3877/NVIDIA-Linux-x86_64-1.0-7184-pkg2/usr/src/nv/nv-linux.h:17:2
6: error: linux/config.h: No such file or directory
In file included from include/linux/sched.h:56,
from include/linux/utsname.h:35,
from /tmp/selfgz3877/NVIDIA-Linux-x86_64-1.0-7184-pkg2/usr/
src/nv/nv-linux.h:19,
from /tmp/selfgz3877/NVIDIA-Linux-x86_64-1.0-7184-pkg2/usr/
src/nv/nv.c:14:
include/linux/nodemask.h: In function '__first_node':
include/linux/nodemask.h:229: warning: signed and unsigned type in condition
al expression
include/linux/nodemask.h: In function '__next_node':
include/linux/nodemask.h:235: warning: signed and unsigned type in condition
al expression
include/linux/nodemask.h: In function '__first_unset_node':
include/linux/nodemask.h:253: warning: signed and unsigned type in condition
al expression
In file included from include/linux/list.h:8,
from include/linux/wait.h:22,
from include/asm/semaphore.h:42,
from include/linux/sched.h:59,
from include/linux/utsname.h:35,
from /tmp/selfgz3877/NVIDIA-Linux-x86_64-1.0-7184-pkg2/usr/
src/nv/nv-linux.h:19,
from /tmp/selfgz3877/NVIDIA-Linux-x86_64-1.0-7184-pkg2/usr/
src/nv/nv.c:14:
include/linux/prefetch.h: In function 'prefetch_range':
include/linux/prefetch.h:62: warning: pointer of type 'void *' used in arith
metic
In file included from include/asm/pci.h:92,
from include/linux/pci.h:736,
from /tmp/selfgz3877/NVIDIA-Linux-x86_64-1.0-7184-pkg2/usr/
src/nv/nv-linux.h:71,
from /tmp/selfgz3877/NVIDIA-Linux-x86_64-1.0-7184-pkg2/usr/
src/nv/nv.c:14:
include/asm-generic/pci-dma-compat.h: In function 'pci_map_page':
include/asm-generic/pci-dma-compat.h:49: warning: pointer of type 'void *' u
sed in arithmetic
In file included from include/linux/compat.h:14,
from include/asm/mtrr.h:106,
from /tmp/selfgz3877/NVIDIA-Linux-x86_64-1.0-7184-pkg2/usr/
src/nv/nv-linux.h:99,
from /tmp/selfgz3877/NVIDIA-Linux-x86_64-1.0-7184-pkg2/usr/
src/nv/nv.c:14:
include/asm/compat.h: In function 'compat_alloc_user_space':
include/asm/compat.h:202: warning: pointer of type 'void *' used in arithmet
ic
/tmp/selfgz3877/NVIDIA-Linux-x86_64-1.0-7184-pkg2/usr/src/nv/nv.c: At top le
vel:
/tmp/selfgz3877/NVIDIA-Linux-x86_64-1.0-7184-pkg2/usr/src/nv/nv.c:93: warnin
g: 'kmem_cache_t' is deprecated
/tmp/selfgz3877/NVIDIA-Linux-x86_64-1.0-7184-pkg2/usr/src/nv/nv.c: In functi
on 'nv_kern_open':
/tmp/selfgz3877/NVIDIA-Linux-x86_64-1.0-7184-pkg2/usr/src/nv/nv.c:1764: warn
ing: passing argument 2 of 'request_irq' from incompatible pointer type
make[4]: *** [/tmp/selfgz3877/NVIDIA-Linux-x86_64-1.0-7184-pkg2/usr/src/nv/n
v.o] Error 1
make[3]: *** [_module_/tmp/selfgz3877/NVIDIA-Linux-x86_64-1.0-7184-pkg2/usr/
src/nv] Error 2
make[2]: *** [modules] 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.
兄弟,楼下的兄弟说的对,内核太新,不过也可用7184的在2.6.20.1上,要打一个PATCH,我现在就是用7184在2.6.20,1上,不错,看我的帖子:
- http://bbs.linuxsir.cn/showthread.php?t=293884
复制代码 |
|