LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-07-2008, 05:25 AM   #1
eddygrinder
Member
 
Registered: Dec 2007
Location: portugal
Distribution: The one and only... Slack
Posts: 71

Rep: Reputation: 15
nvidia - kernel 2.6.24.5


hello!

I'm using slackware for a few years and i have manage to resolve the problems but now i'm stuck with this:

This is the kernel-* that i have installed:
/var/log/packages/kernel-generic-2.6.24.5-i486-2 /var/log/packages/kernel-modules-2.6.24.5-i486-2
/var/log/packages/kernel-headers-2.6.24.5-x86-2 /var/log/packages/kernel-source-2.6.24.5-noarch-2

The gcc-* packages are:
gcc-4.2.3-i486-1 gcc-g++-4.2.3-i486-1

I have a nvidia geforce ti 4200 and i'm trying to install the driver NVIDIA-Linux-x86-96.43.05-pkg1.run

when i'm trying to install the driver i get this error:

**************************************************************
ERROR: The kernel header file
'/lib/modules/2.6.24.5/build/include/linux/version.h' does not exist.
The most likely reason for this is that the kernel source files in
'/lib/modules/2.6.24.5/build' have not been configured.

***************************************************************

What should i do or what i do wrong?

Thx a lot!

EddY
 
Old 06-07-2008, 06:01 AM   #2
wadsworth
Member
 
Registered: Aug 2007
Distribution: Slackware64 13.37
Posts: 215

Rep: Reputation: 65
You can:
1) continue using the generic non-smp kernel,
(properly configured). See this link:
http://slackware.osuosl.org/slackwar...4.5-nosmp-sdk/

2) use the generic-smp kernel as suggested in CHANGES_AND_HINTS.TXT.

3) compile you own custom kernel which will avoid the entire issue.
 
Old 06-07-2008, 06:06 AM   #3
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
altho I am not a slacker....installing a kernel is not enough.....pls reboot and boot into your new kernel so the system sees your config and modules matching before you attempt to build your new nvidia module.

if that fails for you or you have already got this far ....try
http://tldp.org/LDP/lkmpg/2.6/html/x380.html and see the please run make section.

what you want .....is a correctly symbolic links and files to exist.
 
Old 06-07-2008, 08:50 AM   #4
micder
Member
 
Registered: Aug 2003
Location: Terneuzen Netherlands
Distribution: Slack current
Posts: 142

Rep: Reputation: 16
Just installed slack-12.1
Had problems installing NVidia too, although I had the generic-smp and source and headers installed.
The NVidia driver good for 2.6.24.4 (on 12.0 current) gave errors.
After downloading the newest (NVIDIA-Linux-x86-173.14.05-pkg1.run) compilation was no problem.
 
Old 06-07-2008, 12:34 PM   #5
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
wadsworth's advice is the correct advice. Although aus9's advice is correct, I would assume you have rebooted since installation -- but I could be wrong. micder's advice is not applicable in your case since you have to use legacy drivers for your (older) card, but since you're using the newest version of the legacy drivers you should be fine. Please read CHANGES_AND_HINTS.TXT and UPGRADE.TXT very thoroughly (even if you're not upgrading), as most of the problems you may encounter are explained there. They are both considered official documentation, and you should read them (and some of the other text files on your Slackware CDs/DVD/your favourite mirror) before asking questions.
Quote:
Originally Posted by CHANGES_AND_HINTS.TXT
Use one of the provided generic kernels for daily use. Do not report
bugs until/unless you have reproduced them using one of the stock
generic kernels. You will need to create an initrd in order to boot
the generic kernels - see /boot/README.initrd for instructions.
Quote:
Originally Posted by CHANGES_AND_HINTS.TXT
As stated earlier, it is recommended that you use one of the generic kernels
rather than the huge kernels; the huge kernels are primarily intended as
"installer" and "emergency" kernels in case you forget to make an initrd.
For most systems, you should use the generic SMP kernel if it will run,
even if your system is not SMP-capable. Some newer hardware needs the
local APIC enabled in the SMP kernel, and theoretically there should not be
a performance penalty with using the SMP-capable kernel on a uniprocessor
machine, as the SMP kernel tests for this and makes necessary adjustments.
Furthermore, the kernel sources shipped with Slackware are configured for
SMP usage, so you won't have to modify those to build external modules
(such as NVidia or ATI proprietary drivers) if you use the SMP kernel.

If you decide to use one of the non-SMP kernels, you will need to follow the
instructions in /extra/linux-2.6.24.5-nosmp-sdk/README.TXT to modify your
kernel sources for non-SMP usage. Note that this only applies if you are
using the Slackware-provided non-SMP kernel - if you build a custom kernel,
the symlinks at /lib/modules/$(uname -r)/{build,source} will point to the
correct kernel source so long as you don't (re)move it.

If you decide to use one of the huge kernels anyway, you will encounter
errors like this:
kobject_add failed for uhci_hcd with -EEXIST, don't try to register
These occur because the respective drivers are compiled statically into the
huge kernels but udev tries to load them anyway. These errors should be safe
to ignore, but if you really don't want them to appear, you can blacklist the
modules that try to load in /etc/modprobe.d/blacklist. However, make sure you
remove them from the blacklist if you ever decide to use the (recommended)
generic kernels.
 
Old 06-07-2008, 12:51 PM   #6
eddygrinder
Member
 
Registered: Dec 2007
Location: portugal
Distribution: The one and only... Slack
Posts: 71

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by T3slider View Post
wadsworth's advice is the correct advice. Although aus9's advice is correct, I would assume you have rebooted since installation -- but I could be wrong. micder's advice is not applicable in your case since you have to use legacy drivers for your (older) card, but since you're using the newest version of the legacy drivers you should be fine. Please read CHANGES_AND_HINTS.TXT and UPGRADE.TXT very thoroughly (even if you're not upgrading), as most of the problems you may encounter are explained there. They are both considered official documentation, and you should read them (and some of the other text files on your Slackware CDs/DVD/your favourite mirror) before asking questions.
Thx for the help!

So, i'm not a newbie and i'm not an expert. :-D
I use slackware for 4 or 5 years, i have rebooted and created an initrd because i use reiserfs... blá, blá!

I know for this version of kernel (2.6.24.5) that is a patch, (NVIDIA_kernel-96.43.05-2290218.diff.txt) which i have installed but meanwhile i remember that the problem could be in kernel-headers, so... i'v installed the version 2.4.33 from slack 11.0 and the ver 2.6.24.5 for the other packages.

Packages installed:
/var/log/packages/kernel-generic-2.6.24.5-i486-2 /var/log/packages/kernel-modules-2.6.24.5-i486-2
/var/log/packages/kernel-headers-2.4.33.3-i386-1 /var/log/packages/kernel-source-2.6.24.5-noarch-2

Gcc and gcc-++ update to 4.2

and the error when i tried to install nvidia driver is this:
ERROR: The kernel header file
'/lib/modules/2.6.24.5/build/include/linux/version.h' does not exist.
The most likely reason for this is that the kernel source files in
'/lib/modules/2.6.24.5/build' have not been configured.

Cheers!
EddY
 
Old 06-07-2008, 01:28 PM   #7
eddygrinder
Member
 
Registered: Dec 2007
Location: portugal
Distribution: The one and only... Slack
Posts: 71

Original Poster
Rep: Reputation: 15
nvidia - kernel 2.6.24.5 (solved)

Hi!

thx for your help!

solution:
cd /usr/src/linux

make modules

done!

The file version.h does not exist, so i tried to make modules and my problem was solved!


Thx a lot!
Cheears!
EddY
 
Old 06-07-2008, 01:39 PM   #8
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
Quote:
Originally Posted by eddygrinder
I know for this version of kernel (2.6.24.5) that is a patch, (NVIDIA_kernel-96.43.05-2290218.diff.txt) which i have installed but meanwhile i remember that the problem could be in kernel-headers, so... i'v installed the version 2.4.33 from slack 11.0 and the ver 2.6.24.5 for the other packages.
It's been said many times in these forums, but here goes. NEVER upgrade/downgrade your kernel headers unless you upgrade/downgrade glibc as well. You should restore your kernel headers to their former state (2.6.24.5). You will likely have problems compiling ANYTHING, or at least a large subset of programs as it stands. I should note that I'm *assuming* that you're using 12.1 -- you actually haven't stated whether you're using 11.0 or 12.1 at the moment, and whether it was a clean install or an upgrade (and if you upgraded, you are required to upgrade from 11.0 to 12.0 and THEN to 12.1).

Well, after googling to see if the patch really was necessary, I came across a thread of yours from another forum which states that you have resolved the problem. If I am incorrect, please say so and I will try to help further.
[edit]I see I should have refreshed the page before posting. I will say that your system is definitely not in an optimal state right now, as it's difficult to see what is different than a normal install. As long as it works, great, I guess, you're just much more of a risk-taker than I am, I guess.[/edit]

Last edited by T3slider; 06-07-2008 at 01:41 PM.
 
Old 06-08-2008, 04:37 AM   #9
eddygrinder
Member
 
Registered: Dec 2007
Location: portugal
Distribution: The one and only... Slack
Posts: 71

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by T3slider View Post
It's been said many times in these forums, but here goes. NEVER upgrade/downgrade your kernel headers unless you upgrade/downgrade glibc as well. You should restore your kernel headers to their former state (2.6.24.5). You will likely have problems compiling ANYTHING, or at least a large subset of programs as it stands. I should note that I'm *assuming* that you're using 12.1 -- you actually haven't stated whether you're using 11.0 or 12.1 at the moment, and whether it was a clean install or an upgrade (and if you upgraded, you are required to upgrade from 11.0 to 12.0 and THEN to 12.1).

Well, after googling to see if the patch really was necessary, I came across a thread of yours from another forum which states that you have resolved the problem. If I am incorrect, please say so and I will try to help further.
[edit]I see I should have refreshed the page before posting. I will say that your system is definitely not in an optimal state right now, as it's difficult to see what is different than a normal install. As long as it works, great, I guess, you're just much more of a risk-taker than I am, I guess.[/edit]
Hi there!

Is this what i like... discuss and learn!
I've been using Slackware for 4 or 5 years and i'm always learning.
When i upgrade to 12.1 and try to install the nvidia drivers i've got an error in kernel headers (I think for 1st time...) and so after some reboots, i think, what the hell, i install kernel-* 2.4.33 and downgrade gcc and gcc++. Install nvidia and work. Then i upgrade the kernel except the headers and install nvidia... not work! So i do a make modules and everything works, (The problem was not in headers...) ok now you told me that we should not up/down headers without up/down glibc. Damn it, this i didn't know! As i didn't compile anything i don't know if works...
I'm gonna upgrade kernel headers...

(I have to go, wife and daughter waiting)

Yes my system is not in a optimal state and yes i'm a risk tasker... :-D

Thx a lot!
See ya!

Sorry for my bad english

Last edited by eddygrinder; 06-08-2008 at 04:39 AM.
 
Old 06-08-2008, 12:07 PM   #10
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
If you have trouble, you may need this. But I'm not 100% positive how you upgraded your glibc, so you may not need that. Just thought I would provide it in case you did. Also, some of the older nVidia drivers won't compile with the newer kernels. You have to use at least 169.12 (though you can now use 173.14.05 if you want) with 12.1. Again, I'm not sure if this is applicable to you, but just thought I'd mention it.
 
  


Reply



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 03:55 AM
(EE) NVIDIA(0): Failed to initialize the nvidia kernel module necbrownie Slackware 18 06-16-2006 02:20 AM
nvidia 6106, kernel 2.6.7, slackware 10, failure to load nvidia.ko Tarball_Phreak Linux - Hardware 3 08-04-2004 03: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 05:38 AM
(EE) NVIDIA(0): Failed to initialize the NVIDIA kernel module! Stan the caddy Linux - Hardware 8 01-18-2004 04:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:38 PM.

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
Open Source Consulting | Domain Registration