Installing driver modules without recompiling stock kernels
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
Installing driver modules without recompiling stock kernels
Is there a way to compile a driver module (say for a wireless card) so that it can be installed into a standard/stock kernel that is deliver with a distribution like Fedora Core 3, without having to compile a custom kernel ? Usually I see
that for drivers that did not come with the kernel (binaries), then you need to remake the kernel and patch it to support the new device driver.
It seems that on Windows platform, hardware vendors can deliver drivers that can be installed into Windows without the need for re-compiling the kernel or any compilation tools.
Does such environment exists in Linux (on any version) ?
Actuallly you rarely have to recompile a stock kernel in order to compile a device driver. Usually the major requirement is to have the kernel source code and configuration available. For example, I use ndiswrapper to run my wireless card. The compile process creates a kernel module but as long as the stock kernel has basic wireless support (which most do) I don't have to touch the kernel. I just compile ndiswrapper and it works just fine with the existing kernel. There are some exceptions, but by and large, this is the way most drivers work.
Does the distribution like Fedora Core 3 comes with the source, objects and configurations
that was used to make it in the first place ?
The last time I tried getting the kernel-source, there wasn't any objects (.obj) files. I am not sure
about the configurations. And so I ended up recompiling a new kernel and it tagged on a new version (modversion) number.
FC3 certainly has the configuration available, however the kernel source probably isn't installed as part of the standard install. Most distros leave that out as a way of saving disk space. If you did a standard install the source RPM for your kernel should be on one of the CDs, or you should be able to obtain it from a Fedora mirror. I'm not sure about the .obj files, I don't think I've ever run across an error involving those. From my experience if you do a standard install and add the source code (and possibly the development tools, for some reason some distros don't install those as part of the standard install) you should be good to go. If you have a specific problem that is giving you fits, please post some details.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.