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

Notices


Reply
  Search this Thread
Old 02-05-2014, 08:27 AM   #1
embLinux
Member
 
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 ?

greetings

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

Rep: Reputation: 232Reputation: 232Reputation: 232
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, 01:56 AM   #3
embLinux
Member
 
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, 07:00 AM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
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.
  


Reply



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 12:21 AM
Slax with SquashFS-4 new compression algorithm and layered compression ratios? lincaptainhenryjbrown Linux - Software 2 06-19-2009 05:29 PM
Buildroot www_linux Linux - Newbie 4 01-21-2009 10:33 PM
OpenEmbedded or BuildRoot ? i_PingGuo Linux - Embedded & Single-board computer 0 01-06-2009 01:13 AM
just cant understand permission modes nocturnal *BSD 6 12-16-2003 08:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

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

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