分页: 1 / 1

[测试]手动安装显卡驱动出现的问题。。。

发表于 : 2007-07-31 10:46
wolfwang
因为置顶贴里的三个N卡驱动都不适合我,所以想装一个另外的版本,于是就下载了8776版本, 前面都正常,就是安装到最后提示Unable to build the NVIDIA Kernel module...请问各位大吓这是怎么回事?


nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Tue Jul 31 10:14: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
no RPMs : false
no kernel module : false
force SELinux : default
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
-> License accepted.
-> No precompiled kernel interface was found to match your kernel; would you li
-> 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-16-generic/build'
-> Kernel output path: '/lib/modules/2.6.20-16-generic/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-i2c.o nv.o nv
-vm.o os-agp.o os-interface.o os-registry.o nv-i2c.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 -f stprof stprof.o symtab.h
rm -f -rf .tmp_versions
-> Building kernel module:
executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.20-16-gener
ic/build SYSOUT=/lib/modules/2.6.20-16-generic/build'...

NVIDIA: calling KBUILD...
make CC=cc KBUILD_VERBOSE=1 -C /lib/modules/2.6.20-16-generic/build SUBDIRS
NVIDIA: calling KBUILD...
make CC=cc KBUILD_VERBOSE=1 -C /lib/modules/2.6.20-16-generic/build SUBDIRS
=/tmp/selfgz6081/NVIDIA-Linux-x86-1.0-8776-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/selfgz6081/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/nv/.tmp_vers
ions
rm -f /tmp/selfgz6081/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/nv/.tmp_version
s/*
make -f scripts/Makefile.build obj=/tmp/selfgz6081/NVIDIA-Linux-x86-1.0-8776
-pkg1/usr/src/nv
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /tmp/selfgz6081/NVI
DIA-Linux-x86-1.0-8776-pkg1/usr/src/nv/nv_compiler.h
cc -Wp,-MD,/tmp/selfgz6081/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/nv/.nv.o
.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.1.2/include -D__KERNEL_
_ -Iinclude -include include/linux/autoconf.h -Iubuntu/include -Wall -Wund
ef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -
pipe -msoft-float -mregparm=3 -mpreferred-stack-boundary=2 -march=i586 -mtu
ne=generic -ffreestanding -maccumulate-outgoing-args -Iinclude/asm-i386/ma
pipe -msoft-float -mregparm=3 -mpreferred-stack-boundary=2 -march=i586 -mtu
ne=generic -ffreestanding -maccumulate-outgoing-args -Iinclude/asm-i386/ma
ch-default -fomit-frame-pointer -g -fno-stack-protector -Wdeclaration-after
-statement -Wno-pointer-sign -I/tmp/selfgz6081/NVIDIA-Linux-x86-1.0-8776-pkg
1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscri
pts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -O -fno-common -M
D -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNE
L__ -DMODULE -DNTRM -DNVRM -DDYNAMIC_SLI -DNV_MAJOR_VERSION=1 -DNV_MINOR_V
ERSION=0 -DNV_PATCHLEVEL=8776 -UDEBUG -U_DEBUG -DNDEBUG -DNV_SIGNAL_STRUCT_
RLIM -DNV_MULTIPLE_BRIDGE_AGPGART_PRESENT -DNV_PCI_GET_CLASS_PRESENT -DNV_SY
SCTL_MAX_MAP_COUNT_PRESENT -DNV_PM_MESSAGE_T_PRESENT -DNV_PCI_CHOOSE_STATE_P
RESENT -DNV_VM_
INSERT_PAGE_PRESENT -DNV_REMAP_PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESE
NT -DNV_VMAP_4_PRESENT -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBU
ILD_STR(nv)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz6081/NV
IDIA-Linux-x86-1.0-8776-pkg1/usr/src/nv/.tmp_nv.o /tmp/selfgz6081/NVIDIA-Lin
ux-x86-1.0-8776-pkg1/usr/src/nv/nv.c
在包含自 /tmp/selfgz6081/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/nv/nv.c
��14 的文件中:
/tmp/selfgz6081/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/nv/nv-linux.h:17:26:
错误: linux/config.h:No such file or directory
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:59,
from include/linux/utsname.h:35,
from include/linux/sched.h:59,
from include/linux/utsname.h:35,
from /tmp/selfgz6081/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src
/nv/nv-linux.h:19,
from /tmp/selfgz6081/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src
/nv/nv.c:14:
include/linux/prefetch.h: 在函数 ‘prefetch_range’ 中:
include/linux/prefetch.h:62: 警告: ‘void *’ 型指针用在了算术
表达式中
/tmp/selfgz6081/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/nv/nv.c: 在顶层:
/tmp/selfgz6081/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/nv/nv.c:102: 警告�
� ‘kmem_cache_t’ 已过时
/tmp/selfgz6081/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/nv/nv.c: 在函数 ╰�
�nv_kern_open’ 中:
/tmp/selfgz6081/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/nv/nv.c:1806: 警告
�� 传递参数 2 (属于 ‘request_irq’)时在不兼容的指针类型鞋�
�转换
make[3]: *** [/tmp/selfgz6081/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/nv/nv.o
] 错误 1
make[2]: *** [_module_/tmp/selfgz6081/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src
/nv] 错误 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [mdl] 错误 1
make: *** [module] 错误 2
-> Error.
make: *** [module] 错误 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.



LINUX 想说爱你真的不容易....

发表于 : 2007-07-31 10:48
wolfwang
安装步骤就是依照以下贴子里做的,

viewtopic.php?t=58659&highlight=nvidia

发表于 : 2007-08-02 13:25
kokieultra
touch一个config.h文件再编译试试

代码: 全选

touch /usr/src/kernels/`uname -r`-i686/include/linux/config.h
sudo touch /usr/src/linux-headers-2.6.20-15-generic/include/linux/config.h 

发表于 : 2007-08-02 13:30
skyx
8776的驱动? 源里面有8762啊

发表于 : 2007-08-02 13:51
skyx
看了你的帖,我刚才remove掉了源中的驱动后,手动安装了10.9755 驱动,ubuntu是昨天晚上安装的
虽然有warning , 但译后成功。

cat /var/log/nvidia-installer.log
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Thu Aug 2 13:45:33 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)
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
-> 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-16-generic/build'
-> Kernel output path: '/lib/modules/2.6.20-16-generic/build'
-> 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 nv.o nv
-vm.o os-agp.o os-interface.o os-registry.o nv-i2c.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 -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=/lib/modules/2.6.20-16-gener
ic/build SYSOUT=/lib/modules/2.6.20-16-generic/build'...
sh ./conftest.sh "cc" "cc" /lib/modules/2.6.20-16-generic/build /lib/modules
/2.6.20-16-generic/build cc_sanity_check full_output
sh ./conftest.sh "cc" "cc" /lib/modules/2.6.20-16-generic/build /lib/modules
/2.6.20-16-generic/build select_makefile full_output
make --no-print-directory -f Makefile module

NVIDIA: calling KBUILD...
make CC=cc KBUILD_VERBOSE=1 -C /lib/modules/2.6.20-16-generic/build SUBDIRS
=/tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-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/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/src/nv/.tmp_vers
ions
rm -f /tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/src/nv/.tmp_version
s/*
make -f scripts/Makefile.build obj=/tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755
-pkg1/usr/src/nv
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /tmp/selfgz8816/NVI
DIA-Linux-x86-1.0-9755-pkg1/usr/src/nv/nv_compiler.h
cc -Wp,-MD,/tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/src/nv/.nv.o
.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.1.2/include -D__KERNEL_
_ -Iinclude -include include/linux/autoconf.h -Iubuntu/include -Wall -Wund
ef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -
pipe -msoft-float -mregparm=3 -mpreferred-stack-boundary=2 -march=i586 -mtu
ne=generic -ffreestanding -maccumulate-outgoing-args -Iinclude/asm-i386/ma
ch-default -fomit-frame-pointer -g -fno-stack-protector -Wdeclaration-after
-statement -Wno-pointer-sign -I/tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg
1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscri
pts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -O -fno-common -
msoft-float -MD -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_KE
RNEL_NAMES -D__K
ERNEL__ -DMODULE -DNVRM -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATC
HLEVEL=9755 -UDEBUG -U_DEBUG -DNDEBUG -DNV_SIGNAL_STRUCT_RLIM -DNV_MULTIPLE
_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_VM_INS
ERT_PAGE_PRESENT -DNV_OLD_MM_KGDB_BREAKPOINT_PRESENT -DNV_REMAP_PFN_RANGE_PR
ESENT -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/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/src/nv/.tm
p_nv.o /tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/src/nv/nv.c
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:59,
from include/linux/utsname.h:35,
from /tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/src
/nv/nv-linux.h:19,
from /tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/src
/nv/nv.c:14:
include/linux/prefetch.h: 在函数 ‘prefetch_range’ 中:
include/linux/prefetch.h:62: 警告: ‘void *’ 型指针用在了算术
表达式中
/tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/src/nv/nv.c: 在顶层:
/tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/src/nv/nv.c:110: 警告
� ‘kmem_cache_t’ 已过时
/tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/src/nv/nv.c: 在函数
�__nv_setup_pat_entries’ 中:
/tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/src/nv/nv.c:955: 警告
� 比较有符号和无符号数
/tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/src/nv/nv.c: 在函数
�__nv_restore_pat_entries’ 中:
/tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/src/nv/nv.c:981: 警告
� 比较有符号和无符号数
/tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/src/nv/nv.c: 在函数
�nv_kern_cpu_callback’ 中:
/tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/src/nv/nv.c:1287: 警告
�� 比较有符号和无符号数
/tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/src/nv/nv.c:1294: 警告
�� 比较有符号和无符号数
cc -Wp,-MD,/tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/src/nv/.nv-v
m.o.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.1.2/include -D__KERN
EL__ -Iinclude -include include/linux/autoconf.h -Iubuntu/include -Wall -W
undef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O
2 -pipe -msoft-float -mregparm=3 -mpreferred-stack-boundary=2 -march=i586 -
mtune=generic -ffreestanding -maccumulate-outgoing-args -Iinclude/asm-i386
/mach-default -fomit-frame-pointer -g -fno-stack-protector -Wdeclaration-af
ter-statement -Wno-pointer-sign -I/tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-
pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subs
cripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -O -fno-commo
n -msoft-float -MD -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE
_KERNEL_NAMES -D__KERNEL__ -
DMODULE -DNVRM -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=97
55 -UDEBUG -U_DEBUG -DNDEBUG -DNV_SIGNAL_STRUCT_RLIM -DNV_MULTIPLE_BRIDGE_A
GPGART_PRESENT -DNV_PCI_GET_CLASS_PRESENT -DNV_SYSCTL_MAX_MAP_COUNT_PRESENT
-DNV_PM_MESSAGE_T_PRESENT -DNV_PCI_CHOOSE_STATE_PRESENT -DNV_VM_INSERT_PAGE_
PRESENT -DNV_OLD_MM_KGDB_BREAKPOINT_PRESENT -DNV_REMAP_PFN_RANGE_PRESENT -DN
V_CHANGE_PAGE_ATTR_PRESENT -DNV_VMAP_4_PRESENT -DMODULE -D"KBUILD_STR(s)=#s
" -D"KBUILD_BASENAME=KBUILD_STR(nv_vm)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia
)" -c -o /tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/src/nv/.tmp_nv-v
m.o /tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/src/nv/nv-vm.c
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:59,
from include/linux/utsname.h:35,
from /tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/src
/nv/nv-linux.h:19,
from /tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/src
/nv/nv-vm.c:14:
include/linux/prefetch.h: 在函数 ‘prefetch_range’ 中:
include/linux/prefetch.h:62: 警告: ‘void *’ 型指针用在了算术
表达式中
cc -Wp,-MD,/tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/src/nv/.os-a
gp.o.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.1.2/include -D__KER
NEL__ -Iinclude -include include/linux/autoconf.h -Iubuntu/include -Wall -
Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -
O2 -pipe -msoft-float -mregparm=3 -mpreferred-stack-boundary=2 -march=i586
-mtune=generic -ffreestanding -maccumulate-outgoing-args -Iinclude/asm-i38
6/mach-default -fomit-frame-pointer -g -fno-stack-protector -Wdeclaration-a
fter-statement -Wno-pointer-sign -I/tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755
-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-sub
scripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -O -fno-comm
on -msoft-float -MD -
Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -
DMODULE -DNVRM -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=97
55 -UDEBUG -U_DEBUG -DNDEBUG -DNV_SIGNAL_STRUCT_RLIM -DNV_MULTIPLE_BRIDGE_A
GPGART_PRESENT -DNV_PCI_GET_CLASS_PRESENT -DNV_SYSCTL_MAX_MAP_COUNT_PRESENT
-DNV_PM_MESSAGE_T_PRESENT -DNV_PCI_CHOOSE_STATE_PRESENT -DNV_VM_INSERT_PAGE_
PRESENT -DNV_OLD_MM_KGDB_BREAKPOINT_PRESENT -DNV_REMAP_PFN_RANGE_PRESENT -DN
V_CHANGE_PAGE_ATTR_PRESENT -DNV_VMAP_4_PRESENT -DMODULE -D"KBUILD_STR(s)=#s
" -D"KBUILD_BASENAME=KBUILD_STR(os_agp)" -D"KBUILD_MODNAME=KBUILD_STR(nvidi
a)" -c -o /tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/src/nv/.tmp_os-
agp.o /tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/src/nv/os-agp.c
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:59,
from include/linux/utsname.h:35,
from /tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/src
/nv/nv-linux.h:19,
from /tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/src
/nv/os-agp.c:24:
include/linux/prefetch.h: 在函数 ‘prefetch_range’ 中:
include/linux/prefetch.h:62: 警告: ‘void *’ 型指针用在了算术
表达式中
cc -Wp,-MD,/tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/src/nv/.os-i
nterface.o.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.1.2/include -
D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Iubuntu/include -
Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-co
mmon -O2 -pipe -msoft-float -mregparm=3 -mpreferred-stack-boundary=2 -march
=i586 -mtune=generic -ffreestanding -maccumulate-outgoing-args -Iinclude/a
sm-i386/mach-default -fomit-frame-pointer -g -fno-stack-protector -Wdeclara
tion-after-statement -Wno-pointer-sign -I/tmp/selfgz8816/NVIDIA-Linux-x86-1.
0-9755-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wch
ar-subscripts -Wparenthes
es -Wpointer-arith -Wno-multichar -Werror -O -fno-common -msoft-float
-MD -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__K
ERNEL__ -DMODULE -DNVRM -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATC
HLEVEL=9755 -UDEBUG -U_DEBUG -DNDEBUG -DNV_SIGNAL_STRUCT_RLIM -DNV_MULTIPLE
_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_VM_INS
ERT_PAGE_PRESENT -DNV_OLD_MM_KGDB_BREAKPOINT_PRESENT -DNV_REMAP_PFN_RANGE_PR
ESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_VMAP_4_PRESENT -DMODULE -D"KBUILD_
STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(os_interface)" -D"KBUILD_MODNAME=K
BUILD_STR(nvidia)" -c -o /tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/
src/nv/.tmp_os-interface.o /tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/us
r/src/nv/os-interface.c
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:59,
from include/linux/utsname.h:35,
from /tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/src
/nv/nv-linux.h:19,
from /tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/src
/nv/os-interface.c:26:
include/linux/prefetch.h: 在函数 ‘prefetch_range’ 中:
include/linux/prefetch.h:62: 警告: ‘void *’ 型指针用在了算术
表达式中
cc -Wp,-MD,/tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/src/nv/.os-r
egistry.o.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.1.2/include -D
__KERNEL__ -Iinclude -include include/linux/autoconf.h -Iubuntu/include -W
all -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-com
mon -O2 -pipe -msoft-float -mregparm=3 -mpreferred-stack-boundary=2 -march=
i586 -mtune=generic -ffreestanding -maccumulate-outgoing-args -Iinclude/as
m-i386/mach-default -fomit-frame-pointer -g -fno-stack-protector -Wdeclarat
ion-after-statement -Wno-pointer-sign -I/tmp/selfgz8816/NVIDIA-Linu
x-x86-1.0-9755-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wfor
mat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror
-O -fno-common -msoft-float -MD -Wsign-compare -Wno-cast-qual -Wno-
error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNVRM -DNV_MAJOR_VERSION
=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=9755 -UDEBUG -U_DEBUG -DNDEBUG -DNV
_SIGNAL_STRUCT_RLIM -DNV_MULTIPLE_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_VM_INSERT_PAGE_PRESENT -DNV_OLD_MM_KGDB_BREAKPOIN
T_PRESENT -DNV_REMAP_PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_VM
AP_4_PRESENT -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(os
_registry)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz8816/NVI
DIA-Linux-x86-1.0-9755-pkg1/usr/src/nv/.tmp_os-registry.o /tmp/selfgz8816/NV
IDIA-Linux-x86-1.0-9755-pkg1/usr/src/nv/os-registry.c
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:59,
from include/linux/utsname.h:35,
from /tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/src
/nv/nv-linux.h:19,
from /tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/src
/nv/os-registry.c:14:
include/linux/prefetch.h: 在函数 ‘prefetch_range’ 中:
include/linux/prefetch.h:62: 警告: ‘void *’ 型指针用在了算术
表达式中
cc -Wp,-MD,/tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/src/nv/.nv-i
2c.o.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.1.2/include -D__KER
NEL__ -Iinclude -include include/linux/autoconf.h -Iubuntu/include -Wall -
Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -
O2 -pipe -msoft-float -mregparm=3 -mpreferred-stack-boundary=2 -march=i586
-mtune=generic -ffreestanding -maccumulate-outgoing-args -Iinclude/asm-i38
6/mach-default -fomit-frame-pointer -g
-fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign -I/tm
p/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/src/nv -Wall -Wimplicit -Wre
turn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith
-Wno-multichar -Werror -O -fno-common -msoft-float -MD -Wsign-comp
are -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -
DNVRM -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=9755 -UDEBU
G -U_DEBUG -DNDEBUG -DNV_SIGNAL_STRUCT_RLIM -DNV_MULTIPLE_BRIDGE_AGPGART_PRE
SENT -DNV_PCI_GET_CLASS_PRESENT -DNV_SYSCTL_MAX_MAP_COUNT_PRESENT -DNV_PM_ME
SSAGE_T_PRESENT -DNV_PCI_CHOOSE_STATE_PRESENT -DNV_VM_INSERT_PAGE_PRESENT -D
NV_OLD_MM_KGDB_BREAKPOINT_PRESENT -DNV_REMAP_PFN_RANGE_PRESENT -DNV_CHANGE_P
AGE_ATTR_PRESENT -DNV_VMAP_4_PRESENT -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUIL
D_BASENAME=KBUILD_STR(nv_i2c)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o
/tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/src/nv/.tmp_nv-i2c.o /tmp
/selfgz8816/NVIDIA-Linux-x86-1.0-97
55-pkg1/usr/src/nv/nv-i2c.c
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:59,
from include/linux/utsname.h:35,
from /tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/src
/nv/nv-linux.h:19,
from /tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/src
/nv/nv-i2c.c:8:
include/linux/prefetch.h: 在函数 ‘prefetch_range’ 中:
include/linux/prefetch.h:62: 警告: ‘void *’ 型指针用在了算术
表达式中
ld -m elf_i386 -m elf_i386 -r -o /tmp/selfgz8816/NVIDIA-Linux-x86-1.0-975
5-pkg1/usr/src/nv/nvidia.o /tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/us
r/src/nv/nv-kernel.o /tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/src/
nv/nv.o /tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/src/nv/nv-vm.o /t
mp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/src/nv/os-agp.o /tmp/selfgz
8816/NVIDIA-Linux-x86-1.0-9755-pkg1
/usr/src/nv/os-interface.o /tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/us
r/src/nv/os-registry.o /tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/sr
c/nv/nv-i2c.o
Building modules, stage 2.
make -f /usr/src/linux-headers-2.6.20-16-generic/scripts/Makefile.modpost
scripts/mod/modpost -m -a -i /usr/src/linux-headers-2.6.20-16-generic/Modu
le.symvers -I /tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/src/nv/Modu
le.symvers -o /tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/src/nv/Modu
le.symvers -w /tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/src/nv/nvi
dia.o
WARNING: could not find /tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/s
rc/nv/.nv-kernel.o.cmd for /tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/us
r/src/nv/nv-kernel.o
cc -Wp,-MD,/tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/src/nv/.nvid
ia.mod.o.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.1.2/include -D_
_KERNEL__ -Iinclude -include include/linux/autoconf.h -Iubuntu/include -Wa
ll -Wundef -Wstrict-prototypes -Wno-trigraph
s -fno-strict-aliasing -fno-common -O2 -pipe -msoft-float -mregparm=3 -mpref
erred-stack-boundary=2 -march=i586 -mtune=generic -ffreestanding -maccumula
te-outgoing-args -Iinclude/asm-i386/mach-default -fomit-frame-pointer -g
-fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign -D"K
BUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nvidia.mod)" -D"KBUILD_MODNA
ME=KBUILD_STR(nvidia)" -DMODULE -c -o /tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9
755-pkg1/usr/src/nv/nvidia.mod.o /tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-p
kg1/usr/src/nv/nvidia.mod.c
ld -m elf_i386 -m elf_i386 -r -o /tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755
-pkg1/usr/src/nv/nvidia.ko /tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/us
r/src/nv/nvidia.o /tmp/selfgz8816/NVIDIA-Linux-x86-1.0-9755-pkg1/usr/src/nv/
nvidia.mod.o
NVIDIA: left KBUILD.
-> done.
-> Kernel module compilation complete.
-> Kernel messages:
[ 61.704592] eth0: no IPv6 routers present
[ 62.856790] Adding 935536k swap on
/media/host/wubi/disks/swap.virtual.disk. Priority:-1 extents:1
across:935536k
[ 64.471722] No dock devices found.
[ 64.623969] Using specific hotkey driver
[ 64.696836] ibm_acpi: ec object not found
[ 64.783424] input: Power Button (FF) as /class/input/input5
[ 64.787901] ACPI: Power Button (FF) [PWRF]
[ 64.821971] input: Power Button (CM) as /class/input/input6
[ 64.826364] ACPI: Power Button (CM) [PWRB]
[ 64.942210] pcc_acpi: loading...
[ 65.281140] powernow-k8: Power state transitions not supported
[ 80.496817] ppdev: user-space parallel port driver
[ 83.099276] apm: BIOS version 1.2 Flags 0x07 (Driver version 1.16ac)
[ 83.099282] apm: overridden by ACPI.
[ 83.791978] Bluetooth: Core ver 2.11
[ 83.792379] NET: Registered protocol family 31
[ 83.792384] Bluetooth: HCI device and connection manager initialized
[ 83.792388] Bluetooth: HCI socket layer initialized
[ 83.946607] Bluetooth: L2CAP ver 2.8
[ 83.946611] Bluetooth: L2CAP socket layer initialized
[ 83.969417] Bluetooth: RFCOMM socket layer initialized
[ 83.969431] Bluetooth: RFCOMM TTY layer initialized
[ 83.969433] Bluetooth: RFCOMM ver 1.8
[ 5502.725037] PCI: Setting latency timer of device 0000:00:05.0 to 64
[ 5502.725874] NVRM: loading NVIDIA UNIX x86 Kernel Module 1.0-9755 Mon
Feb 26 23:21:15 PST 2007
-> Installing both new and classic TLS OpenGL libraries.
-> Searching for conflicting X files:
-> done.
-> Searching for conflicting OpenGL files:
-> done.
-> Installing 'NVIDIA Accelerated Graphics Driver for Linux-x86' (1.0-9755):
executing: '/sbin/ldconfig'...
executing: '/sbin/depmod -aq'...
-> done.
-> Driver file installation is complete.
-> Running post-install sanity check:
-> done.
-> Post-install sanity check passed.
-> Shared memory test passed.
-> Running runtime sanity check:
-> done.
-> Runtime sanity check passed.
-> Would you like to run the nvidia-xconfig utility to automatically update you
r X configuration file so that the NVIDIA X driver will be used when you res
tart X? Any pre-existing X configuration file will be backed up. (Answer: Y
es)
-> Your X configuration file has been successfully updated. Installation of
the NVIDIA Accelerated Graphics Driver for Linux-x86 (version: 1.0-9755) is
now complete.
sky@ubuntu:~$

发表于 : 2007-08-02 13:59
skyx
这个好像和touch 没关系,最近新装的ubuntu 如果升级会出现font cache 出错,用touch可以解决。

只有源中还不支持的新硬件才有必要手动下载安装n卡驱动,现在的编译环境版本太新,直接把很老的nvidia run 拿过来能不能在最新的环境下编译通过,这个很难说

比如最新的c 68 芯片组7050/7025,还有最新的8系n卡。

发表于 : 2007-08-02 14:07
kokieultra
查了下,确实是内核头文件结构改列,2.6.20.15后的内核头文件中(/include/linux/下)都没有config.h这个文件.楼主肯定是在新内核上安装老驱动,不兼容,在nvidia官网上下个年代近点的驱动试试

发表于 : 2007-08-02 14:11
skyx
我用的是昨天全新安装的ubuntu7.04

只进行了
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get install build-essential pkg-config xserver-xorg-dev linux-headers-`uname -r`
再就是安装了compiz fusion,在语言设定中选了中文

除此之外,没有安装任何其它软件包,flash支持之类的都没安装。

手动安装n卡时,在sudo /etc/init.d/gdm stop 前,所有命令直接从

viewtopic.php?t=67363

粘过来

安装驱动时,License 接受
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)? 这个要选no

接下来的都选ok 或接受。

发表于 : 2007-08-02 14:11
kokieultra
因为我最近在2.6.22.1内核上装Ti2的驱动,只能装7开头的驱动,但是装7184的时候就报找不到config.h的错误,到nv官网上看到2007年4月20号出的7185的说明

代码: 全选

# Improved interaction with newer Linux kernels.
# Improved compatibility with newer versions of X.Org

发表于 : 2007-08-02 14:19
skyx
好像听huahua说过,ubuntu 7.04 linux header 和6.xx不同的。

发表于 : 2007-08-02 14:21
skyx
硬件太老,要么安装老一点的ubuntu ,然后手动译驱动(实际上没意义),要么在最新版ubuntu中直接用源中的驱动(nvidia 官方和ubuntu官方的顶级高手合做译好的驱动为什么不用?)。

发表于 : 2007-08-02 22:07
wolfwang
几天没看,没想到回了这么多,谢谢了.

我也不想不用源里的那三个驱动,原因在这里

about66711.html&highlight= 


装了9755进不了X,因为9755不支持我的AGP 8X MX440(明知没有但还是试了一下);装了9631进不了我要的1024X768,看xorg.log应该是没有找到我的显示器,无论怎么设行频和场频都无效,但如果新装UBUNTU在不装上述三个驱动的情况下(原始状态),修改xorg.conf在里面加入行频和场频就能显示1024X768了,我想要3D,就没有1024x768,我想要1024X768就没有3D...人生最大的痛苦莫过于此了...至于8762,具体什么原因不行我倒是忘了,这几天折腾的,脑细胞整排整排的牺牲,脑袋都成浆糊了...

我发现一个有意思的地方,技术的进步来源于不停的折腾,如果一切顺利如水波不动,反而无趣.这些日子里虽然还没取得什么进展,但让我这个初哥在各位的帮助下也掌握了不少以前不敢想像的命令,甚至于如今都在研究NVIDIA驱动的README了.不管结果如何,这个过程还是让人愉快的,与君共勉吧!

发表于 : 2007-08-04 23:50
wolfwang
所有有关显卡的问题都已解决,谢谢各位了.

闹了半天还是驱动版本不对的缘故,最后我到http://www.nvidia.com/object/unix.html下载了9639驱动,按照skyx的方法手动安装了一遍,终于一切都正常了,世界总算安静了...

发表于 : 2008-05-17 12:44
drzhaw
我也是FX5200的,不过装了 UBUNTU 8.04 ,在那个受限里有NVIDIA,不过你没有打勾,打不上,是个红圈,貌似装不上这个驱动,刷新率只有60Hz分辨率只有600*800,在什么新立得里面也找到NVIDIA之类的东西,点右键只有删除.到底应该怎么做,能不能教我,越详悉越通俗越好,我是新新~~~手,第一次装ubuntu,还有就是我明明装的是简体中文,但还是有很多项目是英文的,在语言项目里是汉语,但支持的只有英语充,补充:连网.

发表于 : 2008-05-17 12:45
drzhaw
我也是FX5200的,不过装了 UBUNTU 8.04 ,在那个受限里有NVIDIA,不过你没有打勾,打不上,是个红圈,貌似装不上这个驱动,刷新率只有60Hz分辨率只有600*800,在什么新立得里面也找到NVIDIA之类的东西,点右键只有删除.到底应该怎么做,能不能教我,越详悉越通俗越好,我是新新~~~手,第一次装ubuntu,还有就是我明明装的是简体中文,但还是有很多项目是英文的,在语言项目里是汉语,但支持的只有英语充,补充:没连网.