Albert
09-08-2004, 05:55 PM
As some of you might have noticed, someone made a cloop kernel patch (http://www.telecentros.sp.gov.br/capitulino/patches/linux/2.6/cloop/2.6.7/cloop_v5.patch) against linux-2.6.7.
To apply the patch, download it, stand in the linux-2.6.7 source dir and use the patch program:
# cd /usr/src/linux-2.6.7
# patch -p1 < ../cloop_v5.patch
Then configure the kernel as usual (ie make menuconfig) and choose Device Drivers->Block Devices->Compressed Loopback device support as a module <M>. And then build the kernel as usual. I use make-kpkg clean ; make-kpkg --revision=1 kernel_image. That creates a kernel_image .deb that can be installed with dpkg. The good thing is that cloop.ko will also be included in that .deb file and there's no need to compile it separately.
For kernel linux-2.6.8.1 there is a small change in a .h file which changes 2 lines. The following patch works agains linux-2.6.8.1:
cloop_linux-2.6.8.1.patch.gz (http://www.biosensor.se/biosens/patches/2.6.8.1/cloop_linux-2.6.8.1.patch.gz).
Apply it with patch:
# cd /usr/src/linux-2.6.8.1
# zcat ../cloop_linux-2.6.8.1.patch.gz | patch -p1
If anymody is new to compiling the kernel, here is the whole procedure:
Download linux-2.6.8.1.tar.bz2 (http://ftp.sunet.se/pub/Linux/kernels/v2.6/linux-2.6.8.1.tar.bz2) into /usr/src.
Unpack it:
# cd /usr/src
# tar jxvf linux-2.6.8.1.tar.bz2
Download cloop_linux-2.6.8.1.patch.gz (http://www.biosensor.se/biosens/patches/2.6.8.1/cloop_linux-2.6.8.1.patch.gz) into /usr/src.
Apply the patch:
# zcat cloop_linux-2.6.8.1.patch.gz | patch -p0
Configure the kernel:
# cd linux-2.6.8.1
# make menuconfig
Build the kernel:
# make-kpkg clean
# make-kpkg --revision=1 --append-to-version="-cloop" kernel_image
The append-to-version argument will append -cloop to the kernel name (will be visible when running uname -r).
Now the kernel-image2.6.8.1*.deb file is created and can be installed inside the chrooted knoppix environment with dpkg -i. Remember to also rebuild minirt26.gz with the new modules (from /lib/modules inside the chrooted environment).
--Albert
To apply the patch, download it, stand in the linux-2.6.7 source dir and use the patch program:
# cd /usr/src/linux-2.6.7
# patch -p1 < ../cloop_v5.patch
Then configure the kernel as usual (ie make menuconfig) and choose Device Drivers->Block Devices->Compressed Loopback device support as a module <M>. And then build the kernel as usual. I use make-kpkg clean ; make-kpkg --revision=1 kernel_image. That creates a kernel_image .deb that can be installed with dpkg. The good thing is that cloop.ko will also be included in that .deb file and there's no need to compile it separately.
For kernel linux-2.6.8.1 there is a small change in a .h file which changes 2 lines. The following patch works agains linux-2.6.8.1:
cloop_linux-2.6.8.1.patch.gz (http://www.biosensor.se/biosens/patches/2.6.8.1/cloop_linux-2.6.8.1.patch.gz).
Apply it with patch:
# cd /usr/src/linux-2.6.8.1
# zcat ../cloop_linux-2.6.8.1.patch.gz | patch -p1
If anymody is new to compiling the kernel, here is the whole procedure:
Download linux-2.6.8.1.tar.bz2 (http://ftp.sunet.se/pub/Linux/kernels/v2.6/linux-2.6.8.1.tar.bz2) into /usr/src.
Unpack it:
# cd /usr/src
# tar jxvf linux-2.6.8.1.tar.bz2
Download cloop_linux-2.6.8.1.patch.gz (http://www.biosensor.se/biosens/patches/2.6.8.1/cloop_linux-2.6.8.1.patch.gz) into /usr/src.
Apply the patch:
# zcat cloop_linux-2.6.8.1.patch.gz | patch -p0
Configure the kernel:
# cd linux-2.6.8.1
# make menuconfig
Build the kernel:
# make-kpkg clean
# make-kpkg --revision=1 --append-to-version="-cloop" kernel_image
The append-to-version argument will append -cloop to the kernel name (will be visible when running uname -r).
Now the kernel-image2.6.8.1*.deb file is created and can be installed inside the chrooted knoppix environment with dpkg -i. Remember to also rebuild minirt26.gz with the new modules (from /lib/modules inside the chrooted environment).
--Albert