LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 04-23-2005, 07:45 PM   #1
SlackwareInAZ
Member
 
Registered: Apr 2005
Posts: 55

Rep: Reputation: 15
Unable to patch 2.6.11.7 kernel with Reiser4 mm patch


New to this forum, so greetings!

Am a moderately experience linux user since 1998, settling on Slackware several years ago.

I must be missing some minor step in patching my kernel for Reiser4. Here's what I did:

Have the source code for 2.6.11.7 in /usr/src/linux-2.6.11.7

downloaded the latest mm patch from kernel.org:2.6.12-rc2-mm3.bz2, used bunzip2 to uncompress it to 2.6.12-rc2-mm3 and copied to to the /usr/src/linux-2.6.11.7 directory.

when I try to apply: patch -p1 </usr/src/linux-2.6.11.7/2.6.12-rc2-mm3 I quickly get errors such as reverse patch detected, etc.

What am I doing wrong?

I've tried to put the patch in /usr/src, and while in the /linux-2.6.11.7 directory, used patch -p1 /usr/src/2.6.12-rc2-mm3 or patch -p0, etc with the same errors.

I assume this is the correct Reiser4mm patch for the stable kernel code, so I would appreciate any help.

Thanks
 
Old 04-23-2005, 07:53 PM   #2
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
from some howto :

---------
Now, on to applying the patches. Normally all you need to do is simply issue the following command:

patch -p0 < patch-file-name-here

This should be done from the /usr/src directory.
---------

put the patch in the dir above the sourcefile ( prob. /usr/src ) and use the command there.

egag
 
Old 04-23-2005, 08:48 PM   #3
SlackwareInAZ
Member
 
Registered: Apr 2005
Posts: 55

Original Poster
Rep: Reputation: 15
egag,

Thanks for the quick reply. Tried your suggestion. Placed 2.6.12-rc2-mm3 patch in /usr/src.

Applied patch while in /usr/src using your directions -- patch -p0 <2.6.12-rc2-mm3 and received the following error:

can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- linux-2.6.12-rc2/arch/alpha/defconfig 2005-03-02 01:09:17.000000000 -0800
|+++ 25/arch/alpha/defconfig 2005-04-10 23:48:27.000000000 -0700
--------------------------
File to patch:


Any further suggestions are most appreciated.



 
Old 04-23-2005, 10:55 PM   #4
amos
Member
 
Registered: Dec 2002
Location: Bolton, UK
Distribution: Kubuntu
Posts: 224

Rep: Reputation: 30
Isn't patch 2.6.12-rc2-mm3 meant for use with kernel 2.6.12-rc2.

You need to either get the patch for kernel 2.6.11 which would be 2.6.11-mm4 from here or download the full kernel source for 2.6.12-rc2, and run your patch against that.

Cheers
Amos

Last edited by amos; 04-23-2005 at 10:56 PM.
 
Old 04-24-2005, 05:10 AM   #5
cathectic
Member
 
Registered: Sep 2004
Location: UK, Europe
Distribution: Slackware64
Posts: 761

Rep: Reputation: 35
You're using the wrong patch! For Reiser4, get the patch for a vanilla kernel from Namesys themselves:

ftp://ftp.namesys.com/pub/reiser4-for-2.6/2.6.11

Use the latest 2.6.11 patch against your kernel sources (reiser4-for-2.6.11-3.patch.gz)
 
Old 04-24-2005, 11:20 AM   #6
SlackwareInAZ
Member
 
Registered: Apr 2005
Posts: 55

Original Poster
Rep: Reputation: 15
Amos & Cathectic,

I know this shouldn't be so difficult, as several years ago, without much effort, was able to patch an older 2.6.x kernel with the mm patch, but using the 2.6.11-mm4 suggested didn't work either.

Method used: 2.6.11-mm4 patch is in /usr/src. While in /usr/src/linux-2.6.11.7 directory I applied patch -p1 </usr/src/2.6.11-mm4.

Are you saying that I need to patch a 2.6.11 kernel with the Reiser4 mm patch, then upgrade that to 2.6.11.7, or does the 2.6.11-mm4 patch work for all 2.6.11.x kernels?

Thanks everyone
 
Old 04-24-2005, 12:49 PM   #7
SlackwareInAZ
Member
 
Registered: Apr 2005
Posts: 55

Original Poster
Rep: Reputation: 15
Update:

Downloaded source code for 2.6.11.1 and successfully patched it with 2.6.11-mm4 Reiser 4 patch.

Then tried to patch that code with the patch-2.6.11.7 kernel patch to update everything to the newer kernel, but received the familiar errors. Do I have to patch it with 2.6.11.2 kernel patch to update it to .2, then to .3. etc, or shouldn't the .7 patch include everything previous, ie. like Windows service packs?

Thanks,
 
Old 04-24-2005, 12:58 PM   #8
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Patches are incremental unless specified so patch-2.6.11.7 will upgrade 2.6.11.6.
Service Packs usually replace already compiled binary files while this patches updates source code (by adding, removing, replacing lines, so you have to do it once at the time because a line added by a patch may got replaced by another).
 
Old 04-25-2005, 09:47 PM   #9
SlackwareInAZ
Member
 
Registered: Apr 2005
Posts: 55

Original Poster
Rep: Reputation: 15
Finally got my 2.6.11.7 kernel patched for Reiser 4 support.

Cathectic,
Your suggestion to use the latest 2.6.11 mm patch (the one labeled reiser4-for-2.6.11-3.patch.gz) was the one that worked.

Appreciate everyone's help.

Booted to a Gentoo Reiser4 LiveCD, wiped and reformatted the 22Gb partition to Reiser 4, then copied the backed up data, chrooted and set lilo, rebooted and I was set.

Don't see too much difference between Reiser4 and Reiser3.6 in day to day copying and usage, but I had to try the latest and greatest. Maybe one day I'll give JFS or XFS a try.

Take care,
Gary
 
Old 04-26-2005, 06:33 AM   #10
davidsrsb
Member
 
Registered: Oct 2003
Location: Kuala Lumpur, Malaysia
Distribution: Slackware 13.37 current
Posts: 770

Rep: Reputation: 33
Any idea when reiser 4 is going to be included in the stock 2.6 kernel? V4 has been around quite a while now.

At some stage I guess that Slack 11 will appear with 2.6.x kernel and PK always seems to use unpatched kernels. I always use Reiser 3.6 on my PCs now.
 
  


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
Kernel Patch (Patch-2.6.13) ukez Linux - Hardware 4 08-30-2005 03:40 PM
i'm unable to run a patch clueless_user Linux - Newbie 14 03-11-2005 09:23 AM
How to Install patch-o-matic(a iptables patch) on redhat 9? itebooks Linux - Security 1 07-23-2004 08:51 AM
debian-patch-debianlogo w/2.6.5 kernel-patch-lpp Outabux Debian 11 05-20-2004 01:21 PM
How to Apply patch for Mass Storage device to work? (uss725-2.4.20-rc2.patch) cevjr Linux - Hardware 3 04-20-2004 11:14 PM

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

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