Re: Location of source file

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

 



On Thu, 31 Dec 2009, Pei Lin wrote:

> 2009/12/27 sky knight <sky_knight02@xxxxxxxxx>
> >
> > Hi guys,
> > Can someone point me to right source files where the kernel loads initrd to memory.
> i just think that's the bootloader's work as GRUB stage 2.
> Check the implementation about the command "initrd" in the GRUB.

  you might also be thinking of the kernel source file
init/initramfs.c, the routine populate_rootfs(), where the early
kernel processing assumes that the initrd image is defined by the two
addresses initrd_start and initrd_end.

  if you look at that function, you'll see right near the top where a
call is made to unpack_to_rootfs() to extract the initrd image.

rday
--

========================================================================
Robert P. J. Day                               Waterloo, Ontario, CANADA

            Linux Consulting, Training and Kernel Pedantry.

Web page:                                          http://crashcourse.ca
Twitter:                                       http://twitter.com/rpjday
========================================================================

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at 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