All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Yoshinori K. Okuji" <okuji@enbug.org>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: grub-install
Date: Mon, 25 Jul 2005 21:16:41 +0200	[thread overview]
Message-ID: <200507252116.41699.okuji@enbug.org> (raw)
In-Reply-To: <87hdein8r8.fsf@student.han.nl>

On Monday 25 July 2005 18:35, Marco Gerards wrote:
> So an example of a boot process is:
>
> - The BIOS loads the GRUB2 (boot.img) as it is stored in the MBR
>
> - GRUB2 in the MBR loads that 31KB into memory and jumps to it
>
> - That 31KB consists of the kernel (kernel.img) and some raw modules

In details, the core image consists of diskboot.img, kernel.img then zero or 
more modules. boot.img loads only the first sector (diskboot.img) from a 
disk, and diskboot.img loads the rest of the core image.

In the case of PXE, pxeboot.img is prepended to the core image, and simply 
jumps to the start address in kernel.img, because PXE ROM loads the whole 
core image from a network.

> - The kernel (rescue mode) starts and loads every module

The kernel initializes the system briefly, and decompresses the compressed 
part of the core image. After this, the kernel loads all pre-loaded modules 
from the memory.

> I hope this e-mail made clear how GRUB 2 basically works on the PC.
> I am not a PC expert and my English is not that good.  Hopefully
> someone can and will correct me if I was wrong so I will understand
> things better.  Hopefully Hollis' question is answered.

Your description is really good.

Well, the bootstrap on i386-pc is complicated, because PC BIOS sucks. On other 
architectures, this can be simplified very much.

Okuji



  reply	other threads:[~2005-07-25 19:23 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-24 18:44 grub-install Yoshinori K. Okuji
2005-07-25  2:04 ` grub-install Hollis Blanchard
2005-07-25  9:11   ` grub-install Yoshinori K. Okuji
2005-07-25 10:26     ` grub-install P
2005-07-25 13:12       ` grub-install P
2005-07-26 13:13         ` grub-install P
2005-07-26 19:28           ` grub-install Yoshinori K. Okuji
2005-07-25 15:15       ` grub-install Hollis Blanchard
2005-07-25 16:35         ` grub-install Marco Gerards
2005-07-25 19:16           ` Yoshinori K. Okuji [this message]
2005-07-26 18:41             ` grub-install Vincent Pelletier
2005-07-26 19:34               ` grub-install Yoshinori K. Okuji
2005-07-26 19:56                 ` grub-install Vincent Pelletier
2005-07-25 12:15 ` grub-install Marco Gerards
2005-07-25 19:25   ` grub-install Yoshinori K. Okuji
2005-07-25 13:06 ` grub-install Vincent Pelletier
2005-07-25 19:04   ` grub-install Yoshinori K. Okuji
  -- strict thread matches above, loose matches on Subject: below --
2008-05-27  5:06 grub-install E.R
2008-05-27 15:40 ` grub-install Pavel Roskin
2008-05-28  0:54 ` grub-install Gregg Levine
2008-05-28  6:00 grub-install E.R

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=200507252116.41699.okuji@enbug.org \
    --to=okuji@enbug.org \
    --cc=grub-devel@gnu.org \
    /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.