LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Doubt in decompressing kernel image. (https://www.linuxquestions.org/questions/linux-kernel-70/doubt-in-decompressing-kernel-image-4175645980/)

ayyasprings 01-10-2019 11:12 PM

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!

Mara 01-13-2019 01:47 PM

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.


All times are GMT -5. The time now is 09:35 AM.