queso-fuego / uefi-dev

Repo for the UEFI Development Series
The Unlicense
32 stars 3 forks source link

Simple Pointer Protocol - Automatic Boot #8

Open elevatorguy opened 2 weeks ago

elevatorguy commented 2 weeks ago

If Boot Order in BIOS is set to device with EFI/BOOT/BOOTX64.EFI first, we get: "ERROR: Could not find any valid SPP Mode."

However, regardless of Boot Order setting; booting via selection: S.P.P. found.

Issue initially found without A.P.P. enabled; vendor has BIOS "Touch Device" toggle - issue remains.

queso-fuego commented 2 weeks ago

That sounds like it doesn't get initialized or enabled unless manually selecting the boot entry, which is interesting. I'll test on my hardware, but can try enabling all devices found by calling BootServices->ConnectController() on all handles, using the example on page 181 of the uefi spec. That should enable drivers if they aren't enabled yet, to rule that out.

I'll probably add code for that at startup anyway, it shouldn't harm anything.