Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HOWTO: CK overloaded with reiser 4 (2.6.9)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
mr666white
n00b
n00b


Joined: 24 Aug 2004
Posts: 52

PostPosted: Sat Dec 04, 2004 1:15 am    Post subject: HOWTO: CK overloaded with reiser 4 (2.6.9) Reply with quote

I'm helping out a few mates who went for reiser4 when it was part of ck-sources and i thought i'd publish a howto

Get the vanilla dev sources and keep them vanilla:
make sure you have 'vanilla' in your use flags i use euse from the gentoolkit package:
Code:
euse -E vanilla
emerge development-sources


Download the patchset from http://kem.p.lodz.pl/~peter/cko/
You should make sure that the number of the patcheset is the same as the version of your dev sources - if you have linux-2.6.9 as your dev sources then you need patch-2.6.9-ckoX where x is the highest number available (currently 3)

extract the patch from the bzip

as root:
Code:
# ln -sf /usr/src/linux-2.6.9 /usr/src/linux
# cd /usr/src/linux
# patch -p1 <../path/to/patch-2.6.9-ckoX


You will most likely be asked about a patch that is there already, and if you want to assume -R. It seems to work if you say yes here.

Now we are ready to configure the kernel.
If you have you config readable from /proc you cna save yourself some time by doing it theis way.

Code:
cp /proc/config.gz /usr/src/linux
cd /usr/src/linux
gunzip config.gz
mv config .config


You can then either use make menuconfig to fiddle with the config untill you are satisfied, or you can do things the quick and easy way by using make oldconfig and answering the questions to the new stuff. It is generaly safe to say no to everything.

If you haven't got an old config file, you may run into problems as the configuration for reiser 4 hides.

Use make menuconfig to generate a .config and then edit .config. Find the line that reads

# CONFIG_REISER4_FS is unset

and change it to

CONFIG_REISER4_FS=y

use menuconfig again to set all your opption for reiser4.
You may need to enable CONFIG_REISER4_LARGE_KEY if you made your reiser4 filesystem that way previously. If you've not made a filesystem yet, i reccommend choosing yes here.

Make sure /boot is mounted then compile and install your modules
Code:

make && modules_install


If you have forgotten how to configure your module aotoloader or how to copy your kernel and system map to /boot then i suggest you consult the gentoo handbook: http://www.gentoo.org/doc/en/handbook/handbook-x86.xml
_________________
www.technomancer.me.uk
Back to top
View user's profile Send private message
Mpemba Effect
Apprentice
Apprentice


Joined: 18 Sep 2002
Posts: 156

PostPosted: Sat Dec 04, 2004 3:45 pm    Post subject: Reply with quote

But gentoo ebuilds are avaliable on the cko site ;)
Back to top
View user's profile Send private message
mr666white
n00b
n00b


Joined: 24 Aug 2004
Posts: 52

PostPosted: Sat Dec 04, 2004 8:37 pm    Post subject: Reply with quote

I've not seen one for 2.6.9 kernel yet, and the main reason for this howto is upgradeing from 2.6.8.1-ck7, which (i think) was the last ck-sources to contain reiser4 support. A lot of the local gentists migrated to reiser 4 as soon as the ck kernel supported it, and then it got dropped from ck-sources :-(

Does anyone think this should be developed into a more genteral kernel patching guide and placed on the gentoo wiki?
_________________
www.technomancer.me.uk
Back to top
View user's profile Send private message
StifflerStealth
Retired Dev
Retired Dev


Joined: 03 Jul 2002
Posts: 968

PostPosted: Sat Dec 04, 2004 10:44 pm    Post subject: Reply with quote

I had to tweak the one the website a bit, but you can save the code as cko-sources-2.6.9-r3.ebuild or you can check out my sig of the "Kernel & Hardware" for other patchsets. I found the Reiser4 patch in CKO to be old and I had some serious problems with it, which is why I opted to make my own patchset using regular CK and the new CK-Server series.

2.6.9 CKO3 ebuild (well, just rename the r3 to r4 or the 2.6.9 to 2.6.10 as new versions become available).

Code:
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-kernel/cko-sources/cko-sources-2.6.8.1-r8.ebuild,v 1.1 2004/10/11 15:45:08 dsd Exp $

UNIPATCH_LIST="${DISTDIR}/patch-${KV}.bz2"

K_PREPATCHED="yes"

K_PREPATCHED="yes"
UNIPATCH_STRICTORDER="yes"

K_NOSETEXTRAVERSION="yes"
K_NOUSENAME="yes"

ETYPE="sources"
inherit kernel-2
detect_version
IUSE=""

DESCRIPTION="Con Kolivas patchset based overloaded kernel - A set of patches made specifically for speed and desktop usage"
HOMEPAGE="http://kem.p.lodz.pl/~peter/cko/"
SRC_URI="${KERNEL_URI} http://kem.p.lodz.pl/~peter/cko/patch-${KV}.bz2"

KEYWORDS="x86 amd64"

pkg_postinst() {
 postinst_sources

 ewarn "IMPORTANT:"
 ewarn "ptyfs support has now been dropped from devfs and as a"
 ewarn "result you are now required to compile this support into"
 ewarn "the kernel. You can do so by enabling the following options"
 ewarn "    Device Drivers -> Character devices  -> Unix98 PTY Support"
 ewarn "    File systems   -> Pseudo filesystems -> /dev/pts filesystem."
 echo
}
You need to corrent the tabs, though. Enjoy. :)
_________________
Nothing to read in this sig. Move along.
Back to top
View user's profile Send private message
cuchumino
Guru
Guru


Joined: 24 Nov 2004
Posts: 428

PostPosted: Sat Dec 04, 2004 11:51 pm    Post subject: Reply with quote

i have tried the cko patches in fedora, and have tried the nitro patches in gentoo.

But i really haven't felt the difference. Maybe cuz they were different distros, tho i couldn't tell. Which would be the better of the two speedwise?
Back to top
View user's profile Send private message
StifflerStealth
Retired Dev
Retired Dev


Joined: 03 Jul 2002
Posts: 968

PostPosted: Sun Dec 05, 2004 12:00 am    Post subject: Reply with quote

I get 200 FPS more with a CK based kernel because of Staircase and all the enhancements that CK does to the kernel. I notice the difference as well. I have tried loads of kernels, so I guess that makes me a kernel whore :P :D , but I aways try out the kernels on the same machice and OS, which gives me the best test results. I can actually time the machine and I physically see the difference with a regular stopwatch.
_________________
Nothing to read in this sig. Move along.
Back to top
View user's profile Send private message
cuchumino
Guru
Guru


Joined: 24 Nov 2004
Posts: 428

PostPosted: Sun Dec 05, 2004 12:02 am    Post subject: Reply with quote

yea that's what happened to me, cuz i tried the cko's on fedora and all, and they seemed mad quick. Then i tried the nitro's on gentoo,and i didn't think i got the same results, tho i wasn't really sure.
Back to top
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Sun Dec 05, 2004 1:15 am    Post subject: Reply with quote

Moved from Kernel & Hardware.

EDIT: Seems more appropriate in Unsupported now. --pjp
Back to top
View user's profile Send private message
yngwin
Retired Dev
Retired Dev


Joined: 19 Dec 2002
Posts: 4572
Location: Suzhou, China

PostPosted: Mon Dec 06, 2004 10:02 am    Post subject: Reply with quote

You could also just use nitro-sources. Nice ebuild available :)
_________________
"Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF
Back to top
View user's profile Send private message
sprite
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jun 2003
Posts: 143
Location: Camarillo, California (USA)

PostPosted: Sat Jan 15, 2005 4:33 am    Post subject: Reply with quote

tag for later..
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum