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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-07-2003, 05:12 AM
|
#1
|
Member
Registered: Dec 2003
Distribution: Slackware 9.1
Posts: 309
Rep:
|
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?)
|
|
|
12-07-2003, 12:01 PM
|
#2
|
Member
Registered: Oct 2002
Location: Havertown PA
Distribution: Ubuntu/RHEL/Fedora
Posts: 253
Rep:
|
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...
|
|
|
12-07-2003, 03:08 PM
|
#3
|
Member
Registered: Dec 2003
Distribution: Slackware 9.1
Posts: 309
Original Poster
Rep:
|
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....
|
|
|
12-07-2003, 04:51 PM
|
#4
|
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Slackware, Arch, Gentoo
Posts: 6,942
Rep: 
|
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?
|
|
|
12-07-2003, 04:54 PM
|
#5
|
Member
Registered: Dec 2003
Distribution: Slackware 9.1
Posts: 309
Original Poster
Rep:
|
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...
|
|
|
12-07-2003, 05:44 PM
|
#6
|
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Slackware, Arch, Gentoo
Posts: 6,942
Rep: 
|
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.
|
|
|
12-07-2003, 07:47 PM
|
#7
|
LQ Newbie
Registered: Dec 2003
Location: UK
Distribution: Kubuntu 11.10 (Oneiric)
Posts: 3
Rep:
|
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
|
|
|
12-08-2003, 05:13 AM
|
#8
|
Member
Registered: Dec 2003
Distribution: Slackware 9.1
Posts: 309
Original Poster
Rep:
|
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.
|
|
|
12-08-2003, 05:21 AM
|
#9
|
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Slackware, Arch, Gentoo
Posts: 6,942
Rep: 
|
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.
|
|
|
12-08-2003, 05:28 AM
|
#10
|
Member
Registered: Dec 2003
Distribution: Slackware 9.1
Posts: 309
Original Poster
Rep:
|
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.
|
|
|
12-08-2003, 05:55 AM
|
#11
|
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Slackware, Arch, Gentoo
Posts: 6,942
Rep: 
|
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 09:50 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|