Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 10-20-2005, 01:52 AM   #1
LQ Newbie
Registered: Mar 2004
Distribution: Slackware
Posts: 8

Rep: Reputation: 0
Question patch question

Well, my general question is how does the patching system work? I able to compile a kernel source without a problem but I'm having troubles patching some things. When you get a patch for a driver should it be the exactly the same kernel version? For example, the current kernel is at but my kernel driver patch is label 2.6.13. Should I only be using 2.6.13 with this patch? Or does the patch already include the updated driver? Is there a way to find out without compiling?

My other question is has the full source of a kernel and also a patch for that kernel. Is that kernel patch to upgrade from its previous version? If so, how early of a version is it able to patch?

Last edited by Falcon006; 10-20-2005 at 01:53 AM.
Old 10-20-2005, 02:38 AM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
When you patch a kernel, the patch should follow directly in numbered order from the previous version.

So say you have 2.6.13 and 2.6.14 is out.

You would patch 2.6.14 to your 2.6.13 kernel source, recompile it, then reboot after all the steps of recompiling a kernel.

Then if 2.6.15 was released, you would only have to download the patch again. But say you had 2.6.13 and version 2.6.17 was out. You cannot patch 2.6.17 to your 2.6.13 directly, you would have to patch each version up to the latest. When this occurs, it's usually just easier to just download the full source of the latest release.

As for your driver compile. sounds like your using a kernel from whatever distribution you have. doesn't use this scheme and most distro's do their own kernel work or coding to release their own setup, etc. This driver you have most likely should work with your And each time you recompile your kernel, you will need to compile this driver there afterwards until possibly the support is then built into the kernel itself.
Old 10-20-2005, 07:55 AM   #3
Senior Member
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
Since 2.6.11 has been appending EXTRAVERSION to the name, providing patches to take the base 2.6.11 to 2.6.11.n, n=1, 2, 3, 4 etc.

So, as I understand it

patch- takes 2.6.11 to (15K bzipped)
patch-2.6.11.bz2 takes 2.6.10 to 2.6.11 (4.0M bzipped)
patch-2.6.12.bz2 takes 2.6.11 to 2.6.12 (4.5M bzipped)

and so on.

Last edited by maroonbaboon; 10-20-2005 at 07:56 AM.
Old 10-20-2005, 10:04 PM   #4
LQ Newbie
Registered: Mar 2004
Distribution: Slackware
Posts: 8

Original Poster
Rep: Reputation: 0
Got it, thanks!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How can I patch, from version 6.8.1 to 6.8.2? Shagrath239 Slackware 2 02-11-2005 09:07 PM
Kernel question: difference between Patch and "regular" kernel source kopikat Linux - Software 1 01-26-2005 05:24 PM
patch kernel question zuessh Linux - General 16 12-20-2003 08:42 PM
First kernel patch is released jeremy LQ Suggestions & Feedback 36 09-18-2002 02:07 PM
The linux kernel patch it or to build it that is the question Rodcl Linux - Software 3 07-13-2002 08:19 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:42 PM.

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