On Thu, 26 Nov 2015 11:10:33 -0500 "Joe Gidi" <j...@entropicblur.com> wrote: > On Thu, November 26, 2015 10:59 am, YASUOKA Masahiko wrote: >> On Thu, 26 Nov 2015 09:57:12 -0500 >> "Joe Gidi" <j...@entropicblur.com> wrote: >>> On Thu, November 26, 2015 5:20 am, YASUOKA Masahiko wrote: >>>> On Wed, 11 Nov 2015 15:33:06 -0500 >>>> "Joe Gidi" <j...@entropicblur.com> wrote: >>>>> I recently installed a UEFI-capable Asus M5A97 LE R2.0 motherboard in >>>>> one >>>>> of my systems and tried to boot the November 11th amd64 miniroot58.fs >>>>> image to test UEFI booting. I get to the bootloader, but it appears to >>>>> fail while loading the kernel and goes into a reboot loop. Here's >>>>> everything I see on screen before it reboots: >>>>> >>>>> probing: pc0 mem[640K 2984M 4M 48K 5103M] >>>>> disk: hd0 hd1 hd2* >>>>>>> OpenBSD/amd64 EFIBOOT 3.29 >>>>> boot> >>>>> cannot open hd0a:/etc/random.seed: No such file or directory >>>>> booting hd0a:/bsd:3273216+1394144+2409472+0+569344=0x74d238 >>>> >>>> I'd like to figure out where the efiboot is stopping. Can you replace >>>> the BOOTX64.EFI in the miniroot58.fs and check the output? >>> >>> Sure, I now get these two lines after the 'booting' line: >>> >>> GOP setmode failed(7) >>> Hit any key to reboot >> >> The bootloader changs the video resolution before start the kernel. >> It seems to fail. "GOP", Graphic Output Protocol, returns an error. >> 7 means EFI_DEVICE_ERROR. >> >>> Please let me know if I can do any further testing, and thank you for >>> looking into this. >> >> Can you provide the result of "machine video" and try to change the >> video mode to the best and some others. >> >> >> And also please try the diff below. > > This appears to fix it. I did not have to change the video mode. Output > from the bootloader:
UEFI seems to have refused changing the video mode since it isn't to change. Can you try this again? (I'd like to verify whether the assumption above is correct). compiled: http://yasuoka.net/~yasuoka/BOOTX64.EFI (updated) diff: Index: efiboot/efiboot.c =================================================================== RCS file: /cvs/src/sys/arch/amd64/stand/efiboot/efiboot.c,v retrieving revision 1.9 diff -u -p -r1.9 efiboot.c --- efiboot/efiboot.c 8 Nov 2015 00:17:29 -0000 1.9 +++ efiboot/efiboot.c 26 Nov 2015 16:21:23 -0000 @@ -526,10 +526,10 @@ efi_makebootargs(void) bestsiz = gopsiz; } } - if (bestmode >= 0) { + if (bestmode >= 0 && conout->Mode->Mode != bestmode) { status = EFI_CALL(gop->SetMode, gop, bestmode); if (EFI_ERROR(status)) - panic("GOP setmode failed(%d)", status); + printf("GOP setmode failed(%d)\n", status); } gopi = gop->Mode->Info; --yasuoka