Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Is there any way to compile the latest nVidia driver into the kernel itself using a kernel patch of some sort? (Like the source that is included in the installer would be compiled into the kernel and the binary module that is included in the installer would be linked in.)
Originally posted by Valhalla I am like 99.9% certain not. You might be able to link it though.
Hmm... Would that prevent me from having to "modprobe nvidia" at startup? Would it become a part of the kernel rather than a module that would have to be manually loaded with modprobe?) Is there a way to do that? If so, how would I go about it?
Originally posted by spaaarky21 Hmm... Would that prevent me from having to "modprobe nvidia" at startup? Would it become a part of the kernel rather than a module that would have to be manually loaded with modprobe?) Is there a way to do that? If so, how would I go about it?
modprobe nvidia
cp -a /dev/nvidia* /etc/udev/devices/
Awesome! That did it! I've been looking for a way to do that for a while so I could boot with the nice graphic startup and nobody had any idea what I was talking about.
Originally posted by Valhalla Perhaps it wuld have been easier to
echo "nvidia" >> /etc/modules.autoload.d/kernel-2.6
I thought you guys meant build it straight into the kernel.
That was what I originally wanted. I had been settling for these other solutions for a while and figured that while I was building a new kernel anyway that I would go ahead and see if I could build it into the kernel itself. Although, it looks like that isn't possible so I guess what I had been doing will have to work.
Originally posted by Valhalla What is it exactly that you were trying to acheive with building nvidia straight into the kernel?
Well, I coud be way off base but I was under the impression that if I could build it into the kernel itself, it would fix the problem with the nVidia driver not being loaded early enough for the graphic boot to work (no need to modprobe a module if it is actually build into the kernel.)
I suppose there could also be a minor performance gain from both from processor-specific optimizations and illiminating the overhead of being run as a module... but since the nVidia driver uses a pre-build binary and the module is just an interface for it, I suppose that wouldn't really apply.
You can graphically boot using a framebuffer device and an initial ramdisk. My computer boots from grub with a nice pretty splash screen. You just need to compile the correct options into your kernel and look into your distributions specific tools for making initial ramdisks. Also, the nvidia kernel module is custom compiled, I don't see why you couldn't export CFLAGS to it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.