Kompai Paskaitos

Compiling your own Linux with Reiser4 support to your Lenny Debian GNU

Hello, How are you?

I have missed functionality in my Lenny kernel… (I think it’s for the first time…) So I needed to compile my own Linux for my Debian GNU to make if even better then it is.

I have received Linux/kernel package from here and reiser4 grab it from here.

wget -c
wget -c

Adding -c if file with the same name exists continue downloading.

Unpackage everything. and move to linux source dir:

tar -xf linux-2.6.32.tar.gz
tar -xf reiser4-for-2.6.32.patch.gz

or if you have bz2
bunzip2 reiser4-for-2.6.32.patch.bz2
cd linux-2.6.32

now we need to patch our new Linux with a super puper function patch 🙂 :

patch -p1 < ../reiser4-for-2.6.32.patch

So now we need to copy our working config file to linux directory:

cp /boot/config-`uname -r` ./.config

Now just make install of needed packages:

apt-get install kernel-package libncurses5-dev fakeroot wget bzip2 build-essential liblzo2-dev gzip

Then we need to enable Reiser4 in our kernel by executing:

make menuconfig
And selecting:

File systems —>
< *> Reiser4 (EXPERIMENTAL)

Now save config and the last but not the least step is making/compiling linux kernel:

make-kpkg clean
fakeroot make-kpkg –initrd –append-to-version=-custom kernel_image kernel_headers

How we just need to install these debs:

dpkg -i linux*.deb

What’s for RPM’s?

make binrpm-pkg

By Ruslanas Gžibovskis

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.