LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-13-2003, 07:56 PM   #1
mrsolo
Member
 
Registered: Jun 2002
Location: Where ever the Navy sends me
Distribution: Gentoo
Posts: 320

Rep: Reputation: 30
NVIDIA and Kernel 2.6


Has anyone installed the NVIDIA drivers for the 2.6 kernel? I had the driver installed for my 2.4.22 kernel and when I started up X in the new kernel, it says that no screens can be found. This is normal to me since everytime I upgrade a kernel, i always have to re-install the NVIDIA driver. So I did this with my new 2.6 kernel and when the installer tries to build the new kernel module, it says that the kernel header files are not installed. How do I get around this? Also, another weird thing is that when Mandrake boots now, it gets an error that says that it can't find module dependcies. Why is that? I noticed that the new kernel tells me that I don't have to make dependcies anymore, could this be why the nvidia driver isn't able to compile?
 
Old 10-14-2003, 05:29 AM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
HI.

The 2.4 nVidia installer just plain doesn't work with the 2.6 kernel. However, I've just found this page, but I've not tried it myself yet (I'll be doing this when I get back from work). It appears that someone has written a program to alter the nVidia installer to work on both 2.4 and 2.6 kernels. The README explains it.

http://www.minion.de/nvidia.html

Hope this works (for both our sakes).

Dave

P.S. If this does work, post back - I want to know.
 
Old 10-15-2003, 03:22 AM   #3
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 69
Re: NVIDIA and Kernel 2.6

Quote:
Originally posted by mrsolo
Has anyone installed the NVIDIA drivers for the 2.6 kernel? I had the driver installed for my 2.4.22 kernel and when I started up X in the new kernel, it says that no screens can be found. This is normal to me since everytime I upgrade a kernel, i always have to re-install the NVIDIA driver. So I did this with my new 2.6 kernel and when the installer tries to build the new kernel module, it says that the kernel header files are not installed. How do I get around this? Also, another weird thing is that when Mandrake boots now, it gets an error that says that it can't find module dependcies. Why is that? I noticed that the new kernel tells me that I don't have to make dependcies anymore, could this be why the nvidia driver isn't able to compile?
You need to update the modules init package 2.6 kernels are different as you have discovered on Debian the package would be module-init-tools you should search for something similar for Mandrake. The above mentioned site will work for the Nvidia driver however with 2.6.0-test7 I had to force the loading of the module with modprobe -f nvidia it would not load otherwise.

[edit]
When you build the kernel you should build the kernel_headers at the same time and install both. Also the dependancies step has been eliminated you do not need to do that anymore and has nothing to do with the Nvidia drivers.
[/edit]

Last edited by HappyTux; 10-15-2003 at 03:25 AM.
 
Old 10-15-2003, 11:00 PM   #4
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
HappyTux,

I've been through all the make files in the 2.6.0test7 release and I can't find one with a target for kernel_headers or headers or anything even remotely headers related. Any ideas? (have I missed something blindingly obvious?)

Dave
 
Old 10-16-2003, 01:38 AM   #5
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 69
Quote:
Originally posted by ilikejam
HappyTux,

I've been through all the make files in the 2.6.0test7 release and I can't find one with a target for kernel_headers or headers or anything even remotely headers related. Any ideas? (have I missed something blindingly obvious?)

Dave
I really could not tell you how to make the headers with Mandrake in Debian using the kernel package you just add kernel_headers along with the kernel_image when you compile and you get 2 .deb files you install with dpkg it sets up lilo and everything just works couldn't be any easier. There must be something similar that can be done for Mandrake when you compile have you checked in the docs for that?
 
Old 10-16-2003, 10:36 AM   #6
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
I'm compiling from source, so the only options I get are make mrproper (like make clean), make bzImage (to compile the kernel), make modules (to compile the modules) and make modules_install (to install 'em).

I would have thought the make bzImage process would necessarily have to make the headers as it went along (or indeed would have to have the headers in the first place to compile at all), but I can't get any joy from the nVidia installer.

Who knows. I might just have to wait for the production release of the kernel.

Dave
 
Old 10-16-2003, 12:29 PM   #7
smokybobo
LQ Newbie
 
Registered: Feb 2003
Posts: 29

Rep: Reputation: 15
Compiling from pristine kernel sources, you already have kernel headers.

Assuming you've been to http://www.minion.de just a note, I personally have not been able to make the nvidia installer work when I patched their source. However, what works for me, is that after I've extracted the contents of the installer and patched the source, I go to the top level of the extracted source tree and do a 'make install' from there:

Code:
./NVIDIA-Linux-x86-1.0-4496-pkg2.run --extract-only --target /tmp/nvidia_src
cp ~/downloads/NVIDIA_kernel-1.0-4496-2.6.diff /tmp/nvidia_src
cd /tmp/nvidia_src/usr/src/nv
patch Makefile /tmp/nvidia_src/NVIDIA_kernel-1.0-4496-2.6.diff
ln -s Makefile.kbuild Makefile
cd /tmp/nvidia_src
make install
This of course assumes /usr/src/linux is a symlink to the real location of your kernel sources. On my system:

Code:
ls -l /usr/src/linux
lrwxrwxrwx    1 root     staff          26 Oct  8 20:56 /usr/src/linux -> /usr/src/linux-2.6.0-test7
 
Old 10-16-2003, 12:45 PM   #8
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Aha. Bingo!

Nice one smokybobo. Someone should tell nVidia.

Cheers.

Dave
 
  


Reply


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
(EE) NVIDIA(0): Failed to initialize the NVIDIA Kernel module latino Linux - Hardware 5 06-03-2008 04:55 AM
(EE) NVIDIA(0): Failed to initialize the nvidia kernel module necbrownie Slackware 18 06-16-2006 03:20 AM
nvidia 6106, kernel 2.6.7, slackware 10, failure to load nvidia.ko Tarball_Phreak Linux - Hardware 3 08-04-2004 04:16 PM
kernel 2.6.3--bk8 and NVIDIA-Linux-x86-1.0-5336 video driver from Nvidia zdenkod Linux - Hardware 2 03-09-2004 06:38 AM
(EE) NVIDIA(0): Failed to initialize the NVIDIA kernel module! Stan the caddy Linux - Hardware 8 01-18-2004 05:21 PM


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