For information: printf from uncorrupted efiboot. ei.config_acpi: 0x66bfe014 ei.config_smbios: 0x66abef98 ei.fb_addr: 0x80000000 ei.fb_size: 0x420000 ei.fb_width: 1366 ei.fb_height: 768 ei.fb_pixpsl: 1408
On 2/2/16, Mark Kettenis <[email protected]> wrote: >> Date: Tue, 2 Feb 2016 21:32:13 +0100 (CET) >> From: Mark Kettenis <[email protected]> >> >> > Date: Tue, 2 Feb 2016 14:14:04 -0500 >> > From: James Hastings <[email protected]> >> > >> > Native screen size is 1366x768 >> > >> > Results: >> > ei.config_acpi: 0x66bfe014 >> > ei.config_smbios: 0x66abef98 >> > ei.fb_addr: 0x80000000 >> > ei.fb_size: 0x420000 >> > ei.fb_width: 1024 >> > ei.fb_height: 768 >> > ei.fb_pixpsl: 1024 >> >> Right. Looks like the firmware is giving us bogus values. But >> perhaps there is something subtly wrong with our bootloader code. > > Does the diff below help? > > Index: efiboot.c > =================================================================== > RCS file: /cvs/src/sys/arch/amd64/stand/efiboot/efiboot.c,v > retrieving revision 1.10 > diff -u -p -r1.10 efiboot.c > --- efiboot.c 26 Nov 2015 20:26:20 -0000 1.10 > +++ efiboot.c 2 Feb 2016 21:26:49 -0000 > @@ -526,7 +526,7 @@ efi_makebootargs(void) > bestsiz = gopsiz; > } > } > - if (bestmode >= 0 && conout->Mode->Mode != bestmode) { > + if (bestmode >= 0) { > status = EFI_CALL(gop->SetMode, gop, bestmode); > if (EFI_ERROR(status)) > printf("GOP setmode failed(%d)\n", status); >
