Unable to install NVIDIA drivers due to missing version.h
Hi all, I'm having problems trying to install the NVIDIA graphics drivers. I am running Slack 11.0 with my own compiled kernel, version 2.6.20.3. The error message when I run the installer is as follows:
The kernel header file '/usr/src/linux/include/linux/version.h' does not exist. The most likely reason for this is that the kernel source files in '/usr/src/linux' have not been configured. My kernel source is in /usr/src/linux-2.6.20.3 (/usr/src/linux is a symlink pointing to that) and per the README in the kernel tarball, I set an output directory when running make to build the kernel modules. This directory is ~/kernel and /lib/modules/2.6.20.3/build is a symlink to there (this was set up automatically). I tried to point the installer to my source code with the --kernel-source-path option, but that didn't help. I've searched both here and nvnews.net's forum and haven't found anything that can help. It shouldn't really matter, but video card info is as follows: 01:00.0 VGA compatible controller: nVidia Corporation NV43 [GeForce 6600/GeForce 6600 GT] (rev a2) Any ideas? Thanks! |
run 'make prepare' on the kernel source and try again. Also, make sure all the symlinks are right.
|
What driver version are you trying to install? I think the most recent ones (current and 2 legacy) have this fix. Currently I'm using 9631, and I'm pretty sure it worked without that error.
The version.h file was removed from the kernel tree a few releases back, so the third party modules are taking a while to get this fixed. |
Quote:
Quote:
New problem though: the screen just goes black when I try to start X again. Lines from my xorg.conf: (EE) NVIDIA(0): Error recovery failed. (EE) NVIDIA(0): *** Aborting *** (II) NVIDIA(0): Setting mode "1024x768" (WW) NVIDIA(0): The NVIDIA X driver has encountered too many errors. Falling (WW) NVIDIA(0): back to legacy PCI mode. There aren't any error messages above or below or above that in my log (well, there's a "Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list!" at the end, but that's it). The entire log can be found here. |
Have you tried running the nVidia script with the options from this thread?
http://www.linuxquestions.org/questi...d.php?t=541473 |
That's odd. It may be a problem with the drivers themselves. Two things you could do:
1) run 'xorgsetup', and it will detect everything right and likely use the 'nv' driver. After that, go in the new 'xorg.conf' and change 'nv' to 'nvidia'. 2) try some other driver versions. I don't like the proprietary nvidia drivers because they are so messed up. You never know if it's gonna work or not. |
Quote:
Quote:
|
This is turning out to be a pain. I generated a new xorg.conf using xorgsetup but it appears that my nvidia.ko is missing :/. I did have to recompile my kernel earlier for something, but it was for something unrelated. When I tried to reinstall the driver again, I had errors. I might just give up :/. All I really want to be able to do is watch TV smoothly!
|
Then use the 'nv' driver. It should work just fine for just watching tv. It gives you 2D acceleration, so unless you're running 3D games, the 'nv' driver is the way to go. It's better (more stable) anyway.
If you used 'xorgsetup' it should have chosen the best driver options anyway ... this would be 'nv' driver. |
Indeed, xorgsetup did choose nv. I'll have to change the config it made though, as it wasn't working. I don't think I've ever had success with nv, but I'll try again :).
|
Well, post if you have problems ... it's usually something trivial that keeps it from working ...
|
Quote:
Other things to check are: That symlinks /lib/modules/`uname -r`/build and /lib/modules/`uname -r`/source point to the kernel source for your kernel. That you do have the kernel headers and kernel source for your kernel installed and that the symlink /usr/src/linux is correct. Sorry about the symlink. It should be: http://www.linuxquestions.org/questi...d.php?t=541473 |
Quote:
As for using nv, I'm having problems getting that to work. The default config that xorgsetup generated didn't work and I've edited it with some of the things from my working config (which uses the vesa driver, though) like modes. When I start X, well, it's not displaying properly. I get a mostly black screen with some multi-coloured "patches" at the bottom. Config is here. |
Try uncommenting out Viewport.
Module loading should be more like this: Code:
Section "Module" Code:
HorizSync 30-70 Code:
HorizSync 28.0 - 65.0 Also, if that don't work, can you post '/var/log/Xorg.0.log' ? What kind of monitor do you have ? is it LCD ? is it on a laptop ? |
I have decided to give up on getting the nv/NVIDIA drivers to work. The reason being is that watching TV is quite smooth now, so I'd rather leave my setup as it is. I don't know why it was all jerky before. Having said that, thanks everyone for trying to help :).
|
All times are GMT -5. The time now is 06:51 AM. |