Hi, I am a newbie into kernel booting process. I have read few things about boot process of the linux kernel. I am stuck at few things, which I am confident, someone from the list might help on - - If I pass a ramfs image as an intrd paramter from the bootloader (say grub), then will the kernel treat this as a ramfs image only? - initrd image is also, packed using cpio archive, then how does the kernel come to know that this is an initrd ot initramfs image. Is there some type information included and if yes, how can I see that from a linux command. - While building initrd/initramfs, how are the things to be included into the image chosen. Thanks in advance. P.S. If this is not the right place to post the question, could you please point a more appropriate list. Regards, Prashant Batra -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.zytor.com/pipermail/klibc/attachments/20110704/7e346675/attachment.html>
hello, On Mon, Jul 04, 2011 at 06:05:07PM +0530, Prashant Batra wrote:> > I am a newbie into kernel booting process. > I have read few things about boot process of the linux kernel. I am stuck at > few things, which I am confident, someone from the list might help on - > > > - If I pass a ramfs image as an intrd paramter from the bootloader (say > grub), then will the kernel treat this as a ramfs image only?no. it will check if initramfs or initrd and consequently unpack.> - initrd image is also, packed using cpio archive, then how does the > kernel come to know that this is an initrd ot initramfs image. Is there some > type information included and if yes, how can I see that from a linux > command.initrd is a fs image, like cramfs or ext2 or such, so aboves is wrong. and please you don't want initrd, they are as dead as 2.4 kernel.> - While building initrd/initramfs, how are the things to be included into > the image chosen.see for example how kinit does it in klibc or initramfs-tools git clone git://git.kernel.org/pub/scm/libs/klibc/klibc.git or git clone git://anonscm.debian.org/kernel/initramfs-tools.git (Aboves assume you have git installed)> Thanks in advance. > > P.S. If this is not the right place to post the question, could you please > point a more appropriate list.you might want to look at lwn.net and initramfs for the initial discussions, current mailing list is initramfs at vger.kernel.org kind regards -- maks
On Tue, Jul 5, 2011 at 1:45 PM, maximilian attems <max at stro.at> wrote:> Hello, > > please keep the mailinglist on Cc, this was *not* a private conversation. > > Some people including me may consider topposting as impolite. > > > On Mon, Jul 04, 2011 at 11:33:10PM +0530, Prashant Batra wrote: > > Thanks Maks, > > > > One more doubt- > > > > Can I have the same ramfs image be used either as built-into the > kernel(part > > of vmlnuz) or supplied externally using initrd command on grub and hence > as > > kernel parameter? > > > > this belongs more to kernelnewbies, a bit of googling would have > pointed you to INITRAMFS_SOURCE in usr/Kconfig of your linux sourse. > > Point taken and will CC all the queries.I am aware that we can give the ramfs source in the usr/Kconfig. But my question was, does the same ramfs image which I am including in vmlinuz by specifying it in the Kconfig, be also passed explicitly to the kernel if not included into the kernel image. i.e. I can build a ramfs image and use it internally to the kernel or external to the kernel Regards, Prashant Batra> kind regards > > -- > maks >-- Prashant Batra Follow the dreams!! -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.zytor.com/pipermail/klibc/attachments/20110705/79d5df40/attachment.html>