LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-26-2011, 06:54 PM   #1
wootletootle
Member
 
Registered: Jul 2002
Location: New Zealand
Distribution: slackware
Posts: 81

Rep: Reputation: 15
NVidia driver installation for multiple kernels


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.

Last edited by wootletootle; 10-26-2011 at 06:57 PM.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 10-26-2011, 07:02 PM   #2
wootletootle
Member
 
Registered: Jul 2002
Location: New Zealand
Distribution: slackware
Posts: 81

Original Poster
Rep: Reputation: 15
I just spotted this in the log file

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; \

I guess that's the problem. Is the suggested fix going to work?

EDIT: bash-3.1# ls -l include/linux/autoconf.h
-rw-r--r-- 1 root root 114205 2011-10-27 11:09 include/linux/autoconf.h
bash-3.1# ls -l include/config/auto.conf
-rw-r--r-- 1 root root 73523 2011-10-27 11:09 include/config/auto.conf

Are these files meant to be the same?

Last edited by wootletootle; 10-26-2011 at 08:38 PM.
 
Old 10-27-2011, 03:50 AM   #3
wootletootle
Member
 
Registered: Jul 2002
Location: New Zealand
Distribution: slackware
Posts: 81

Original Poster
Rep: Reputation: 15
It turns out that when nvidia is installed it first goes round
and removes nvidia.ko from all module trees. So if

compile/install kernel [O]
install nvidia
startx
compile/install kernel [N]
install nvidia
startx

then [O] will no longer startx because nvidia.ko is missing
from the module tree. A clumsy fix is to back up the [O] driver
then copy it to the module slot.
 
Old 10-27-2011, 03:58 AM   #4
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,784

Rep: Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460
Quote:
Originally Posted by wootletootle View Post
It turns out that when nvidia is installed it first goes round
and removes nvidia.ko from all module trees.
See the help text
Code:
sh NVIDIA-Linux-x86-270.41.06.run -A
and look for -k and -K.
For example:
Code:
sh NVIDIA-Linux-x86-270.41.06.run -K -k 2.6.29.6-smp-25.10.11 -a
 
2 members found this post helpful.
Old 10-27-2011, 04:03 AM   #5
wootletootle
Member
 
Registered: Jul 2002
Location: New Zealand
Distribution: slackware
Posts: 81

Original Poster
Rep: Reputation: 15
Aaaah

Thanks Petri.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
nvidia trouble with multiple kernels slackware 10.1 salviadud Slackware 8 07-20-2005 07:48 PM
nvidia driver for multiple kernels Cornholio Linux - Hardware 4 04-02-2005 01:35 AM
NVidia driver with different kernels theonebeyond Linux - General 2 11-22-2004 11:13 AM
nvidia grafic driver solution running multiple kernels bstrik Slackware 4 09-02-2004 10:19 AM
Nvidia drivers with multiple kernels linuxhaxz Slackware 9 05-24-2004 02:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration