Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HOWTO: Reiser4 for gentoo-sources
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3 ... 12, 13, 14  Next  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
keyser_soze
Apprentice
Apprentice


Joined: 19 Oct 2004
Posts: 162
Location: Australia

PostPosted: Mon Feb 14, 2005 6:53 pm    Post subject: HOWTO: Reiser4 for gentoo-sources Reply with quote

This information is now old, in fact I don't think this howto will work anymore. The steps to create a reiser4-gentoo-sources is now outlined in the gentoo wiki

http://gentoo-wiki.com/HOWTO_Reiser4_With_Gentoo-Sources


Thanks to UberDumm for putting in the effort.



I, like many out there, really want reiser4 support in the linux kernel.
I have been forced until now to use many of the patched kernel sets like mm and cko sources, which are a little unstable for my liking.
I took it apon myself to make some ebuilds so that others can easily have a gentoo-sources kernel patched for reiser4.

Here's how.

STEP 1: Setting up portage overlay

Make sure that you have PORTDIR_OVERLAY=/usr/local/portage set in your make.conf file. Choose your favorite editor and check for this line or add it if it is not there
Code:
nano /etc/make.conf


Next we set up the directory tree in our overlay directory as the handbook describes. (it should be laid out in the same way as /usr/portage).

Code:
mkdir -p /usr/local/portage/sys-kernel/reiser4-gentoo-sources/



STEP 2: Create ebuild and portage files

Now we are ready to create our ebuild file.
We have to create a file in the correct directory for the version we want.

In the folder /usr/local/portage/sys-kernel/reiser4-gentoo-sources make a file called reiser4-gentoo-sources-2.6.11.ebuild
This file will contain the source code below.

Similarly to the vanilla kernel this ebuild may work with other versions of the gentoo-dev-kernel although it has not been tested. To do so try to simply change the name of the ebuild file and follow all the other steps.

reiser4-gentoo-sources-2.6.11.ebuild
Code:
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
ETYPE="sources"
IUSE="ultra1"
inherit kernel-2
detect_version
detect_arch

#version of gentoo patchset
GPV="11.11"
R4V_MAJOR="${GPV%.*}"
R4V_MINOR="3"
R4V="${R4V_MAJOR}-${R4V_MINOR}"
GPV_SRC="mirror://gentoo/genpatches-${KV_MAJOR}.${KV_MINOR}-${GPV}-base.tar.bz2
mirror://gentoo/genpatches-${KV_MAJOR}.${KV_MINOR}-${GPV}-extras.tar.bz2"
KEYWORDS="~x86 ~ppc ~amd64 ~ppc64"
HOMEPAGE="http://dev.gentoo.org/~dsd/gentoo-dev-sources"

UNIPATCH_LIST="${DISTDIR}/genpatches-${KV_MAJOR}.${KV_MINOR}-${GPV}-base.tar.bz2
${DISTDIR}/genpatches-${KV_MAJOR}.${KV_MINOR}-${GPV}-extras.tar.bz2
${DISTDIR}/reiser4-for-${KV_MAJOR}.${KV_MINOR}.${R4V}.patch.gz"
UNIPATCH_DOCS="${WORKDIR}/patches/genpatches-${KV_MAJOR}.${KV_MINOR}-${GPV}/0000_README"
DESCRIPTION="Full sources including the gentoo patchset for the ${KV_MAJOR}.${KV_MINOR} kernel tree and extra patches for reiser4 support"
SRC_URI="${KERNEL_URI} ${GPV_SRC} ${ARCH_URI}
ftp://ftp.namesys.com/pub/reiser4-for-${KV_MAJOR}.${KV_MINOR}/${KV_MAJOR}.${KV_MINOR}.${R4V_MAJOR}/reiser4-for-${KV_MAJOR}.${KV_MINOR}.${R4V}.patch.gz"

pkg_setup() {
   if use sparc; then
           # hme lockup hack on ultra1
                use ultra1 || UNIPATCH_EXCLUDE="${UNIPATCH_EXCLUDE} 1399_sparc-U1-hme-lockup.patch"
        fi
}

pkg_postinst() {
   postinst_sources
        echo
        if [ "${ARCH}" = "sparc" ]; then
           if [ x"`cat /proc/openprom/name 2>/dev/null`" \ = x"'SUNW,Ultra-1'" ]; then
              einfo "For users with an Enterprise model Ultra 1 using the HME"
                        einfo "network interface, please emerge the kernel using the"
                        einfo "following command: USE=ultra1 emerge ${PN}"
                fi
        fi
       
   einfo "For more info on this patchset, and how to report problems, see:"
        einfo "${HOMEPAGE}"
        echo
        echo
        ewarn "IMPORTANT:"
   ewarn "The reiser4 filesystem is not considered stable in linux yet. The filesystem"
        ewarn "is very much usable though."
        ewarn "ALWAYS keep a second stable and bootable kernel apart in your boot manager."
        ewarn "Do NOT use reiser4 for your /boot partition unless you really know what you"
        ewarn "are doing... even then I do not recommend it."
        echo
        ewarn "Make sure that 4Kb stacks are turned OFF in the kernel. Found under kernel"
   ewarn "hacking subsection in the kernel config"
   echo
}




Next we have to digest the file into portage. This will create our metadata file for our new ebuild

Code:
 ebuild /usr/local/portage/sys-kernel/reiser4-gentoo-sources/reiser4-gentoo-sources-2.6.11.ebuild digest


You should see some downloading. You will probably get a few file not found errors, because it searches the default mirrors first. It should eventually find the files.

Success. You should be able to see your file in the portage tree now. Lets test it!

Code:
emerge -s reiser4-gentoo-sources



STEP 3: Emerge new source files

If all went to plan we should now be able to simply emerge the new sources and the patches will be applied

Code:
ACCEPT_KEYWORDS="~x86" emerge reiser4-gentoo-sources


Now we create a symlink to our new directory

This could be done automatically for you if you use the USE="symlink" flag in conjunction with the emerge command
Code:
USE="symlink" ACCEPT_KEYWORDS="~x86" emerge reiser4-gentoo-sources


Code:
cd /usr/src/
 rm -i linux
ln -s linux-2.6.11-reiser4 linux
cd linux
make menuconfig


There are other how-to's on configuring a kernel.

Don't forget to turn off 4Kb stacking in the kernel (Under kernel hacking subsection in the kernel configuration)

After you have finished configuring the kernel make sure your /boot is mounted
Code:
mount /boot


Then compile and install your new kernel
Code:
make; make modules_install; make install


You may want to edit your grub.conf to make sure that you can still boot your old kernel.
There are other how-to's to see how to do this

Reboot time!

Have fun!


Last edited by keyser_soze on Tue Sep 06, 2005 8:40 am; edited 14 times in total
Back to top
View user's profile Send private message
R!tman
Veteran
Veteran


Joined: 18 Dec 2003
Posts: 1303
Location: Zurich, Switzerland

PostPosted: Mon Feb 14, 2005 7:21 pm    Post subject: Reply with quote

Thanks for the Howto!

I am getting tired of patching kernels :-).

kaise_sose wrote:
I have shown the 2.6.10-r1 ebuild here. If people want lower versions I have made other ebuilds also. Let me know.


I think a lot of people would be interested in something like reiser4-gentoo-dev-sources, including me :-).
Back to top
View user's profile Send private message
keyser_soze
Apprentice
Apprentice


Joined: 19 Oct 2004
Posts: 162
Location: Australia

PostPosted: Mon Feb 14, 2005 8:34 pm    Post subject: Reply with quote

Ill try the patch on them
I don't know if it will work.
I don't really know all that much about patch files.
I just put together the ebuild and it downloads the source from namesys.com
Back to top
View user's profile Send private message
keyser_soze
Apprentice
Apprentice


Joined: 19 Oct 2004
Posts: 162
Location: Australia

PostPosted: Thu Feb 17, 2005 6:07 am    Post subject: Reply with quote

I have checked that it is possible to patch the gentoo-dev-sources v2.6.10-r7 with the patch and it worked.
I am getting errors with the ebuild.
I will work on it and try to post a working one.

But for those of you that want to the patch, just emerge gentoo-dev-sources, download the patch from

ftp://ftp.namesys.com/pub/reiser4-for-2.6/2.6.10-rc1/reiser4-for-2.6.10-rc1.patch.gz
Back to top
View user's profile Send private message
R!tman
Veteran
Veteran


Joined: 18 Dec 2003
Posts: 1303
Location: Zurich, Switzerland

PostPosted: Thu Feb 17, 2005 6:35 am    Post subject: Reply with quote

I have that patch already.

Thank you very much for working on the ebuild :-D.
Back to top
View user's profile Send private message
keyser_soze
Apprentice
Apprentice


Joined: 19 Oct 2004
Posts: 162
Location: Australia

PostPosted: Thu Feb 17, 2005 5:29 pm    Post subject: Reply with quote

done!
yay! :D
Back to top
View user's profile Send private message
keyser_soze
Apprentice
Apprentice


Joined: 19 Oct 2004
Posts: 162
Location: Australia

PostPosted: Sat Feb 19, 2005 1:51 pm    Post subject: Reply with quote

Although the patch seems to work with no errors on the gentoo-dev-sources. When I boot the kernel I get many errors about not being able to open sockets to all sorts of things. syslog-ng for example will not start and neither will gpm or xorg. On login pam returns all sorts of errors also, aside from these strange problems the system seems usable.

Has anyone had these problems with the gentoo-dev-sources? The vanilla sources work fine for me however?
Back to top
View user's profile Send private message
keyser_soze
Apprentice
Apprentice


Joined: 19 Oct 2004
Posts: 162
Location: Australia

PostPosted: Sat Feb 19, 2005 4:50 pm    Post subject: Reply with quote

Fixed problem.
It sesms the reiser4-for-2.6.10-rc1.patch.gz does not work with the gentoo-dev-sources.
I will fix the howto
Back to top
View user's profile Send private message
Seph64
Apprentice
Apprentice


Joined: 13 May 2003
Posts: 191

PostPosted: Sat Feb 19, 2005 5:38 pm    Post subject: Reply with quote

Hi, I followed this tutorial and had no problems with patching the 2.6.10 kernel with the reiser4 patch along side the gentoo-dev-sources patches (before you said you had problems). I did not seem to run in to any trouble you had. Although I guess it is a good thing you fixed it.
Back to top
View user's profile Send private message
keyser_soze
Apprentice
Apprentice


Joined: 19 Oct 2004
Posts: 162
Location: Australia

PostPosted: Sat Feb 19, 2005 5:54 pm    Post subject: Reply with quote

Cheers.
It was just that the version of the patch the ebuild was downloading didn't work well with the dev sources.
Thanks for letting me know it went ok
Hope it helps
Back to top
View user's profile Send private message
driana
n00b
n00b


Joined: 26 Sep 2004
Posts: 21

PostPosted: Sun Feb 20, 2005 5:32 am    Post subject: Reply with quote

A little error (really minor one) .. it should be con*s*idered .. not concidered ..

Thank you very much for creating this topic .. I didn't want to patch myself the kernel ... too lazy ^^
_________________
.ipridian. http://www.v-newtype.org
Back to top
View user's profile Send private message
keyser_soze
Apprentice
Apprentice


Joined: 19 Oct 2004
Posts: 162
Location: Australia

PostPosted: Sun Feb 20, 2005 6:24 am    Post subject: Reply with quote

Thanks
Don't know what I was thinking.
Oddly enough it was correct the other times
glad it helped

Quote:
I didn't want to patch myself the kernel ... too lazy ^^


tell me about it. It is sooo much easier to > emerge foo-sources....
Back to top
View user's profile Send private message
lefsha
Veteran
Veteran


Joined: 30 Aug 2004
Posts: 1234
Location: Burgas, Bulgaria

PostPosted: Sun Feb 27, 2005 11:36 pm    Post subject: Reply with quote

Hi all!

For now I use mm-sources to get reiser4 work.

But I can't understand why the developers team can not
simple to add reiser4 lib and make an option to enable
this fs to kernel.

They say it is not stable or something like this,
but everybody could self decide to use it or not.

They push me out to other sources only due to
this file system. If they really want that everybody
have the stable kernel, why not simply add this fs?
I have a lot problems with Gentoo, but never with Reiser4.
So if you really think that reiser4 is unstable why don't
remove Gentoo at all?

Could someone from the developer team give an answer?

I understand that some person like kaise_sose
in this case could solv this problem and add this fs
to the kernel.

But why I ask you, why LINUX all the time need this
tricks???
Could not life be a little easier?

Why if I working with Gentoo I need make some tricks?
Or is it too difficult to imagine Linux without tricks?

I wish that this Forum will be more idle...
_________________
Lefsha
Back to top
View user's profile Send private message
slycordinator
Advocate
Advocate


Joined: 31 Jan 2004
Posts: 3065
Location: Korea

PostPosted: Mon Feb 28, 2005 8:20 am    Post subject: Reply with quote

You can shorten this:
Code:
mkdir /usr/local/portage
mkdir /usr/local/portage/sys-kernel
mkdir /usr/local/portage/sys-kernel/reiser4-gentoo-dev-sources
mkdir /usr/local/portage/sys-kernel/reiser4-gentoo-dev-sources/files


to this:
Code:
mkdir -p /usr/local/portage/sys-kernel/reiser4-gentoo-dev-sources/files
Back to top
View user's profile Send private message
keyser_soze
Apprentice
Apprentice


Joined: 19 Oct 2004
Posts: 162
Location: Australia

PostPosted: Mon Feb 28, 2005 11:30 am    Post subject: Reply with quote

Ah cool
Thanks

I hve never read the man for mkdir.... spose it would save me time eh..
Back to top
View user's profile Send private message
slycordinator
Advocate
Advocate


Joined: 31 Jan 2004
Posts: 3065
Location: Korea

PostPosted: Mon Feb 28, 2005 9:26 pm    Post subject: Reply with quote

And just so you know, the "files" directory doesn't have to be created. It's created when you do the
Code:
ebuild ebuild_name digest
exits correctly.
Back to top
View user's profile Send private message
_mikec_
Guru
Guru


Joined: 22 May 2004
Posts: 386

PostPosted: Thu Mar 03, 2005 4:52 am    Post subject: Reply with quote

kaise_sose wrote:
Fixed problem.
It sesms the reiser4-for-2.6.10-rc1.patch.gz does not work with the gentoo-dev-sources.
I will fix the howto


please fix the howto, or perhaps i'm doing something wrong here, i did what you wrote for kernel gentoo-dev-sources, for some reason i can't load my nvidia module card (X) any more, iptables cant file "filter" or insmod, i've already added iptables support in the kernel, i am using kernel-2.6.10-gentoo-r7 (kernel-2.6.10-reiser4-r7). I am about to install a new gentoo system with reiser4 partitions so i just want to see what i'll go through with reiser4 on the new system before i start anything.

btw i am using genkernel to compile the kernel so i guess everything should be added to the kernel. Can you guys recommend me another kernel source for better support with reiser4 and without loosing any type of security nor speed or stability on my syste?

thanks.
_________________
(8 Mars 2005 - 07:52:46)
(18 September 2017 - 11:25:35)
Back to top
View user's profile Send private message
keyser_soze
Apprentice
Apprentice


Joined: 19 Oct 2004
Posts: 162
Location: Australia

PostPosted: Thu Mar 03, 2005 6:49 am    Post subject: Reply with quote

Quote:
for some reason i can't load my nvidia module card (X) any more


After any re-compile of the kernel you have to re-install the nvidia drivers.
Code:
emerge nvidia-kernel


and if you want
Code:
emerge nvidia-glx


That is an nvidia problem not a kernel problem


Quote:
iptables cant file "filter" or insmod


It is possible that the patch does not work 100% with this kernel version.
I have not had any problems with it.
Having said that I am still in the middle of configuring everything on my computer and I haven't tried iptables as yet.
perhaps some other people can verify this problem with IP tables.

I have never used genkernel. I think it is easy to compile the kernel youself.
You should really try to do it youself if you can. I think it is far better.

In terms of other reiser4 kernels the only ones I know of are ck-overloaded (not to be mistaken with normal ck) , mm and posibbly nitro sources.
All of them are patched for all sorts of things with various stability.

Have you tried the vanilla kernel with the patch to see if you get a problem?
Back to top
View user's profile Send private message
_mikec_
Guru
Guru


Joined: 22 May 2004
Posts: 386

PostPosted: Thu Mar 03, 2005 7:50 am    Post subject: Reply with quote

i haven't try vanilla kernel yet, i will try the nitro kernel, a lot of people are using it with reiser4 i guess. can i find the nitro source livecd with reiser4 already patched? i am trying to install gentoo on another disk while still being able to use my current gentoo to search for tips or help if i get stock with a problem.

which kernel are you using?
_________________
(8 Mars 2005 - 07:52:46)
(18 September 2017 - 11:25:35)
Back to top
View user's profile Send private message
keyser_soze
Apprentice
Apprentice


Joined: 19 Oct 2004
Posts: 162
Location: Australia

PostPosted: Thu Mar 03, 2005 8:30 am    Post subject: Reply with quote

Quote:
can i find the nitro source livecd with reiser4 already patched

I don't know of a boot cd using the nitro sources but you can use this.

http://tienstra4.flatnet.tudelft.nl/~gerte/gen2dmraid/gen2dmraid-0.99.iso

This is actually a live-cd meant for sata raid installations but it has reiser4 support. you can boot with it and do a normal gentoo install. although you will need to manually download the stage you want eg stage3 or stage1 etc and the portage overlay.

It is essentially the same as booting using a minimal boot cd. so the handbook should describe the install process if you were to use it.

If you look you should be able to find a howto on how to install the nitro sources. It may or may not be in the portage tree. I have not looked.
do
Code:
emerge nitro -s


if it is in the portage tree then when you are installing gentoo you can just emerge it.

Quote:
which kernel are you using?


the patched gentoo-dev-sources described in this howto
Back to top
View user's profile Send private message
_mikec_
Guru
Guru


Joined: 22 May 2004
Posts: 386

PostPosted: Fri Mar 04, 2005 3:38 am    Post subject: Reply with quote

i have found another livecd from the gentoo italian community, i am installing gentoo right now!
the livecd is in inglish though the handbook inside is in italian.

i hope reiser4 wont crach on me after, i really doubt.

cheers
_________________
(8 Mars 2005 - 07:52:46)
(18 September 2017 - 11:25:35)
Back to top
View user's profile Send private message
_mikec_
Guru
Guru


Joined: 22 May 2004
Posts: 386

PostPosted: Tue Mar 08, 2005 9:24 am    Post subject: Reply with quote

kaise_sose wrote:
Fixed problem.
It sesms the reiser4-for-2.6.10-rc1.patch.gz does not work with the gentoo-dev-sources.
I will fix the howto


so gentoo-dev-sources dont support reiser4?
_________________
(8 Mars 2005 - 07:52:46)
(18 September 2017 - 11:25:35)
Back to top
View user's profile Send private message
sepp
Guru
Guru


Joined: 11 Jul 2002
Posts: 330

PostPosted: Tue Mar 08, 2005 9:58 am    Post subject: Reply with quote

is there already a reiser4 patch against 2.6.11? I didn't find one in ftp://ftp.namesys.com/pub/reiser4-for-2.6/
Back to top
View user's profile Send private message
keyser_soze
Apprentice
Apprentice


Joined: 19 Oct 2004
Posts: 162
Location: Australia

PostPosted: Tue Mar 08, 2005 10:02 am    Post subject: Reply with quote

Quote:
is there already a reiser4 patch against 2.6.11?

I think there is one only for the -mm series kernels. I have not tried to patch anything with them though.
I suppose you could try.
The standard patches at namesys only go up to 2.6.10
Back to top
View user's profile Send private message
slycordinator
Advocate
Advocate


Joined: 31 Jan 2004
Posts: 3065
Location: Korea

PostPosted: Tue Mar 08, 2005 8:40 pm    Post subject: Reply with quote

_mikec_ wrote:
kaise_sose wrote:
Fixed problem.
It sesms the reiser4-for-2.6.10-rc1.patch.gz does not work with the gentoo-dev-sources.
I will fix the howto


so gentoo-dev-sources dont support reiser4?


If it did, this howto would be rather pointless.
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
Goto page 1, 2, 3 ... 12, 13, 14  Next
Page 1 of 14

 
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