[haiku-development] Re: Debugging boot failures.

  • From: Jessica Hamilton <jessica.l.hamilton@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Fri, 09 Jun 2017 15:30:57 +0000

On Fri, 9 Jun 2017, 4:12 AM Bruno Albuquerque <bga@xxxxxxxxxxxxx> wrote:

Yeah, that seems to be the case.

So, I burned the ISO to a USB stick (raw device, not to a specific
partition) and now my BIOS Setup actually shows the UEFI entry in the USB
drive and I was able to boot! At  least kinda....

Now I get to the boot loader  but as soon as I select the Haiku boot
partition and starts booting it, I get the greyed out icons and nothing
more. Not even the kernel icon lights up.


Hmm, that sounds like it's failing the transition from bootloader to kernel
in this instance.

The kernel is responsible for lighting up the icons.

One of the tricks I used to debug without serial output was to draw pixels
to the frame buffer.

I tried enabling debugging and disabling memory above 4 Gb (this machine
has 64 Gb, in case it matters) but then the machine reboots right after the
grayed out icons show up.

I guess, at least for now, I will have to use a VM. Unless any of you can
think of anything else I could try.

On Wed, Jun 7, 2017 at 10:28 PM Jessica Hamilton <
jessica.l.hamilton@xxxxxxxxx> wrote:

I don't think a DVD will work at this stage, requires an extra boot track
per El Torito spec.

Interesting that UEFI doesn't work, as only high level loader code is
shared.

Are you sure it's actually booting off USB in UEFI mode? I think Alex's
image also includes the BIOS loader.

You may want to try a FAT formatted USB drive with nothing else on it,
and copy haiku_loader.efi to it as EFI/BOOT/BOOTX64.EFI and boot just that.
It should drop you into the boot menu automatically.

Building with x86_64 target is:
HAIKU_BOOT_PLATFORM=efi jam -q haiku_loader.efi

On Thu, 8 Jun 2017, 3:25 PM Bruno Albuquerque <bga@xxxxxxxxxxxxx> wrote:

FYI, it did not work. I am seeing exactly the same problem with the UEFI
image. Does it make a difference if I write it to a DVD or a USB drive?

On Wed, Jun 7, 2017, 1:50 PM Bruno Albuquerque <bga@xxxxxxxxxxxxx>
wrote:

On Wed, Jun 7, 2017 at 1:48 PM Jessica Hamilton <
jessica.l.hamilton@xxxxxxxxx> wrote:

On 8 June 2017 at 08:45, Bruno Albuquerque <bga@xxxxxxxxxxxxx> wrote:
As I understand it, a recent build will already have uefi, no? Or is
it
committed but not enabled in builds? I will try this build you
mentioned
when I get home.

It's committed, but there's no build automation for an anyboot image
with the UEFI loader at this point. It's a little bit tricky to set up
the Jamfiles and such... Alex's image Ralf linked to should work fine.


Great. I will try it. If it really works and I want to build a newer
image with efi enabled, do I have to do anything specific?


Other related posts: