Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
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.
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.
I am trying to install nVidia drivers for my old TNT2 Vanta.
I downloaded the driver package for legacy devices - it turned to be "NVIDIA-Linux-x86-1.0-7184-pkg1.run". I exited X, switched to "init 3", ran the installer, but it says the source is not configured properly (definitely not true).The log file saysa the installer was actually looking for non-existent ".h" files in the kernel source directory (which are linux kernel headers, aren't they?).
Does it mean that I need linux kernel headers?
If so, where do I get them from?
You can get the headers the same place you get/got the kernel itself.
I use yumex to find it on Fedora.
for that matter you could, tht is what I do, get the kmod-nvidia-####.rpm for the kernel you are using and install it.
Hm, ... well ... yeah, I can get into fedora, but...
Ain't it the LFS forum, after all? There's no fun getting the kernel-source-***.rpm, kernel-headers-***.rpm (or whatever it's called) and build this kernel under Fedora.
Question: Is there something like "native" linux headers? If so, where can one find them? If not, how one installs nVidia drivers under LFS (some guys did it, right)?
did you keep the kernel source from when you compiled the kernel? If you didn't, redownload the linux kernel source, unpack it in /usr/src, and recompile the kernel. For some reason, kernel modules need to have the files created during compilation to be in the source tree, so recompiling is necessary for the source to be of any use.
Once you have the source and have recompiled you may need to use the --kernel-source-path to help the installer find it.
For me:
Code:
sh NVIDIA-Linux-x86-1.0-8762-pkg1.run --kernel-source-path=/sources/linux-2.6.17.13/
By default the installer will look for it in
1st. /lib/modules/`uname -r`/build (?)
and then
2nd. /usr/src/linux
the book tells you not to create this particular symlink (can't remember why)
Just to be sure...
Recompile the kernel? Does it mean going through
Code:
make distclean
make mrproper
make oldconfig
make all
?
If I understand correctly, after doing this I get the ".h" files that nVidia installer is looking for?
Shall I actually install anything (the kernel and the modules)?
Last edited by Vitalie Ciubotaru; 09-17-2006 at 03:06 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.