
On 03/09/2018 02:23 PM, Alexander Graf wrote:
On 03/03/2018 03:41 PM, Heinrich Schuchardt wrote:
The console control protocol is not defined in the UEFI standard.
It exists in EDK2's EdkCompatiblityPkg package. But this package is deprecated according to https://github.com/tianocore/tianocore.github.io/wiki/Differences-between-ED...
Signed-off-by: Heinrich Schuchardt xypron.glpk@gmx.de
Grub uses it, but I can confirm that the code path it's using it in is perfectly happy with it not being available. So I think it's safe to remove.
Alex
Even the very first UEFI spec (2.0, 2006) did not contain the ConsoleControlProtocol.
Grub is trying to switch the console to text mode (see function grub_efi_set_text_mode()). With UEFI text output is always available. This is why the protocol was obsoleted by UEFI. The current grub coding that allows to live without the console control protocol was introduced in 2006 in response to the first UEFI spec.
Regards
Heinrich