LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 11-01-2008, 09:25 AM   #1
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Rep: Reputation: 49
nVidia drivers for one kernel bugger those of the other kernel?


Installed a new kernel 2.6.24....amd64 for Debian Lenny and needed to make new nVidia drivers for it, using nVidia's own installer thing. Did this and it buggered same for the 2.6.18 ..... kernel (which works better than the new one). How do I get graphics for both kernels?

Read this elsewhere on this site:
Quote:
Nvidia drivers must be installed for each kernel. Make sure that each kernel has its own Nvidia module, and that when you install one it doesn't install over the top of the others
So how is the said outcome produced? (Thought of doing 'locate nvidia' and then tarring the output and then shoving them back in before rebooting into the kernel.)
 
Old 11-01-2008, 05:21 PM   #2
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
While I have never done it myself, the installer's documentation says the following options are used to set the driver up for multiple kernels:

Code:
  -K, --kernel-module-only
      Install a kernel module only, and do not uninstall the
      existing driver.  This is intended to be used to install
      kernel modules for additional kernels (in cases where you
      might boot between several different kernels).  To use this
      option, you must already have a driver installed, and the
      version of the installed driver must match the version of
      this kernel module.

  --no-kernel-module
      Install everything but the kernel module, and do not remove
      any existing, possibly conflicting kernel modules.  This
      can be useful in some DEBUG environments.  If you use this
      option, you must be careful to ensure that a NVIDIA kernel
      module matching this driver version is installed
      seperately.
So it looks like you would first run --no-kernel-module to get the drivers installed, and then run -K under each kernel you want to install a module for.
 
Old 11-01-2008, 05:44 PM   #3
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
Let me know how the "--kernel-module-only" works. I could never figure out how to install multiple NVidia drivers either; I always assumed their script was plain stupid and wasted a lot of my time copying files and restoring them after the NVidia installer script wrote over them.
 
Old 11-02-2008, 07:45 AM   #4
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by MS3FGX View Post
While I have never done it myself, the installer's documentation says the following options are used to set the driver up for multiple kernels:

Code:
  -K, --kernel-module-only
      Install a kernel module only, and do not uninstall the
      existing driver.  This is intended to be used to install
      kernel modules for additional kernels (in cases where you
      might boot between several different kernels).  To use this
      option, you must already have a driver installed, and the
      version of the installed driver must match the version of
      this kernel module.

  --no-kernel-module
      Install everything but the kernel module, and do not remove
      any existing, possibly conflicting kernel modules.  This
      can be useful in some DEBUG environments.  If you use this
      option, you must be careful to ensure that a NVIDIA kernel
      module matching this driver version is installed
      seperately.
So it looks like you would first run --no-kernel-module to get the drivers installed, and then run -K under each kernel you want to install a module for.
Thanks. Alright I'll do that then, though I cannot quite understand the reasoning.

piniped:
Quote:
wasted a lot of my time copying files and restoring them after the NVidia installer script wrote over them
I tried this and it had no effect whatever.
 
Old 11-02-2008, 12:33 PM   #5
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
Quote:
Thanks. Alright I'll do that then, though I cannot quite understand the reasoning.
Normally, the installer overwrites all the Nvidia XOrg files with the newest ones, and then compiles and replaces the actual kernel module. By using the two separate steps, you can install the XOrg side of the driver without touching the kernel modules, which will allow you to build multiple modules and not mess with core setup.
 
Old 11-03-2008, 08:51 AM   #6
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by MS3FGX View Post
Normally, the installer overwrites all the Nvidia XOrg files with the newest ones, and then compiles and replaces the actual kernel module. By using the two separate steps, you can install the XOrg side of the driver without touching the kernel modules, which will allow you to build multiple modules and not mess with core setup.
Did it and it worked perfectly.

In case I got lucky here are details:

# bash NVIDIAinstallThing.run --no-kernel-module (This in the 2.6.18-amd64 kernel which was the one that happened to have graphics working, get slight impression you have to use the one with the module working but don't know.)

# bash NVIDIAinstallThing.run -K

Reboot into 2.6.24-amd64 kernel.

# bash NVIDIAinstallThing.run -K

Then had X with both kernels (X will only run with these drivers on my thing.)

Problem solved - thanks.
 
  


Reply

Tags
driver, kernel, module, nvidia


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
New kernel + NVidia drivers Mad Merlin Linux - General 2 06-03-2006 08:36 PM
kernel 2.6.13 and nvidia drivers fllabron Debian 4 09-18-2005 12:18 PM
nvidia drivers and kernel 2.6.1 mikejedw Linux - Hardware 20 03-02-2004 09:23 AM
Kernel 2.6.3 + nVidia drivers wiBo Linux - General 2 02-26-2004 04:35 PM
nvidia drivers in kernel?? Zig Linux - Software 3 06-29-2003 01:08 PM


All times are GMT -5. The time now is 01:47 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration