2002-07-16 08:22:48

by Christian Ludwig

[permalink] [raw]
Subject: [PATCH] bzip2 compression for kernel 2.4 and ramdisk

Hi,

I have released the new version 1.4 of the bzip2 support patch.
You can find it at http://chrissicool.piranho.com/linux (sorry for the ads.)

This patch consists actually of two independant parts, which do _not_ belong
together in any case. The only reason why they cannot be split up is that
both are using the same decompression code for bzip2 at the same location.
The two parts are:

1. A kernel bzip2 compression support patch.
The kernel will be compressed with bzip2, if you choose the appropriate
option in the "General options" menu of the kernel configuration. Choosing
gzip compression is still possible. You can also choose the compression
level in nine steps, from very poor compression (level 1), which is not very
memory and speed intensive. A very strong compression (level 9) makes the
bzImage smaller, but uses a large amount of RAM for decompression and takes
longer. This part is architecture dependent and was implemented for i386
based PCs.

2. A ramdisk bzip2 compression support patch.
You can enable gzip or bzip2 compression (or even both) for the ramdisk in
the kernel configuration. The ramdisk driver will test the image, which
should be loaded. If it recognises a valid (and supported) ramdisk image, it
will load and decompress it. The ramdisk compression is optional. You even
can turn off compressed ramdisk support at all.

If you find bugs, please mail me.

Have fun.

- Christian Ludwig