Opened 3 years ago

Closed 2 years ago

#17375 closed bug (fixed)

UEFI Boot Loader: Black screen with Haiku revisions > 55219

Reported by: andreas_dr Owned by: nobody
Priority: blocker Milestone: R1/beta4
Component: System/Boot Loader/EFI Version: R1/Development
Keywords: Cc: jessicah, kallisti5
Blocked By: Blocking:
Platform: All

Description (last modified by andreas_dr)

Hi,

Seems like bootloader with UEFI is broken with rev > 55219 as it only shows a black screen. Also pressing space does not help.

I attach some files related to my computer as reference that might help to find out whats going on.

Also the computer does not seem to be hanging as I accepts NUMLOCK and changes NUMLOCK lamp. :D

It just shows a black screen.

Attachments (4)

haiku-syslog.txt (261.0 KB ) - added by andreas_dr 3 years ago.
debian-dmesg.txt (81.8 KB ) - added by andreas_dr 3 years ago.
debian-gdisk.txt (6.2 KB ) - added by andreas_dr 3 years ago.
haiku_loader.efi (641.4 KB ) - added by jessicah 2 years ago.
V2 haiku_loader.efi

Download all attachments as: .zip

Change History (24)

by andreas_dr, 3 years ago

Attachment: haiku-syslog.txt added

by andreas_dr, 3 years ago

Attachment: debian-dmesg.txt added

by andreas_dr, 3 years ago

Attachment: debian-gdisk.txt added

comment:1 by andreas_dr, 3 years ago

Description: modified (diff)

comment:2 by andreas_dr, 3 years ago

Description: modified (diff)

comment:3 by waddlesplash, 3 years ago

Component: - GeneralSystem/Boot Loader/EFI

comment:4 by Maxis, 2 years ago

I confirm this bug. In my case even num lock and caps lock don't work. I have machine CPU: AMD Athlon 5350(4 Cores), MB: ASRock AM1B-ITX, GPU: AMD Radeon RX 550 2GiB, RAM: 16 GiB. I bisected problem and found out that in hrev55299 UEFI bootloader doesn't work but working in hrev55296. May be it related to X512's commit https://git.haiku-os.org/haiku/commit/?id=f1fa58bfbc7578fd0c8ac2c974dd2c7f3be7bec4

comment:5 by tqh, 2 years ago

I know at least one thing with mmu regions in that change was fixed later on. Can you try recent hrevs efi loaders?

comment:6 by Maxis, 2 years ago

I retested with latest hrev55754 and the bug is still exist.

comment:7 by waddlesplash, 2 years ago

Cc: jessicah kallisti5 added

hrev55216 is the suspect commit. That caused problems on my hardware in its original version, but I think it has been fixed since.

CC jessicah, kallisti5.

comment:8 by waddlesplash, 2 years ago

Milestone: UnscheduledR1/beta4

comment:9 by pulkomandy, 2 years ago

Priority: normalblocker

Marking as blocker as it's a non-booting system regression.

comment:10 by kallisti5, 2 years ago

This issue isn't easily reproducible.. but we have a few data points:

  • andreas_dr
    • Host: AMD Ryzen 9 3950X 16-Core Processor (2019), MB: "X370 Gaming X"
    • Description: "Only shows black screen"
  • Maxis
    • Host: AMD Athlon 5350(4 Cores) (2015) , MB: ASRock AM1B-ITX
    • Description: "In my case even num lock and caps lock don't work"

I think we need to build confidence about a few things:

  • "black screen" could be a failed framebuffer or radeon_hd driver. We need clarification around behavior. Do the bootloader icons show up? What troubleshooting steps have been attempted?
  • How is haiku being booted? USB, CD, NVMe, etc?

I have a Ryzen 9 5950X and Haiku EFI is booting just fine via EFI. (I need to confirm the EFI loader version though)

Last edited 2 years ago by kallisti5 (previous) (diff)

comment:11 by tqh, 2 years ago

If anyone can compile the bootloader, try changing this line: https://github.com/haiku/haiku/blob/d223f9d9c2967e2055bf68b22f6a5a4e22276065/src/system/boot/platform/efi/serial.cpp#L54 to

if (sSerialUsesEFI) {
 if (sSerial == NULL) return;

comment:12 by jessicah, 2 years ago

For Andreas, it's definitely the partitioning change that introduced the failure, I've already confirmed that with him, by providing a number of loader variants in the past.

comment:14 by jessicah, 2 years ago

Actually, I don't think that previous one is the right fix, but do try it anyway.

My next fix to try: https://dev.haiku-os.org/raw-attachment/ticket/17375/haiku_loader.efi

by jessicah, 2 years ago

Attachment: haiku_loader.efi added

V2 haiku_loader.efi

in reply to:  10 comment:15 by Maxis, 2 years ago

Replying to kallisti5:

  • "black screen" could be a failed framebuffer or radeon_hd driver. We need clarification around behavior. Do the bootloader icons show up? What troubleshooting steps have been attempted?
  • How is haiku being booted? USB, CD, NVMe, etc?

Bootloader's icons didn't show up. Im my case pressing space button did not work. Haiku booted with USB

Last edited 2 years ago by Maxis (previous) (diff)

in reply to:  14 comment:16 by Maxis, 2 years ago

Replying to jessicah:

Actually, I don't think that previous one is the right fix, but do try it anyway.

My next fix to try: https://dev.haiku-os.org/raw-attachment/ticket/17375/haiku_loader.efi

This fix did not help in my case. I renamed dowloaded haiku_loader.efi into bootx64.efi and replaced original bootx64.efi located at /haiku esp/efi/boot/bootx64.efi

comment:17 by Maxis, 2 years ago

jessicah
I checked latest hrev56168 and bug was fixed. Thanks!

comment:18 by korli, 2 years ago

Resolution: fixed
Status: newclosed

fixed in hrev56167

comment:19 by jessicah, 2 years ago

Resolution: fixed
Status: closedreopened

That was an unrelated fix, will await confirmation from Andreas.

comment:20 by jessicah, 2 years ago

Resolution: fixed
Status: reopenedclosed

Says it's working with current nightly, so closing, but the commit that supposedly broke booting shouldn't have been fixed by hrev56167.

Note: See TracTickets for help on using tickets.