]> git.baikalelectronics.ru Git - uboot.git/commit
efi: Add video support to the app
authorSimon Glass <sjg@chromium.org>
Thu, 4 Nov 2021 03:09:10 +0000 (21:09 -0600)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 7 Nov 2021 17:36:55 +0000 (18:36 +0100)
commit3f656d6f3cf265eeb19956c7d63ba27433bb9fc3
tree3d2159b6c1a84e7c9cb6e3bebf2aafa774349e60
parent0d60b391eb28728c76ab425810df559ad067b71d
efi: Add video support to the app

The current EFI video driver only works when running in the stub. In that
case the stub calls boot services (before jumping to U-Boot proper) and
copies the graphics info over to the efi table. This is necessary because
the stub exits boot services before jumping to U-Boot.

The app maintains access to boot services throughout its life, so does not
need to do this. Update the driver to support calling boot services
directly.

Enable video output for the app. Note that this uses the
EFI_GRAPHICS_OUTPUT_PROTOCOL protocol, even though it mentions vesa.

A sample qemu command-line for this case is:

   qemu-system-x86_64 -bios /usr/share/edk2.git/ovmf-ia32/OVMF-pure-efi.fd
   -drive id=disk,file=try.img,if=none,format=raw -nic none
   -device ahci,id=ahci -device ide-hd,drive=disk,bus=ahci.0

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
arch/x86/dts/efi-x86_app.dts
board/efi/efi-x86_app/Kconfig
doc/develop/uefi/u-boot_on_efi.rst
drivers/video/Kconfig
drivers/video/efi.c
include/configs/efi-x86_app.h