LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-17-2010, 06:14 AM   #1
P5music
Member
 
Registered: Nov 2010
Posts: 111

Rep: Reputation: 0
kernel not compressed


Hi,
I ask whether grub is able to load a non-compressed kernel and initrd, or it is mandatory to compress and why.
 
Old 12-17-2010, 09:56 AM   #2
foodown
Member
 
Registered: Jun 2009
Location: Texas
Distribution: Slackware
Posts: 611

Rep: Reputation: 221Reputation: 221Reputation: 221
Usually, when a non-compressed image is used as a boot time kernel, it is in an embedded device, where processor resources to uncompress the image are scarce.

http://www.linuxquestions.org/questi...oblems-546420/

To my knowledge, grub will not load an uncompressed image without a source patch. There are several other, simpler boot loaders out there that will, however.

As to why, well, that's a more fertile subject.

The most important reason is the way in which most PCs read the image from the disk before decompression and booting. (Through the BIOS with no OS, so usually the most basic transfer mode that the controller can do ... SLOW.) Compressed is smaller and smaller is quicker. A lot of newer SATA controllers aren't hampered by this as much, but it still seems to be an issue, even if it's a smaller one.

You should see my old ThinkPad boot up Slackware-current ... It takes a total of 134 seconds to reach an X11 login screen. 96 of those 134 seconds are spent waiting for the IDE controller to load up the compressed kernel image. It's painful.

The second most important reason is a legacy one. Older PCs (386, 486, Pentium, Pentium II, etc) could only read the first so many cylinders of the hard drive when the BIOS was in charge of disk access. For this reason, it was paramount that the kernel image, however large it actually was, fit into the first few megabytes of the disk, hence the compression.

Last edited by foodown; 12-17-2010 at 10:04 AM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compressed Core Dump Generation in Kernel 2.6 andersonfobr Linux - Software 1 02-21-2011 01:09 AM
How to build a non compressed kernel srchittem Linux - Newbie 1 06-29-2010 01:37 AM
Missing or corrupted compressed kernel file arpflux Linux - Kernel 2 03-08-2007 12:45 AM
path and filename of compressed kernel ? ohernandez Linux - General 3 05-29-2002 06:53 AM
using compressed kernel blistfix Linux - Newbie 2 08-22-2001 10:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

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