LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-27-2008, 05:07 AM   #1
Rahul Kolan
LQ Newbie
 
Registered: Aug 2008
Posts: 14

Rep: Reputation: 0
Kernel Patch Update


How to patch kernel or upgrade to kernel patch-2.6.26.3
am using centos 5.1

i given the command patch -p1 <patch-2.6.26.3

after that one message comming i.e

patching file a/Documentation/ftrace.txt
can't find file to patch at input line 1364
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/Documentation/networking/udplite.txt b/Documentation/networking/udplite.txt
|index 3870f28..855d8da 100644
|--- a/Documentation/networking/udplite.txt
|+++ b/Documentation/networking/udplite.txt
--------------------------
File to patch:

what is this file to patch ????
any help and suggestion pls.
 
Old 08-27-2008, 05:21 AM   #2
vkmgeek
Member
 
Registered: Feb 2006
Location: Ahmedabad
Distribution: rhel5
Posts: 185
Blog Entries: 2

Rep: Reputation: 31
Yes it exactly means that paths/files are not matching...
I am not sure what you are trying to do.... But I can explain the basics of patch...

Let us say I have linux2.6.23/kernel/drivers/abcd.c and there is a patch available for that file then this will be with reference to linux2.6.23 folder....... So, what you can do is copy the patch into linux2.6.23 directory and then do
patch -p1 < "patch name"

Arguments to -p mainly suggests that how many Slashes (/) are to be omitted from the line
diff --git a/Documentation/networking/udplite.txt b/Documentation/networking/udplite.txt
found in patch file..........

If it doesnt help, post your exact directory structure and initial lines of patch file........
 
Old 08-27-2008, 02:59 PM   #3
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
Kernel patches have to be applied to the kernel source and then a new kernel compiled to use it on a running system.
 
  


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
After kernel security patch update, have two kernals in grub sirius57 SUSE / openSUSE 6 08-30-2007 01:54 AM
update to patch kernel source lmmix Linux - General 5 02-24-2005 03:33 PM
update the kernel and patch kernel Neomaster Linux - Laptop and Netbook 9 02-15-2004 06:58 PM
YaST Online Update + AMD kernel patch = kernel panic THX1138 Linux - General 3 10-26-2003 04:25 PM
update kernel patch wysurya Linux - Software 1 08-29-2003 09:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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