[haiku-development] Re: GPT boot loader for Haiku (the start of)

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Wed, 10 Jun 2009 12:00:41 +0200 CEST

"Michael Lotz" <mmlr@xxxxxxxx> wrote:
> > André Braga <meianoite@xxxxxxxxx> wrote:
> > > I have only a superficial understanding of x86 assembly, and BIOS
> > > calls are just not an area I have any knowledge of. Could some
> > > kind
> > > soul please check what the hell am I missing here?
> > I really wonder what should be the purpose of this. Once you load
> > any
> > assembly (ie. your pmbr), why not the actual stage1 boot loader
> > directly?
> This code is not part of the Haiku partition. It's placed at sector
> 0,
> the usual MBR location. But for EFI this becomes a protective MBR
> without function. The thing is, that if you use a GPT partitioned
> drive,
> but you do not actually use EFI, the BIOS will still load the boot
> code
> from that (protective) MBR. So you need boot code in the MBR that
> will
> chainload your actual OS partition. If you use EFI this is not
> necessary, as the MBR code is ignored and you do the OS selection
> through the firmware. This code is much like the traditional MBR boot
> code that simply chainloaded the active partition, just it
> understands
> the GPT instead.

Alright, I got it know, thanks! But then we'd also want to have the
boot manager boot code adapted for GPT, too, right?

Bye,
   Axel.


Other related posts: