LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 06-16-2005, 08:23 PM   #1
cheelee
LQ Newbie
 
Registered: Jun 2003
Posts: 3

Rep: Reputation: 0
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) ?

Thanks

CK
 
Old 06-17-2005, 03:01 PM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
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.
 
Old 06-17-2005, 10:54 PM   #3
cheelee
LQ Newbie
 
Registered: Jun 2003
Posts: 3

Original Poster
Rep: Reputation: 0
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.

Thanks

CK
 
Old 06-18-2005, 07:24 AM   #4
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Building driver modules to work with Install kernels? Erik_FL Slackware 4 10-06-2005 09:05 PM
How can I disable modules without recompiling my Kernal? thorlin SUSE / openSUSE 1 09-23-2005 07:15 AM
Exluding modules without recompiling? BajaNick Linux - General 8 01-17-2005 08:36 PM
cant re-make modules with stock source? jgdovin Linux - Newbie 4 06-15-2004 08:02 AM
RH 8 kernels and their relation to 'stock' kernels psweetma Linux - Distributions 1 03-29-2003 10:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration