Slackware This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
04-23-2005, 08:45 PM
|
#1
|
Member
Registered: Apr 2005
Posts: 55
Rep:
|
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
|
|
|
04-23-2005, 08:53 PM
|
#2
|
Senior Member
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721
Rep:
|
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
|
|
|
04-23-2005, 09:48 PM
|
#3
|
Member
Registered: Apr 2005
Posts: 55
Original Poster
Rep:
|
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.
|
|
|
04-23-2005, 11:55 PM
|
#4
|
Member
Registered: Dec 2002
Location: Bolton, UK
Distribution: Kubuntu
Posts: 224
Rep:
|
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 11:56 PM.
|
|
|
04-24-2005, 06:10 AM
|
#5
|
Member
Registered: Sep 2004
Location: UK, Europe
Distribution: Slackware64
Posts: 761
Rep:
|
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)
|
|
|
04-24-2005, 12:20 PM
|
#6
|
Member
Registered: Apr 2005
Posts: 55
Original Poster
Rep:
|
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
|
|
|
04-24-2005, 01:49 PM
|
#7
|
Member
Registered: Apr 2005
Posts: 55
Original Poster
Rep:
|
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,
|
|
|
04-24-2005, 01:58 PM
|
#8
|
Senior Member
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145
Rep:
|
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).
|
|
|
04-25-2005, 10:47 PM
|
#9
|
Member
Registered: Apr 2005
Posts: 55
Original Poster
Rep:
|
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
|
|
|
04-26-2005, 07:33 AM
|
#10
|
Member
Registered: Oct 2003
Location: Kuala Lumpur, Malaysia
Distribution: Slackware 13.37 current
Posts: 770
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 02:34 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|