Force selection of load option in UEFI via C code
Posted: Sat Apr 29, 2023 10:45 am
Hello, friends.
I am involved in a small project (in California).
We are developing a DXE-driver (by C-language).
We have a task - forced selection of a partition to boot the operating system (set boot option in stage before BDS).
Our current implementation forced sets the BootOrder variable with a single entry - with the necessary index of BootNNNN variable.
Also, we overload the SetVariable() function, and we do not allow changing the BootOrder variable in it.
But this implementation does not fully work - on VmWare everything works with bugs.
Also, for different motherboards, the implementation has different behavior, and it is also not always correct.
Please advise how best to solve the problem? Has anyone had a similar experience.
Thanks.
I am involved in a small project (in California).
We are developing a DXE-driver (by C-language).
We have a task - forced selection of a partition to boot the operating system (set boot option in stage before BDS).
Our current implementation forced sets the BootOrder variable with a single entry - with the necessary index of BootNNNN variable.
Also, we overload the SetVariable() function, and we do not allow changing the BootOrder variable in it.
But this implementation does not fully work - on VmWare everything works with bugs.
Also, for different motherboards, the implementation has different behavior, and it is also not always correct.
Please advise how best to solve the problem? Has anyone had a similar experience.
Thanks.