From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] About i386 Architecture and Grub2
Date: Sat, 30 Aug 2014 09:28:06 +0200 [thread overview]
Message-ID: <20140830092806.6e5ff4cb@free-electrons.com> (raw)
In-Reply-To: <1408871597.42022.YahooMailNeo@web141705.mail.bf1.yahoo.com>
Dear lee choon gay,
On Sun, 24 Aug 2014 02:13:17 -0700, lee choon gay wrote:
> I took a look at the /boot/grub/grub.cfg from my PC, it also need initrd to boot up.
> I also saw some article from internet saying initrd is a must and the
> kernel init process is the one that responsible to switch from ram
> file system to real file system.
This is wrong. Don't believe what you read on "the Internet". An initrd
is an *optional* mechanism. Basically, you have several choices:
1/ The kernel directly mounts the real root filesystem, as indicated
by the root= kernel parameter. There is no initrd involved
whatsoever.
2/ There is an initrd, but it never switches to another root
filesystem. This is sometimes used for very small systems: it allows
the entire filesystem (contained in the initrd) to be loaded in RAM
by the bootloader. I typically use this when I do kernel
development: this way the root filesystem (contained in the initrd)
can be used by the kernel without the need of any network or
storage driver.
3/ There is an initrd, which does a part of the system initialization,
and then switches to the real root filesystem. This is what is used
by most desktop/server Linux distributions.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
prev parent reply other threads:[~2014-08-30 7:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-20 11:37 [Buildroot] About i386 Architecture and Grub2 lee choon gay
2014-08-20 12:10 ` Thomas Petazzoni
2014-08-21 2:31 ` lee choon gay
2014-08-21 13:03 ` Thomas Petazzoni
2014-08-24 9:13 ` lee choon gay
2014-08-30 6:35 ` lee choon gay
2014-08-30 7:30 ` Thomas Petazzoni
2014-08-30 14:52 ` lee choon gay
2014-08-30 7:28 ` Thomas Petazzoni [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140830092806.6e5ff4cb@free-electrons.com \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.