Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-20-2008, 12:51 AM   #1
Registered: Aug 2008
Posts: 81

Rep: Reputation: 15
Applying a kernel patch?

I'm unable to apply a kernel patch.

How is this insurmountable feat performed?

I am in a directory where I have:

linux- and patch-

I want to patch the kernel to To do this I follow the commands from one of several guides I've read, as such:

tar jxvf linux-, to extract obviously
then change directory to this new dir and do:
"patch -p1 < ../patch-"

Which according to said guides should patch the kernel, but it doesn't!

All I get is an endless:

patching file Documentation/cciss.txt
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] y
Hunk #1 FAILED at 26.
1 out of 1 hunk FAILED -- saving rejects to file Documentation/cciss.txt.rej
patching file Documentation/filesystems/proc.txt
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] y
Hunk #1 FAILED at 44.
Hunk #2 FAILED at 2472.
2 out of 2 hunks FAILED -- saving rejects to file Documentation/filesystems/proc.txt.rej
patching file Documentation/i2c/busses/i2c-sis96x
Reversed (or previously applied) patch detected!  Assume -R? [n]
I've also attempted to change the name of the kernel source to "a" because this name is present in the patch-file as a directory name, I've also attempted to perform the patch from a different directory, e.g. the same directory as the patch resides in; however, then the patch program asks me what file it should patch, and when I provide the file name, the same issue as above is repeated.

Why am I unable to patch the kernel?
Old 12-20-2008, 05:08 AM   #2
Senior Member
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
You should:

cd /usr/src/linux-2.6.bla
bzip2 -dc /path/to/patch.tar.bzip2 | sudo patch -p1
Read the README in the kernel source root directory again!


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Having trouble applying kernel patch. sidholland Red Hat 5 04-05-2008 05:37 PM
Applying Kernel Patch browser Linux - Software 2 08-31-2005 06:18 AM
Applying a kernel patch.. RoaCh Of DisCor Linux - Software 2 05-07-2005 07:41 PM
applying kernel patch pirozzi Debian 1 12-01-2004 07:47 AM
applying ck kernel patch Abe_the_Man Linux - General 1 01-29-2004 11:43 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:50 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
Open Source Consulting | Domain Registration