GNU GRUB - Bugs: bug #64911, Support ACPI for OpenBSD EFI boot
You are not allowed to post comments on this tracker with your current authentication level.
bug #64911: Support ACPI for OpenBSD EFI boot
Submitter: | Yuichiro Naito <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: | |
Open/Closed: | Open | Release: | 2.02 |
Release: | Reproducibility: | Every Time | |
Planned Release: | None |
Attached Files
Depends on the following items: None found
Items that depend on this one: None found
Carbon-Copy List
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follows 1 latest change.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2023-11-20 | yuichiro | Attached File | - | Added openbsd_efiinfo.patch, #55341 |
Powered by Savane 3.13-aa77.
Corresponding source code
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.
https://github.com/openbsd/src/blob/master/sys/arch/amd64/stand/efiboot/efiboot.c#L868-L869
https://github.com/openbsd/src/blob/master/sys/arch/amd64/stand/efiboot/efiboot.c#L872-L873
https://github.com/openbsd/src/blob/master/sys/arch/amd64/stand/efiboot/efiboot.c#L876-L877
https://github.com/openbsd/src/blob/master/sys/arch/amd64/stand/efiboot/efiboot.c#L330-L422
https://github.com/openbsd/src/blob/master/sys/arch/amd64/stand/efiboot/efiboot.c#L928-L955
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.