LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-07-2003, 05:12 AM   #1
natalinasmpf
Member
 
Registered: Dec 2003
Distribution: Slackware 9.1
Posts: 309

Rep: Reputation: 30
Kernel header files needed for Nvidia driver installation


I can't seem to find kernel header files for my exact kernel (2.4.22-10mdk) I found one for 2.4.18-45mdk but I don't think they will fit exactly. I need them for the nvidia driver installer to use them to make a kernel module interface.

When I used the headers from /usr/include/linux/ the installer couldn't compile the kernel interface, the log returned me the error that "you should not directly include /usr/include/linux files! These are glib internal and probably will not suit the kernel you are running".

Or is there some other way to make Nvidia successfully use the headers?

Help!

*Sorry if I posted this in the wrong place, I don't know where to put it, Nvidia driver installation (hardware) or kernel related stuff (general I assume?)
 
Old 12-07-2003, 12:01 PM   #2
dkaplowitz
Member
 
Registered: Oct 2002
Location: Havertown PA
Distribution: Ubuntu/RHEL/Fedora
Posts: 253

Rep: Reputation: 31
I use redhat and usu. just search google for the file.

I'd try http://www.google.com/search?hl=en&l...=Google+Search

And if you can't find it for mandrake their, I'd do more refined google searches, like kernel-source-2.4.22-10 rpm mandrake, etc...
 
Old 12-07-2003, 03:08 PM   #3
natalinasmpf
Member
 
Registered: Dec 2003
Distribution: Slackware 9.1
Posts: 309

Original Poster
Rep: Reputation: 30
You know, I already did that. Header files for my kernel don't seem to exist. I only found the source rpm, which doesn't have any header files, only object code and /lib/module files....
 
Old 12-07-2003, 04:51 PM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Alternately, instead of using that RPM (I tried DeadRat and found the RPM system terribly flawed) why not compile your kernel from source using the new 2.4.23 kernel?
 
Old 12-07-2003, 04:54 PM   #5
natalinasmpf
Member
 
Registered: Dec 2003
Distribution: Slackware 9.1
Posts: 309

Original Poster
Rep: Reputation: 30
I sort of had a bad experience compiling a kernel, when I used my original config file, it would fail at loading at modules and when I did the config myself, it would fail during compilation of bzImage...

Unless I could have a better tutorial...I selected all the things I needed like USB and whatnot and printer serial support but some of these things failed at compilation!

Worse, I thought my original config file would hold stuff like USB, since it came with Mandrake 9.2...
 
Old 12-07-2003, 05:44 PM   #6
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Quote:
Originally posted by natalinasmpf
I sort of had a bad experience compiling a kernel, when I used my original config file, it would fail at loading at modules and when I did the config myself, it would fail during compilation of bzImage...

Unless I could have a better tutorial...I selected all the things I needed like USB and whatnot and printer serial support but some of these things failed at compilation!

Worse, I thought my original config file would hold stuff like USB, since it came with Mandrake 9.2...
Compiling a new kernel can be the breaking of your system, but it really is where you unleash the raw power of Linux. Last night when I installed my new kernel, this box booted much faster than before. You must know your hardware very well, or you probably won't get it right. There are several kernel compile guides, and many places to find them. It amazes me that so many people can write about doing the same thing and have different steps.

The guide I used last night was the one by Dr. Ozz. I've recompiled so many times now that I know the steps. I tried a different guide just for Slackware last time and it didn't work, after following the instructions verbosely. This time I edited LILO without anyone's suggestions, just by how I know LILO works. And now it boots either my new kernel, or the old kernel, flawlessly.

Try this guide -> http://www.linuxquestions.org/questi...threadid=73436

Having never used Mandrake, I can't advise you. This one thing I will say. If, for some reason, you reinstall, try Slackware. If you search LQ, you'll find some threads with similar problems attempting a kernel compile for Mandrake. And that guide by Dalek I suggested in your other thread will probably be invaluable to you.
 
Old 12-07-2003, 07:47 PM   #7
KillingTime
LQ Newbie
 
Registered: Dec 2003
Location: UK
Distribution: Kubuntu 11.10 (Oneiric)
Posts: 3

Rep: Reputation: 0
I had the exact same problem - needed the kernel source for Mandrake 9.2 so I could compile the nVidia nForce2 drivers. Luckily, rpmfind.net came to the rescue.

http://rpmfind.net/linux/RPM/mandrak...0mdk.i586.html
 
Old 12-08-2003, 05:13 AM   #8
natalinasmpf
Member
 
Registered: Dec 2003
Distribution: Slackware 9.1
Posts: 309

Original Poster
Rep: Reputation: 30
Thank you very much, the source rpm comes with the proper header files. Yay! Installation was very smooth after that. Except WineX doesn't recognise the the 4944 drivers. I have to fall back on an earlier driver, agh . Thanks anyway!

I shall try compiling a new kernel sometime, when I get a new hard drive for a different root partition, so one won't mess up the other...I know how to install a new kernel, its just that configuring one without conflicts is the hardest part, not even the compiling part lol.
 
Old 12-08-2003, 05:21 AM   #9
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Quote:
Originally posted by natalinasmpf
Thank you very much, the source rpm comes with the proper header files. Yay! Installation was very smooth after that. Except WineX doesn't recognise the the 4944 drivers. I have to fall back on an earlier driver, agh . Thanks anyway!

I shall try compiling a new kernel sometime, when I get a new hard drive for a different root partition, so one won't mess up the other...I know how to install a new kernel, its just that configuring one without conflicts is the hardest part, not even the compiling part lol.
You can have more than one kernel in LILO. Just set it up properly and if your new kernel doesn't work like you need it to, you can boot back into the older kernel. I have 2 right now and some people have many kernels, for different applications.

As for WineX, that's not good news to me. I need to run a couple of programs that are written for Windoze in Linux to be able to dump Windoze.
 
Old 12-08-2003, 05:28 AM   #10
natalinasmpf
Member
 
Registered: Dec 2003
Distribution: Slackware 9.1
Posts: 309

Original Poster
Rep: Reputation: 30
I know how to set it up, its just that in my experience in using the new kernel, if it fails, it will mess up the existing modules/shared object files/whatnot, that forced me to reinstall. The old kernel even froze when booting.
 
Old 12-08-2003, 05:55 AM   #11
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
I don't know how it can do this, but then again, I'm new to *nix, also.
 
  


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
Cannot find C Header files in SuSE 9.2 64-bit when needed for installing VMware W/s matt010wjh Linux - Software 1 12-26-2004 09:25 PM
header files and nvidia drivers Zoko Linux - Software 5 05-29-2004 06:39 PM
How do I get "Kernel Header" files so I can install nVidia drivers Stevetgn Linux - Newbie 4 01-14-2004 05:57 PM
Kernel recompile for NVIDIA needed .h files? britishnemesis Linux - General 2 11-03-2003 01:43 AM
nvidia driver installation in 2.6.0 kernel fails? oskernel Linux - Hardware 8 10-30-2003 08:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:54 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