Skip to contentSkip to conversation

initramfs with lzma compression

DISCUSSION Mirek23 2 participants 3 messages May 8, 2009

lore
Share & tools
lore

Mirek23

author
#0 lore raw

Dear All,

I am looking for a patch which introduces lzma compression or suppresses the standard gzip compression for the initramfs.

I would be grateful for any hint.

M.

Signature · 2 lines
View this message in context: http://www.nabble.com/initramfs-with-lzma-compression-tp23446869p23446869.html
Sent from the linuxppc-dev mailing list archive at Nabble.com.
#1 lore raw
Quoted 2 lines · 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 <[email protected]>
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)

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:   [email protected]
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

author
#2 lore raw
In reply to Mirek23

Thank you for the quick answer.

I am using the kernel version 2.6.23 with many other patches which require sometime to port to the latest kernel. I understand the it is possible to find the lzma patch also for older kernels in the git tree. Where can I find than the linuxppc git tree with the lzma patch.

Thanks

M.

Quoted 10 lines · Mirek23 wrote:

Dear All,

I am looking for a patch which introduces lzma compression or suppresses the standard gzip compression for the initramfs.

I would be grateful for any hint.

M.

Signature · 2 lines
View this message in context: http://www.nabble.com/initramfs-with-lzma-compression-tp23446869p23452009.html
Sent from the linuxppc-dev mailing list archive at Nabble.com.