Ignore BIOS disk geometry for EFI bootsteap
Emmanuel Dreyfus <[email protected]> Tue, 5 Oct 2021 08:49:34 +0000
| Newsgroups | gmane.os.netbsd.ports.i386 |
|---|---|
| Message-ID | <YVwRniI3mM/[email protected]> |
Hello I just encountered a boostrap crash on a recenrt mac. The machine seems to only be able to boot over EFI, and it crashes inside bi_getbiosgeom() because it gets garbage data. Is BIOS disk geometry of any use when booting over EFI? The machine boots fine with the change below, does anyone foresee any trouble if I commit it? --- sys/arch/i386/stand/efiboot/Makefile.efiboot.orig +++ sys/arch/i386/stand/efiboot/Makefile.efiboot @@ -65,9 +65,8 @@ CPPFLAGS+= -DSUPPORT_BOOTP CPPFLAGS+= -DSUPPORT_DHCP CPPFLAGS+= -DSUPPORT_NFS CPPFLAGS+= -DSUPPORT_TFTP -CPPFLAGS+= -DPASS_BIOSGEOM CPPFLAGS+= -DBIOSDISK_DEFAULT_SECSIZE=2048 # for bootinfo_biosgeom.c CPPFLAGS+= -DLIBSA_ENABLE_LS_OP #CPPFLAGS+= -DARP_DEBUG -- Emmanuel Dreyfus [email protected]