LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-05-2005, 01:23 PM   #1
mandana
LQ Newbie
 
Registered: Jul 2005
Location: toronto,canada
Posts: 5

Rep: Reputation: 0
what is a linux kernel patch for?


Hi all,
I am trying to install linux kernel 2.6 (actually upgrading from 2.4 to 2.6). I don't know if I should install kernel patches as well or no?
For example, if you go to:
linuxhq.com/kernel/index.html
to download version 2.6, you will find "source" and "patch".

What should I do? Should I install the patch or just the source?

Thank you,
Mandana
 
Old 08-05-2005, 01:38 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
The patches are just a file that describe the differences between two kernel versions. These are provided in the hopes that not everyone will feel the need to download the WHOLE source every time they upgrade. Just install the source.
 
Old 08-05-2005, 01:39 PM   #3
kimx
Member
 
Registered: Dec 2004
Location: Denmark
Distribution: Yoper 2.2, Source Mage, Ubuntu 5.04, Slackware 10.1
Posts: 70

Rep: Reputation: 16
You probally need the source, the pacht is if you got the sources from the previus kernel.

Last edited by kimx; 08-05-2005 at 02:47 PM.
 
Old 08-05-2005, 01:39 PM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
Patches are specific modifications to the source-code to solve a particular problem. They are effectively a command-file consisting of text-editor commands. Patches can be found not only for the kernel but for any source-file.

You should examine the patch-file to see if it relates to your problem, and if so, apply the patch... then recompile the kernel. (Always make a backup copy of the un-patched source, and when you go to install the patched kernel, always keep a copy of the un-patched one you're running now.)
 
Old 08-05-2005, 01:39 PM   #5
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
If you are upgrading you should go for kernel source. Patches are generally done in the same kernel series (like 2.4, 2.6) to upgrade the kernel to the latest version (also called patch-level) or to add a feature not available in the vanilla kernel. I have never heard of a patch that takes your kernel from 2.4 to 2.6 series.

You may as well go to www.kernel.org and download the latest 2.6 series kernel from there and compile it. There are number of howto's to compile 2.6 series kernel. Make sure you click the letter "F" (Full Source) when you download from kernel.org

Tux,
 
Old 08-05-2005, 02:54 PM   #6
mandana
LQ Newbie
 
Registered: Jul 2005
Location: toronto,canada
Posts: 5

Original Poster
Rep: Reputation: 0
Smile Thank a lot!

WOOOW ... this was my first time posting a question on a forum ... thanks a million for your promt answers.
 
Old 08-05-2005, 02:56 PM   #7
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
LOL. Guess we all jumped on this one.
 
  


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
Unable to patch 2.6.11.7 kernel with Reiser4 mm patch SlackwareInAZ Slackware 9 04-26-2005 06:33 AM
updating the linux kernel with a patch? behmjoe Linux - General 5 04-22-2005 09:29 AM
usermode linux malformed patch for 2.6 kernel frogboy Linux - Newbie 1 10-26-2004 10:25 PM
debian-patch-debianlogo w/2.6.5 kernel-patch-lpp Outabux Debian 11 05-20-2004 01:21 PM
The linux kernel ...to patch it or to build it that is the question Rodcl Linux - Software 3 07-13-2002 08:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:16 AM.

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