URL: <https://savannah.gnu.org/bugs/?64911>
Summary: Support ACPI for OpenBSD EFI boot Group: GNU GRUB Submitter: yuichiro Submitted: Mon 20 Nov 2023 03:31:06 AM UTC Category: Booting Severity: Major Priority: 5 - Normal Item Group: Feature Request Status: None Privacy: Public Assigned to: None Originator Name: Originator Email: Open/Closed: Open Release: 2.02 Release: Discussion Lock: Any Reproducibility: Every Time Planned Release: None _______________________________________________________ Follow-up Comments: ------------------------------------------------------- Date: Mon 20 Nov 2023 03:31:06 AM UTC By: Yuichiro Naito <yuichiro> When I booted OpenBSD from Grub2, the ACPI power-off function didn’t work. It just quit without the shutdown sequence when I pushed the power button of my PC. In my investigation, the OpenBSD kernel requires the ACPI table pointer in the boot argument. It is a member of the “bios_efiinfo_t” structure. I wrote a patch to pass the “bios_efiinfo_t” structure which members are filled in the same way as the OpenBSD boot loader. It works for the OpenBSD 7.4 kernel. I will write down what I see to fill the “bios_efiinfo_t” members. * config_acpi https://github.com/openbsd/src/blob/master/sys/arch/amd64/stand/efiboot/efiboot.c#L868-L869 * config_smbios https://github.com/openbsd/src/blob/master/sys/arch/amd64/stand/efiboot/efiboot.c#L872-L873 * config_esrt https://github.com/openbsd/src/blob/master/sys/arch/amd64/stand/efiboot/efiboot.c#L876-L877 * mmap_* https://github.com/openbsd/src/blob/master/sys/arch/amd64/stand/efiboot/efiboot.c#L330-L422 * fb_* https://github.com/openbsd/src/blob/master/sys/arch/amd64/stand/efiboot/efiboot.c#L928-L955 * system_table https://github.com/openbsd/src/blob/master/sys/arch/amd64/stand/efiboot/efiboot.c#L961 https://github.com/openbsd/src/blob/master/sys/arch/amd64/stand/efiboot/efiboot.c#L81 I’m a newbie to the GRUB2 project. If my patch violates the coding style or manners of this project. Please let me know. I will update my patch. _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Mon 20 Nov 2023 03:31:06 AM UTC Name: openbsd_efiinfo.patch Size: 10KiB By: yuichiro <http://savannah.gnu.org/bugs/download.php?file_id=55341> _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?64911> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/