On Thu, 31 Dec 2009, Pei Lin wrote:
> 2009/12/27 sky knight <[email protected]>
> >
> > 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 [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ