LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 01-01-2004, 03:40 PM   #1
IamDaniel
Member
 
Registered: Mar 2003
Location: Sungai Petani
Distribution: Slackware
Posts: 143

Rep: Reputation: 15
patching kernel fails..


I tried to patch my kernel with the following:

[02:17am] root@darkstar:/usr/src# patch -p1 < patch-2.5.9
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Nru a/Documentation/BK-usage/bk-kernel-howto.txt b/Documentation/BK-usage/bk-kernel-howto.txt
|--- a/Documentation/BK-usage/bk-kernel-howto.txt Mon Apr 22 15:32:18 2002
|+++ b/Documentation/BK-usage/bk-kernel-howto.txt Mon Apr 22 15:32:18 2002
--------------------------
File to patch:

The clean kernel was 2.5.9..why I get this? I tried -p0, -p1...but still the same. I am lost... hope somebody help.
 
Old 01-01-2004, 03:58 PM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
a and b more so don't exist in your file heirarchy, so you will have to stick with using the -p1 argument to negate this issue, and avoid that causing the problem...as it cuts of the first part off the path in the patch files..
second put the patch in your untarred kernel source folder, and then run patch with using -p1 (ex. /usr/src/linux) and see if that helps you...
 
Old 01-02-2004, 02:58 PM   #3
IamDaniel
Member
 
Registered: Mar 2003
Location: Sungai Petani
Distribution: Slackware
Posts: 143

Original Poster
Rep: Reputation: 15
Thanks a million, anyway I am confuse what to do for the next step:

Quote:
root@darkstar:/usr/src/linux-2.5.9# patch -p1 < patch-2.5.9
patching file Documentation/BK-usage/bk-kernel-howto.txt
Reversed (or previously applied) patch detected! Assume -R? [n]
What does it means ?
 
Old 01-02-2004, 03:23 PM   #4
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
that ususally means that this patch has been applied in the master sources which you have, and that this patch is basically not needed, cause it should be already there...
but i mean, if you really wanna try, just hit "y" at that screen and see if it goes through with it...
 
Old 01-02-2004, 03:51 PM   #5
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 57
It is curious that you are in a directory called Linux 2.5.9 and are trying to apply the 2.5.9 patch. Usually the 2.5.9 patch would be applied to a pristine 2.5.8 source tree to upgrade it to 2.5.9.

If you already have 2.5.9 and try to apply the 2.5.9 patch, the error you're getting is the one you should be getting!


Håkan

Last edited by hw-tph; 01-02-2004 at 03:52 PM.
 
Old 01-02-2004, 03:57 PM   #6
IamDaniel
Member
 
Registered: Mar 2003
Location: Sungai Petani
Distribution: Slackware
Posts: 143

Original Poster
Rep: Reputation: 15
"applied in the master sources" ?

Again, I am confuse with the organizations of the ftp.kernel.org, I download the linux-2.5.9.tar.bz2, and suppose to get the most stable performance, I should get the patch-2.5.9.tar.bz2 too and apply the patch, if it is a clean source why it claims that it is applied before ?

So, if I hit "Y", the should be nothing gonna change ?

Thanks..

P/S: I know the latest kernel should be linux-2.6.0, I am just want to learn and understand, as the kernel version is not important.
 
Old 01-02-2004, 04:12 PM   #7
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 57
If you have a clean 2.5.9 source tree installed the 2.5.9 patch is useless since it provides the changes between the previous version (in this case 2.5.8) and 2.5.9!

2.5.9 is an old development release and I wouldn't rate it stable (heck, it *is* a development release!). The last 2.5 kernel before it was renamed to 2.6.0-pre was 2.5.75.

Go with either 2.4.23 or 2.6.0 instead (latest "old" stable and the first new stable). Kernel versions 2.5 is the development branch between 2.4 and 2.6, 2.3 was the old development branch and the upcoming one is 2.7...as you can see the odd numbered branches are for development, and stable are even numbered (2.0, 2.2, 2.4, 2.6).


Håkan
 
Old 01-02-2004, 04:14 PM   #8
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 57
Damn, I need to read the posts I reply to more thoroughly. Sorry to be overly verbose in my previous post.

Yes, in theory nothing should change if you forcefully apply the patch, but if you answer yes to "assume -R" it will *reverse* that patch (down to 2.5.8 level).


Håkan
 
Old 01-02-2004, 04:18 PM   #9
IamDaniel
Member
 
Registered: Mar 2003
Location: Sungai Petani
Distribution: Slackware
Posts: 143

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by hw-tph
It is curious that you are in a directory called Linux 2.5.9 and are trying to apply the 2.5.9 patch. Usually the 2.5.9 patch would be applied to a pristine 2.5.8 source tree to upgrade it to 2.5.9.

If you already have 2.5.9 and try to apply the 2.5.9 patch, the error you're getting is the one you should be getting!


Håkan
Oops, I didn't read the post..now I realized. So, if I want to apply patch, I should get the 2.5.10, am I right ?
 
Old 01-02-2004, 04:54 PM   #10
IamDaniel
Member
 
Registered: Mar 2003
Location: Sungai Petani
Distribution: Slackware
Posts: 143

Original Poster
Rep: Reputation: 15
Thanks you very much, you help me a lot...hw-tph
 
  


Reply


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
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 2.6.6 kernel with swsusp2: fails with no /proc/swsusp interface sdo Fedora - Installation 0 07-12-2004 07:47 PM
Kernel Patching? blmartin777 Linux - Software 1 05-10-2004 03:56 PM
Patching 2.6.1 kernel to 2.6.2 wenberg Slackware 6 02-09-2004 09:44 AM
kernel patching help? faderjet Linux - Newbie 8 01-26-2004 02:26 PM


All times are GMT -5. The time now is 09:48 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration