Re: seperation of decompression from bootstrap in linux kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 1/6/06, Deepak Joshi <deepak_cins@xxxxxxxxxxx> wrote:
> Hi all,
>
> while studing the linux boot procedure, i read that
> "it is good to seperate decompression from bootstrap
> of linux kernel." i am confused with this statement.
> if we are using boot-loader for transfering the
> control to starting location of kernel in ram why
> can't we add the decompression routine or job to
> boot-loader itself.
> why kernel does that ? plz explain also how kernel
> does the decompression of z or bzImage ( any links on
> same plz)
>
Take a look at the gunzip() function in lib/inflate.c
Also look at the same function in
   arch/xtensa/boot/lib/zmem.c
   arch/ppc/boot/openfirmware/common.c
   arch/ppc/boot/common/misc-common.c
   arch/powerpc/boot/main.c

Also take a look at the places where gunzip() is called from. A quick
'grep' through the kernel source will easily find those spots for you.

--
Jesper Juhl <jesper.juhl@xxxxxxxxx>
Don't top-post  http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please      http://www.expita.com/nomime.html

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux