LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 05-10-2007, 02:52 PM   #1
rmvinodh123
LQ Newbie
 
Registered: Apr 2007
Posts: 8

Rep: Reputation: 0
Patching the kernel --need help.


I am new to Linux and i need some help about patching the kernel,want to know what it is and why is it done.

If a new hardware(and its driver) is released by a manufacturer and suppose that hardware is not supported by my kernel. Will the problem be solved if the user downloads that driver and installs it??

How does a kernel developer solve this problem, say if he wants to include support for these new hardware(assuming he has their corresponding drivers).
Is this what happens in the new releases of the kernel?

Thanks in advance.
 
Old 05-10-2007, 03:09 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Drivers can be in one of two places: either in-kernel or out-of-kernel. Both ways work. In the first case, the driver is maintained by a Kernel maintainer and is included in the kernel sources. In the second, it is separately maintained and distributed.

Also, I'm moving this to the Kernel forum to get more specific exposure for your question.
 
Old 05-10-2007, 03:34 PM   #3
rmvinodh123
LQ Newbie
 
Registered: Apr 2007
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks for the reply, could you give me some more information about the in-kernel and out-of-kernel methods.
My project involved compiling drivers for Linux, i want to know about combining these object files with the kernel.

Last edited by rmvinodh123; 05-10-2007 at 03:39 PM.
 
Old 05-10-2007, 05:12 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Seems you are at the start of a long trek.

Initially you should use a driver (kernel) module - once loaded, it is effectively a part of (an extension to) the kernel.
Makes testing (and acceptance) much easier.

Nothing gets into the mainstream kernel unless it is open source under the appropriate license.
And gets accepted by the relevant maintainer
And doesn't get killed off by the (other) kernel devs
And gets past Andrew
and Linus.

No doubt I've missed a few hurdles in there.

Look initially in your source tree - plenty of doco for aspiring kernel hackers.
Then maybe somewhere like kernelnewbies.
 
Old 05-11-2007, 07:24 AM   #5
rmvinodh123
LQ Newbie
 
Registered: Apr 2007
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks for the replies, let me be more specific about the problem,i have been working on a assignment which involved compilation of drivers to get a ".ko" object module.
Now how do i load this module into the kernel (i have to do this for more than 1 driver)?

Thanks once again.
 
Old 05-11-2007, 08:49 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
I'd suggest you get a hold of Linux Device Drivers (Corbet et al) - I have version 3 which is for 2.6.
Second time I've recommended it in a couple of days.

I have a hard-copy, but I believe it's available for (free) download.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error while patching Rtlinux 3.1 kernel using kernel linux-2.4.29 dolreich_c Linux - General 1 02-06-2018 06:48 AM
powerpc: kernel patching... but which kernel source? parent's_basement Ubuntu 2 01-15-2007 01:46 PM
Patching a kernel colly Linux - General 5 12-02-2004 12:04 PM
Patching a 2.6 kernel with a 2.4 kernel keyboard driver..possible? dxx Linux - Laptop and Netbook 3 11-18-2004 04:18 AM
Patching the kernel Brain2000 Linux - Newbie 0 06-15-2004 12:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 11:10 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