LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-27-2004, 07:05 PM   #1
Protex
Member
 
Registered: Sep 2003
Location: Buffalo, NY
Distribution: Slackware 9.1 (prev: mandrake 9.1)
Posts: 63

Rep: Reputation: 15
kernel patching


I'm trying to patch kernel 2.6.1 to 2.6.2-rc2, however it seems I suck at patching.

I have gotten a clean kernel and it is in the /usr/src/linux-2.6.1
I have the patch in /usr/src/patch-2.6.2-rc2.bz2

I've tried to patch it by:

bunzip2 -cd /usr/src/patch-2.6.2-rc2.bz2 | patch -p0

it then says:

can't find file to patch at line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
-----------------------------------------------
| diff -Nru a/CREDITS b/CREDITS
| --- a/CREDITS Sun Jan 25 18:31:55 2004
| +++ b/CREDITS Sun Jan 25 18:31:55 2004
-----------------------------------------------
File to Patch:

So I then type: /usr/src/linux-2.6.1
and it says:

Patch: **** file /usr/src/linux-2.6.1 is not a regular file can't patch


What exactly am i doing wrong?
 
Old 01-27-2004, 08:08 PM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Try patch -p1 < zcat /usr/src/patch-2.6.2-rc2.bz2
 
Old 01-27-2004, 08:29 PM   #3
Protex
Member
 
Registered: Sep 2003
Location: Buffalo, NY
Distribution: Slackware 9.1 (prev: mandrake 9.1)
Posts: 63

Original Poster
Rep: Reputation: 15
That didn't work at all maybe your syntax is wrong
 
Old 01-27-2004, 08:43 PM   #4
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
I am sorry, your right, correct syntax is:

bzcat /usr/src/patch-2.6.2-rc2.bz2 | patch -p1
 
Old 01-27-2004, 08:57 PM   #5
Protex
Member
 
Registered: Sep 2003
Location: Buffalo, NY
Distribution: Slackware 9.1 (prev: mandrake 9.1)
Posts: 63

Original Poster
Rep: Reputation: 15
still asks me for which file to patch.

should i be patching linux-2.6.1.tar.bz2 instead of the extracted contents of the file which resides in /usr/src/linux-2.6.1/ ?
 
Old 01-27-2004, 09:09 PM   #6
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
I am sorry, extract the kernel source. Then cd to the directory it created and type that command. I just did it to make sure it works and it did.
 
Old 01-27-2004, 09:43 PM   #7
Protex
Member
 
Registered: Sep 2003
Location: Buffalo, NY
Distribution: Slackware 9.1 (prev: mandrake 9.1)
Posts: 63

Original Poster
Rep: Reputation: 15
thanks, that worked great

I really appriciate it

~Sean
 
  


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
Kernel patching.. new.thing Linux - Hardware 3 07-13-2005 06:36 AM
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 the kernel grazie Fedora 4 11-09-2004 03:29 PM
Patching the Kernel LinuxBlackBox Linux - Software 2 06-16-2004 06:54 AM
Kernel Patching? wr3ck3d Linux - General 4 04-13-2003 03:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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