LinuxQuestions.org
Help answer threads with 0 replies.
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 01-10-2019, 11:12 PM   #1
ayyasprings
Member
 
Registered: Aug 2014
Posts: 118

Rep: Reputation: Disabled
Doubt in decompressing kernel image.


Hi,

As per my understanding in the boot process,for example specific to arm architecture,

the first piece of code to be executed is arch/arm/boot/compressed/head.S, in which a "start" symbol is present. Bootloader will jump to this address. There might be some architecture specific assembly files also in the same path, which will get executed.

After which the head.S code will invoke arch/arm/boot/compressed/misc.c -decompress_kernel routine to decompress the kernel image.

My doubt is the file arch/arm/boot/compressed/head.S is also a part of linux kernel and will it not need to be decompressed and can it be executed straight away?

please reply!
 
Old 01-13-2019, 01:47 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
There must be a decompression routine in the kernel so that it can boot the compressed image. This is the code you mention and well part of the kernel, but a very early stage.
 
  


Reply


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
Problem decompressing kernel galapogos Linux - Kernel 8 01-21-2009 07:31 PM
hangs at “decompressing Linux OK... Loading Kernel” gosport1 Linux - Laptop and Netbook 1 11-17-2006 01:19 PM
Kernel 2.6 hanging decompressing DuuhMojo Linux - Newbie 4 06-09-2005 12:17 PM
Blank screen after decompressing kernel imrel Linux - General 2 09-06-2004 01:21 PM
Blank screen after decompressing kernel imrel Linux - Software 1 08-26-2004 06:41 PM

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

All times are GMT -5. The time now is 02:10 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