Skip to content
Snippets Groups Projects
  1. Jan 25, 2022
  2. Jan 19, 2022
  3. Jan 15, 2022
  4. Jan 13, 2022
  5. Jan 12, 2022
  6. Dec 31, 2021
  7. Nov 07, 2021
    • Simon Glass's avatar
      efi: Add video support to the app · 1834c081
      Simon Glass authored and Heinrich Schuchardt's avatar Heinrich Schuchardt committed
      
      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's avatarSimon Glass <sjg@chromium.org>
      Reviewed-by: Heinrich Schuchardt's avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
      1834c081
    • Simon Glass's avatar
      x86: Don't duplicate global_ptr in 64-bit EFI app · 9c297a3d
      Simon Glass authored and Heinrich Schuchardt's avatar Heinrich Schuchardt committed
      
      This variable is already defined by the EFI code. Drop the duplicate
      definition when building a 64-bit EFI app.
      
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      Reviewed-by: Heinrich Schuchardt's avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
      9c297a3d
    • Simon Glass's avatar
      efi: Create a 64-bit app · e16c47fa
      Simon Glass authored and Heinrich Schuchardt's avatar Heinrich Schuchardt committed
      
      Most modern platforms use 64-bit EFI so it is useful to have a U-Boot app
      that runs under that. Add a (non-functional) build for this.
      
      Note that --whole-archive causes the gcc 9.2 linker to crash, so disable
      this for now. Once this is resolved, things should work.
      
      For now, avoid mentioning the documentation for the 64-bit app, since it
      does not work.
      
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      Reviewed-by: Heinrich Schuchardt's avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
      e16c47fa
    • Simon Glass's avatar
      x86: Create a 32/64-bit selection for the app · f4d227c9
      Simon Glass authored and Heinrich Schuchardt's avatar Heinrich Schuchardt committed
      
      Most EFI implementations use 64-bit but U-Boot only supports running as
      a 32-bit app at present. While efi-x86_payload64 does boot from 64-bit
      UEFI it immediately changes back to 32-bit before starting U-Boot.
      
      In order to support a 64-bit U-Boot app, update the Kconfig to add an
      option for 32/64 bit. Update the prompt for the existing option so it is
      clear it relates to the stub. Move both up to just under the choice that
      controls them, since this looks better and the menu.
      
      Use CONFIG_EFI_APP in the Makefile instead of CONFIG_TARGET_EFI_APP,
      since the latter is specific to a single target and we will have two.
      
      Memory size is set to 32MB for now so that it can run on qemu without
      increasing the default memory size. We may need to increase the default
      later.
      
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      Reviewed-by: Heinrich Schuchardt's avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
      f4d227c9
  8. Nov 01, 2021
Loading