Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 02-05-04, 07:13 AM   #1
dukeofdevon
Registered User
 
Join Date: Feb 2004
Location: New Haven, CT
Posts: 2
Default nvidia driver with multiple kernels?

Two questions. I had to recompile my Red Hat 9 kernel (2.4.20-20.9-athlon) to enable usb storage debugging. I ran the nvidia driver updater in the new kernel, which is fine, but now (1) X won't start on the old kernel and (2) the script can't compile the driver on the old kernel since it can't locate nvidia.o due to not knowing where the linux source is. This is odd, because I didn't change the linux source (I compiled from the same kernel source that corresponded to what was running on my computer).

Question 1: Is there no way to have the nvidia driver set up to work in multipe kernels on the same machine?

Question 2: Why can't the script recompile the driver in the old kernel? I gather that the process of making and installing the new kernel changed something that makes it impossible for the nvidia install to work with the old kernel. One annoying possibility would be, I guess, to recompile the original kernel again (Red Hat provides the config files). Surely there's a better way.

Thanks,
duke
dukeofdevon is offline   Reply With Quote
Old 02-05-04, 07:29 AM   #2
blueworm
[DEADAGAIN]blueworm
 
blueworm's Avatar
 
Join Date: Mar 2003
Posts: 416
Default

You can have as many kernels as you want.
What you did was...
make modules modules_install. This overwrites /lib/modules/2.4.X
Once you have re-installed the nvidia driver it will work in both kernel as long as they share the same /lib/modules in other words if they are in fact the same kernel but with differrent options built.
If you want to compile different kernel versions, You will have to boot the new kernel and install the kernel module so that it is in the new /lib/modules/2.4.XX.
blueworm is offline   Reply With Quote
Old 02-05-04, 11:57 AM   #3
dukeofdevon
Registered User
 
Join Date: Feb 2004
Location: New Haven, CT
Posts: 2
Default

Thank you for the reply. You are exactly right, I did a make modules_install after I did make modules.

I'm afraid I'm enough of a novice that I don't understand how to fix the problem. I take it that now that I have different /lib/modules directories, I have to do the latter of your suggestions, boot the the new kernel and install ther kernel module from so that it's in /lib/modules/2.4.blah. I obviously don't understand, because this is what I thought I did, by rerunning the nvidia package in the new kernel. This is what caused X on the old kernel to stop working and also, I guess, prevented me from rerunning the nvidia package in the old kernel. How do I restore X on that kernel?

Also, what *should* I have done? Not done 'make modules_install' if the kernels are builds of the same version?

Thank you!
duke
dukeofdevon is offline   Reply With Quote
Old 02-05-04, 12:35 PM   #4
blueworm
[DEADAGAIN]blueworm
 
blueworm's Avatar
 
Join Date: Mar 2003
Posts: 416
Default

if both kernels are 2.4.20-20.9-athlon they will share /lib/modules/2.4.20-20.9-athlon.
Therefore if the nvidia kernel module is installed for 1 it is for both.
blueworm is offline   Reply With Quote
Old 02-05-04, 03:52 PM   #5
Valheru
Registered User
 
Join Date: Jan 2004
Posts: 31
Default

Run the NVIDIA installer script with the --help flag, there's and option there to install it for additional kernels without it uninstalling previously installed drivers for different kernel versions.
Valheru is offline   Reply With Quote
Old 02-20-04, 01:36 PM   #6
dhill
Registered User
 
Join Date: Feb 2004
Location: wa?brzych
Posts: 1
Default add to readme

But don't You think it should be a question in FAQ... I came a long way to read those posts and I think it's basic security to be able to run an old kernel.
dhill is offline   Reply With Quote
Old 02-20-04, 03:32 PM   #7
blueworm
[DEADAGAIN]blueworm
 
blueworm's Avatar
 
Join Date: Mar 2003
Posts: 416
Default Re: add to readme

Quote:
Originally posted by dhill
But don't You think it should be a question in FAQ... I came a long way to read those posts and I think it's basic security to be able to run an old kernel.
Common sense too.
blueworm is offline   Reply With Quote
Reply


Thread Tools

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 On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
nvidia driver quality decrease? legluondunet NVIDIA Linux 17 06-26-12 10:03 AM
Should we reinstall nvidia driver for new kernels? Bersam NVIDIA Linux 5 05-27-12 04:42 PM
Need Help Installing NVIDIA Tesla M2070Q in Linux RHEL5 Ferianto85 NVIDIA Linux 0 05-18-12 08:35 PM
Getting the proprietary nvidia driver to run with Debian 3.0 r0 (woody) Katchina404 NVIDIA Linux 9 01-12-03 08:49 AM
nvidia + 2.4.19 gentoo = messed up ulukay NVIDIA Linux 18 11-01-02 11:58 PM

All times are GMT -5. The time now is 12:04 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.