Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 02-05-2014, 09:27 AM   #1
Registered: Dec 2013
Distribution: Mint
Posts: 54

Rep: Reputation: Disabled
Lightbulb Want to understand Buildroot - the 3 compression modes

Hi there,

I'm using buildroot to generate my images and for sure there is the option of compression with the help of different methods (LZO, LZMA, gzip, ...).

So far i found these 3 compression options in buildroot (v. 2013.11):

- Kernel compression Mode (in make linux-menuconfig)

- Built-in initramfs compression mode (in make linux-menuconfig)

- Compression method for the .cpio root filesystem ( (in make menuconfig)

my questions are:
1 ) what is the difference of these modes (like is just the kernel compressed? is the whole image at once compressed, and where are the pros and cons between these 3 mentioned modes) and
2 ) why am I forced to chose between 3 methods for the kernel compression, instead of leaving it uncompressed ?


Last edited by embLinux; 02-05-2014 at 09:57 AM.
Old 02-24-2014, 02:59 PM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,575

Rep: Reputation: 181Reputation: 181
Those options are in fact three different ones. The first is of the compression of the kernel itself and it's the only one that deals with the kernel itself. The second is about the compression of the file system included in the kernel image (the kernel image may be compressed or not). The third option is about the additional file system. I'd recommend you to compress at least the external file system if you have one: this one may be really big if you choose to install too many packages.
1 members found this post helpful.
Old 02-25-2014, 02:56 AM   #3
Registered: Dec 2013
Distribution: Mint
Posts: 54

Original Poster
Rep: Reputation: Disabled
Thank you, that explains my first question.

But is there a reasonable issue to be forced to compress a kernel instead of leaving it uncompressed? I can't think that this can be some kind of a bug.
Old 02-25-2014, 08:00 AM   #4
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 8,606
Blog Entries: 4

Rep: Reputation: 2997Reputation: 2997Reputation: 2997Reputation: 2997Reputation: 2997Reputation: 2997Reputation: 2997Reputation: 2997Reputation: 2997Reputation: 2997Reputation: 2997
I believe that it is fairly routine to compress the kernel, and that it is often necessary to compress "initramfs" because (IIRC ...) architecturally it was "a 3-1/2-inch floppy disk drive."
1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Buildroot Error sunr2007 Linux - Embedded & Single-board computer 0 01-06-2010 01:21 AM
Slax with SquashFS-4 new compression algorithm and layered compression ratios? lincaptainhenryjbrown Linux - Software 2 06-19-2009 06:29 PM
Buildroot www_linux Linux - Newbie 4 01-21-2009 11:33 PM
OpenEmbedded or BuildRoot ? i_PingGuo Linux - Embedded & Single-board computer 0 01-06-2009 02:13 AM
just cant understand permission modes nocturnal *BSD 6 12-16-2003 09:52 AM > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 02:13 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration