From: "Stefan Fröberg" <stefan.froberg@petroprogram.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 3/3] initramfs: add support for LZO and XZ compression methods
Date: Tue, 22 Jan 2013 02:34:11 +0200 [thread overview]
Message-ID: <50FDDE83.6080206@petroprogram.com> (raw)
In-Reply-To: <50FDD2DC.8050004@zacarias.com.ar>
22.1.2013 1:44, Gustavo Zacarias kirjoitti:
> On 01/21/2013 08:38 PM, Stefan Fr?berg wrote:
>
>> You will probably need --check=crc32 with that xz-compression.
>> I have had difficulties booting linux 3.3.1 kernel (don't know about
>> later versions)
>> with xz-compressed initramfs without that option.
> You are 100% correct.
> It didn't fail me during testing because buildroot is never using any
> compressed cpio archive, thus the previous options (gzip, bzip2) were
> never used.
Yeah.
It really doesn't make sense to compress if the initramfs file in
question is embedded directly into
kernel (which at least version 2012.05 and earlier buildroot did)
because usually the kernel
itself would be also compressed. So in that specific case doing double
compression
(once for the initramfs file embedded into kernel and then again for the
whole kernel+initramfs thing)
would be waste of time.
But for initramfs files *outside* kernel these two new compression
methods are very usefull.
lzo being just barely better in compression than gzip but fastest
decompression of all,
while xz being the best compression.
(So lzo replaces gzip and xz replaces bzip2 and lzma)
I use xz for kernel itself and also for outside initramfs
> I noticed when checking the bzImage size in a tweaked qemu_x86_defconfig
> test run that it never changed much.
> New patchset will follow that fixes this and the previous issue.
> Regards.
Stefan
next prev parent reply other threads:[~2013-01-22 0:34 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-21 22:55 [Buildroot] [PATCH 1/3] lzop: add LZOP definition for the host variant Gustavo Zacarias
2013-01-21 22:55 ` [Buildroot] [PATCH 2/3] xz: add XZ " Gustavo Zacarias
2013-01-21 22:55 ` [Buildroot] [PATCH 3/3] initramfs: add support for LZO and XZ compression methods Gustavo Zacarias
2013-01-21 23:38 ` Stefan Fröberg
2013-01-21 23:44 ` Gustavo Zacarias
2013-01-22 0:34 ` Stefan Fröberg [this message]
2013-01-22 17:05 ` Thomas Petazzoni
2013-01-22 18:17 ` Stefan Fröberg
2013-01-24 7:11 ` Arnout Vandecappelle
2013-01-24 11:55 ` Stefan Fröberg
2013-01-24 10:48 ` Gustavo Zacarias
2013-01-24 12:08 ` Stefan Fröberg
2013-01-24 12:13 ` Gustavo Zacarias
2013-01-24 7:09 ` Arnout Vandecappelle
2013-01-24 10:57 ` Gustavo Zacarias
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50FDDE83.6080206@petroprogram.com \
--to=stefan.froberg@petroprogram.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox