Jump to content

Compiling NVIDIA modules for more than one Kernel


jlc
 Share

Recommended Posts

For all those who like to boot to differnent kernels or still using 2.4.x & trying 2.6.x.

 

Grab the Nvidia Driver

 

Now just run the install script on your running kernel

 

 

 

# sh NVIDIA-Linux-x86-1.0-5336-pkg1.run

 

Reboot into your other kernel. and run the script again, only with the "-K" option

 

# sh NVIDIA-Linux-x86-1.0-5336-pkg1.run -K

 

This will build just the module for the running kernel and not install the driver again. The driver should then use the right module for the right kernel.

Link to comment
Share on other sites

  • 2 weeks later...

The installer needs to see the same version of the kernel sources as the running kernel.

Make sure the "linux" link in /usr/src points to the right kernel sources.

 

If the installer keeps saying "Unable to determine NVIDIA kernel module filename" error after that, run it with " --add-this-kernel" option. It will create a NVIDIA-xxxxx-custom installer in the dir you have run it from. Run this custom intsallerand it all should work great..:)

 

Cheers

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...