LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Kernel header files needed for Nvidia driver installation (http://www.linuxquestions.org/questions/linux-hardware-18/kernel-header-files-needed-for-nvidia-driver-installation-123482/)

natalinasmpf 12-07-2003 05:12 AM

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?)

dkaplowitz 12-07-2003 12:01 PM

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...

natalinasmpf 12-07-2003 03:08 PM

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....

Bruce Hill 12-07-2003 04:51 PM

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?

natalinasmpf 12-07-2003 04:54 PM

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...

Bruce Hill 12-07-2003 05:44 PM

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.

KillingTime 12-07-2003 07:47 PM

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

natalinasmpf 12-08-2003 05:13 AM

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.

Bruce Hill 12-08-2003 05:21 AM

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.

natalinasmpf 12-08-2003 05:28 AM

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.

Bruce Hill 12-08-2003 05:55 AM

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


All times are GMT -5. The time now is 04:56 PM.