View previous topic :: View next topic |
Author |
Message |
mr666white n00b
Joined: 24 Aug 2004 Posts: 52
|
Posted: Sat Dec 04, 2004 1:15 am Post subject: HOWTO: CK overloaded with reiser 4 (2.6.9) |
|
|
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 |
|
|
Mpemba Effect Apprentice
Joined: 18 Sep 2002 Posts: 156
|
Posted: Sat Dec 04, 2004 3:45 pm Post subject: |
|
|
But gentoo ebuilds are avaliable on the cko site |
|
Back to top |
|
|
mr666white n00b
Joined: 24 Aug 2004 Posts: 52
|
Posted: Sat Dec 04, 2004 8:37 pm Post subject: |
|
|
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 |
|
|
StifflerStealth Retired Dev
Joined: 03 Jul 2002 Posts: 968
|
Posted: Sat Dec 04, 2004 10:44 pm Post subject: |
|
|
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 |
|
|
cuchumino Guru
Joined: 24 Nov 2004 Posts: 428
|
Posted: Sat Dec 04, 2004 11:51 pm Post subject: |
|
|
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 |
|
|
StifflerStealth Retired Dev
Joined: 03 Jul 2002 Posts: 968
|
Posted: Sun Dec 05, 2004 12:00 am Post subject: |
|
|
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 , 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 |
|
|
cuchumino Guru
Joined: 24 Nov 2004 Posts: 428
|
Posted: Sun Dec 05, 2004 12:02 am Post subject: |
|
|
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 |
|
|
Deathwing00 Bodhisattva
Joined: 13 Jun 2003 Posts: 4087 Location: Dresden, Germany
|
Posted: Sun Dec 05, 2004 1:15 am Post subject: |
|
|
Moved from Kernel & Hardware.
EDIT: Seems more appropriate in Unsupported now. --pjp |
|
Back to top |
|
|
yngwin Retired Dev
Joined: 19 Dec 2002 Posts: 4572 Location: Suzhou, China
|
Posted: Mon Dec 06, 2004 10:02 am Post subject: |
|
|
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 |
|
|
sprite Tux's lil' helper
Joined: 10 Jun 2003 Posts: 143 Location: Camarillo, California (USA)
|
Posted: Sat Jan 15, 2005 4:33 am Post subject: |
|
|
tag for later.. |
|
Back to top |
|
|
|