[Buildroot] [PATCH] linux: Do not force GZIP initramfs compression

Kelvin Cheung keguang.zhang at gmail.com
Mon Jul 8 06:44:45 UTC 2013


2012/10/10 Arnout Vandecappelle <arnout at mind.be>

> On 10/10/12 01:34, Valentine Barshak wrote:
>> Initramfs compression does not make much sense for the architectures
>> that support compressed kernel images because in this case the data
>> would be compressed twice. This will eventually result in a bigger
>> kernel image and time overhead when uncompressing it.
>> The only reason to use compressed initramfs is to reduce memory
>> usage when the kernel prepares rootfs, and both the unpacked
>> filesystem and initramfs.cpio are present in the memory.
>> Buildroot attempts to force GZIP compression for initramfs,
>> however it doesn't always work because initramfs compression mode
>> depends on RAM disk compression supported by the kernel.
>> If CONFIG_RD_GZIP is not set, setting GZIP initramfs compression
>> will have no effect.
>> Besides, the kernel also supports other compression methods,
>> like BZIP2, LZMA, XZ and LZO. Forcing the good old GZIP does not
>> really make much sense any more.
>> This removes initramfs compression settings from Buildroot,
>> so that the default value preset in the kernel config is used,
>> If initramfs compression is still needed, it can be set
>> in the kernel config (using make linux-menuconfig)
>> Signed-off-by: Valentine Barshak<gvaxon at gmail.com>
> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be>
>  I especially like the extensive commit message!
>  Regards,
>  Arnout
> --
> Arnout Vandecappelle                               arnout at mind be
> Senior Embedded Software Architect                 +32-16-286540
> Essensium/Mind                                     http://www.mind.be
> G.Geenslaan 9, 3001 Leuven, Belgium                BE 872 984 063 RPR
> Leuven
> LinkedIn profile: http://www.linkedin.com/in/**arnoutvandecappelle<http://www.linkedin.com/in/arnoutvandecappelle>
> GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
> ______________________________**_________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/**mailman/listinfo/buildroot<http://lists.busybox.net/mailman/listinfo/buildroot>

Best Regards!
Kelvin Cheung
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130708/3008c21c/attachment.html>

More information about the buildroot mailing list