In my Slackware Linux system there is a old pre-installed kernel
[O=2.6.29.6-smp] and new custom kernel [N=2.6.29.6-smp-25.10.11]
which I have compiled from the same kernel source directory tree
(/usr/src/linux). Each binary has it's own module directory tree (/lib/modules/[O,N]). There is a lilo stanza for each kernel and
either [O] or [N] can be selected from the boot menu. The dual
installation is detailed in this thread
http://www.linuxquestions.org/questi...nstall-909910/
At the moment the kernel source tree is in state [N] after the
compilation of the custom kernel. The NVidia driver module
is successfully installed.
However when I boot to the pre-installed kernel [O] the NVidia
driver fails to load (*). What can I do to ensure that it does?
Thanks for your comments
....................................................................
Alternatively I can reinstall [O] and then NVidia will no longer
load in [N]. The log file:
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Thu Oct 27 12:24:31 2011
installer version: 256.53
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
no cc version 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.
-> Installing NVIDIA driver version 256.53.
-> There appears to already be a driver installed on your system (version: 256.
53). As part of installing this driver (version: 256.53), the existing driv
er will be uninstalled. Are you sure you want to continue? ('no' will abort
installation) (Answer: Yes)
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> Kernel source path: '/lib/modules/2.6.29.6-smp-25.10.11/source'
-> Kernel output path: '/lib/modules/2.6.29.6-smp-25.10.11/build'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Performing Xen check.
-> Cleaning kernel module build directory.
executing: 'cd ./kernel; make clean'...
-> Building kernel module:
executing: 'cd ./kernel; make module SYSSRC=/lib/modules/2.6.29.6-smp-25.10.
11/source SYSOUT=/lib/modules/2.6.29.6-smp-25.10.11/build'...
NVIDIA: calling KBUILD...
make -C /lib/modules/2.6.29.6-smp-25.10.11/build \
KBUILD_SRC=/usr/src/linux-2.6.29.6 \
KBUILD_EXTMOD="/tmp/selfgz3897/NVIDIA-Linux-x86-256.53/kernel" -f /usr/src/
linux-2.6.29.6/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/selfgz3897/NVIDIA-Linux-x86-256.53/kernel/.tmp_versions ; rm -
f /tmp/selfgz3897/NVIDIA-Linux-x86-256.53/kernel/.tmp_versions/*
make -f /usr/src/linux-2.6.29.6/scripts/Makefile.build obj=/tmp/selfgz3897/N
VIDIA-Linux-x86-256.53/kernel
cc -Wp,-MD,/tmp/selfgz3897/NVIDIA-Linux-x86-256.53/kernel/.nv.o.d -nostdi
nc -isystem /usr/lib/gcc/i486-slackware-linux/4.3.3/include -Iinclude -Iincl
ude2 -I/usr/src/linux-2.6.29.6/include -I/usr/src/linux-2.6.29.6/arch/x86/in
clude -include include/linux/autoconf.h -I/tmp/selfgz3897/NVIDIA-Linux-x86
-256.53/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs
-fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -O2 -
m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=
2 -march=i686 -mtune=generic -Wa,-mtune=generic32 -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/linux-2
.6.29.6/arch/x86/include/asm/mach-default -Iarch/x86/include/asm/mach-defaul
t -fno-stack-protector -fomit-frame-pointer -Wdeclaration-after-statement -W
no-pointer-sign -fwrapv -I/tmp/selfgz3897/NVIDIA-Linux-x86-256.53/kernel -
Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNV
RM -DNV_VERSION_STRING=\"256.53\" -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -D"KBUI
LD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)" -D"KBUILD_MODNAME=KBUILD_S
TR(nvidia)" -c -o
/tmp/selfgz3897/NVIDIA-Linux-x86-256.53/kernel/nv.o /tmp/selfgz3897/NVIDIA-
Linux-x86-256.53/kernel/nv.c
[other compile lines]
ld -r -m elf_i386 --build-id -o /tmp/selfgz3897/NVIDIA-Linux-x86-256.53/k
ernel/nvidia.ko /tmp/selfgz3897/NVIDIA-Linux-x86-256.53/kernel/nvidia.o /tmp
/selfgz3897/NVIDIA-Linux-x86-256.53/kernel/nvidia.mod.o
NVIDIA: left KBUILD.
-> done.
-> Kernel module compilation complete.
ERROR: Unable to load the kernel module 'nvidia.ko'. This happens most
frequently when this kernel module was built against the wrong or
improperly configured kernel sources, with a version of gcc that differs
from the one used to build the target kernel, or if a driver such as
rivafb, nvidiafb, or nouveau is present and prevents the NVIDIA kernel
module from obtaining ownership of the NVIDIA graphics device(s), or
NVIDIA GPU installed in this system is not supported by this NVIDIA
Linux graphics driver release.
Please see the log entries 'Kernel module load error' and 'Kernel
messages' at the end of the file '/var/log/nvidia-installer.log' for
more information.
-> Kernel module load error: insmod: error inserting './kernel/nvidia.ko': -1
Invalid module format
-> Kernel messages:
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3 FS on sda9, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3 FS on sdb5, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
sd 8:0:0:0: [sdi] Attached SCSI removable disk
sd 8:0:0:0: Attached scsi generic sg9 type 0
usb-storage: device scan complete
e1000e 0000:00:19.0: irq 29 for MSI/MSI-X
e1000e 0000:00:19.0: irq 29 for MSI/MSI-X
e1000e: eth0 NIC Link is Up 100 Mbps Full Duplex, Flow Control: RX
0000:00:19.0: eth0: 10/100 speed: disabling TSO
sdh1 sdh2 < sdh5 sdh6 >
sd 7:0:0:0: [sdh] Attached SCSI disk
sd 7:0:0:0: Attached scsi generic sg10 type 0
usb-storage: device scan complete
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
eth0: no IPv6 routers present
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
tun0: Disabled Privacy Extensions
nvidia: version magic '2.6.29.6-smp SMP mod_unload 686 ' should be
'2.6.29.6-smp-25.10.11 SMP mod_unload CORE2 '
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.