Имею RIVA TNT 2. Имею установленные пакеты:
[root@KYXHA ~]# rpm -qa|grep kernel
kernel-headers-2.6.18-1.2849.fc6
kernel-2.6.18-1.2798.fc6
kernel-2.6.18-1.2849.fc6
kernel-devel-2.6.18-1.2849.fc6
Делаю init 3
sh NVIDIA-Linux-x86-1.0-7184-pkg1.run --kernel-source-path /usr/src/kernels/2.6.18-1.2849.fc6-i686
Выпадает с ошибкой - не могу построить модуль
[root@KYXHA log]# cat nvidia-installer.log
nvidia-installer log file '/var/log/nvidia-installer.log'
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 : /usr/src/kernels/2.6.18-1.2849.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
-> 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.18-1.2849.fc6-i686' as
specified by the '--kernel-source-path' commandline option.
-> Kernel source path: '/usr/src/kernels/2.6.18-1.2849.fc6-i686'
-> Kernel output path: '/usr/src/kernels/2.6.18-1.2849.fc6-i686'
-> 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=/usr/src/kernels/2.6.18-1.28
49.fc6-i686 SYSOUT=/usr/src/kernels/2.6.18-1.2849.fc6-i686'...
NVIDIA: calling KBUILD...
make CC=cc KBUILD_VERBOSE=1 -C /usr/src/kernels/2.6.18-1.2849.fc6-i686 SUBD
IRS=/tmp/selfgz5624/NVIDIA-Linux-x86-1.0-7184-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/selfgz5624/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/.tmp_vers
ions
rm -f /tmp/selfgz5624/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/.tmp_version
s/*
make -f scripts/Makefile.build obj=/tmp/selfgz5624/NVIDIA-Linux-x86-1.0-7184
-pkg1/usr/src/nv
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /tmp/selfgz5624/NVI
DIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/nv_compiler.h
cc -Wp,-MD,/tmp/selfgz5624/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/.nv.o
.d -nostdinc -isystem /usr/lib/gcc/i386-redhat-linux/4.1.1/include -D__KERN
EL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-pr
ototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Wstrict-prototypes
-Wundef -Werror-implicit-function-declaration -Os -pipe -msoft-float -fno-bu
iltin-sprintf -fno-builtin-log2 -fno-builtin-puts -mpreferred-stack-boundar
y=2 -march=i686 -mtune=generic -mtune=generic -mregparm=3 -ffreestanding -I
include/asm-i386/mach-generic -Iinclude/asm-i386/mach-default -fomit-frame-p
ointer -fasynchronous-unwind-tables -g -fno-stack-protector -Wdeclaration-a
fter-statement -Wno-pointer-sign -I/tmp/selfgz5624/NVIDIA-Linux-x86-1.0-7184
-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-sub
scripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -O -fno-commo
n -MD -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__K
ERNEL__ -DMODULE -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -D
MODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=7184 -DNV
_UNIX -DN
V_LINUX -DNV_INT64_OK -DNVCPU_X86 -UDEBUG -U_DEBUG -DNDEBUG -DNV_SI
GNAL_STRUCT_RLIM -DNV_MULTIPLE_BRIDGE_AGPGART_PRESENT -DNV_PCI_GET_CLASS_PRE
SENT -DNV_PM_MESSAGE_T_PRESENT -DNV_PCI_CHOOSE_STATE_PRESENT -DNV_VM_INSERT_
PAGE_PRESENT -DNV_REMAP_PFN_RANGE_PRESENT -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/selfgz5624/NVIDIA-Li
nux-x86-1.0-7184-pkg1/usr/src/nv/.tmp_nv.o /tmp/selfgz5624/NVIDIA-Linux-x86-
1.0-7184-pkg1/usr/src/nv/nv.c
In file included from /tmp/selfgz5624/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src
/nv/nv.c:14:
/tmp/selfgz5624/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/nv-linux.h:17:26:
error: linux/config.h: Нет такого файла или каталог
�
In file included from include/linux/list.h:8,
from include/linux/lockdep.h:12,
from include/linux/spinlock_types.h:12,
from include/linux/spinlock.h:78,
from include/linux/capability.h:45,
from include/linux/sched.h:44,
from include/linux/module.h:9,
from /tmp/selfgz5624/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src
/nv/nv-linux.h:47,
from /tmp/selfgz5624/NVIDIA-Linux-x86-1.0-7184-pkg1/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 a
rithmetic
In file included from include/linux/dmapool.h:14,
from include/linux/pci.h:564,
from /tmp/selfgz5624/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src
/nv/nv-linux.h:71,
from /tmp/selfgz5624/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src
/nv/nv.c:14:
include/asm/io.h: In function ‘check_signature’:
include/asm/io.h:245: warning: wrong type argument to increment
make[3]: *** [/tmp/selfgz5624/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/nv.o
] Ошибка 1
make[2]: *** [_module_/tmp/selfgz5624/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src
/nv] Ошибка 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Ошибка 1
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.
На 11АСПе все встало на раз, а тут -
Что делать - подскажите, пли-из!