initramfs with lzma compression

Geert Uytterhoeven Geert.Uytterhoeven at sonycom.com
Sat May 9 00:27:02 EST 2009


On Fri, 8 May 2009, Mirek23 wrote:
> I am looking for a patch which introduces lzma compression or suppresses the
> standard gzip compression for the initramfs.

It's already in the mainline kernel, e.g.:

commit 30d65dbfe3add7f010a075991dc0bfeaebb7d9e1
Author: Alain Knaff <alain at knaff.lu>
Date:   Sun Jan 4 22:46:17 2009 +0100

    bzip2/lzma: config and initramfs support for bzip2/lzma decompression
    
    Impact: New code for initramfs decompression, new features
    
    This is the second part of the bzip2/lzma patch
    
    The bzip patch is based on an idea by Christian Ludwig, includes support for
    compressing the kernel with bzip2 or lzma rather than gzip. Both
    compressors give smaller sizes than gzip.  Lzma's decompresses faster
    than bzip2.
    
    It also supports ramdisks and initramfs' compressed using these two
    compressors.
    
    The functionality has been successfully used for a couple of years by
    the udpcast project
    
    This version applies to "tip" kernel 2.6.28
    
    This part contains:
    - support for new compressions (bzip2 and lzma) in initramfs and
    old-style ramdisk
    - config dialog for kernel compression (but new kernel compressions
    not yet supported)
    
    Signed-off-by: Alain Knaff <alain at knaff.lu>
    Signed-off-by: H. Peter Anvin <hpa at zytor.com>

For older kernel versions, you can backport it by git cherry-picking the
commits you need.

With kind regards,

Geert Uytterhoeven
Software Architect
Techsoft Centre

Technology and Software Centre Europe
The Corporate Village · Da Vincilaan 7-D1 · B-1935 Zaventem · Belgium

Phone:    +32 (0)2 700 8453
Fax:      +32 (0)2 700 8622
E-mail:   Geert.Uytterhoeven at sonycom.com
Internet: http://www.sony-europe.com/

A division of Sony Europe (Belgium) N.V.
VAT BE 0413.825.160 · RPR Brussels
Fortis · BIC GEBABEBB · IBAN BE41293037680010



More information about the Linuxppc-dev mailing list