From: Peter Korsgaard <jacmet@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] linux: Do not force GZIP initramfs compression
Date: Mon, 08 Jul 2013 14:57:08 +0200 [thread overview]
Message-ID: <878v1hfbvf.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <1349825696-28535-1-git-send-email-gvaxon@gmail.com> (Valentine Barshak's message of "Wed, 10 Oct 2012 03:34:56 +0400")
>>>>> "Valentine" == Valentine Barshak <gvaxon@gmail.com> writes:
Valentine> Initramfs compression does not make much sense for the architectures
Valentine> that support compressed kernel images because in this case the data
Valentine> would be compressed twice. This will eventually result in a bigger
Valentine> kernel image and time overhead when uncompressing it.
Valentine> The only reason to use compressed initramfs is to reduce memory
Valentine> usage when the kernel prepares rootfs, and both the unpacked
Valentine> filesystem and initramfs.cpio are present in the memory.
Valentine> Buildroot attempts to force GZIP compression for initramfs,
Valentine> however it doesn't always work because initramfs compression mode
Valentine> depends on RAM disk compression supported by the kernel.
Valentine> Thus, CONFIG_INITRAMFS_COMPRESSION_GZIP depends on CONFIG_RD_GZIP.
Valentine> If CONFIG_RD_GZIP is not set, setting GZIP initramfs compression
Valentine> will have no effect.
Valentine> Besides, the kernel also supports other compression methods,
Valentine> like BZIP2, LZMA, XZ and LZO. Forcing the good old GZIP does not
Valentine> really make much sense any more.
Valentine> This removes initramfs compression settings from Buildroot,
Valentine> so that the default value preset in the kernel config is used,
Valentine> which is CONFIG_INITRAMFS_COMPRESSION_NONE.
Valentine> If initramfs compression is still needed, it can be set
Valentine> in the kernel config (using make linux-menuconfig)
Sorry, this somehow seems to have fallen through the cracks - Committed,
thanks.
--
Bye, Peter Korsgaard
prev parent reply other threads:[~2013-07-08 12:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-09 23:34 [Buildroot] [PATCH] linux: Do not force GZIP initramfs compression Valentine Barshak
2012-10-10 7:26 ` Arnout Vandecappelle
2013-07-08 6:44 ` Kelvin Cheung
2013-07-08 12:57 ` Peter Korsgaard [this message]
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=878v1hfbvf.fsf@dell.be.48ers.dk \
--to=jacmet@uclibc.org \
--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