Unable to patch 2.6.11.7 kernel with Reiser4 mm patch
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 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:
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.
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?
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?
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).
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.