22 Mar, 2020

2 commits


29 Feb, 2020

1 commit

  • Provide a unit test loading an initial ramdisk using the
    EFI_LOAD_FILE2_PROTOCOL. The test is only executed on request.

    An example usage - given a file image with a file system in partition 1
    holding file initrd - is:

    * Configure the sandbox with

    CONFIG_EFI_SELFTEST=y
    CONFIG_EFI_LOAD_FILE2_INITRD=y
    CONFIG_EFI_INITRD_FILESPEC="host 0:1 initrd"

    * Run ./u-boot and execute

    host bind 0 image
    setenv efi_selftest load initrd
    bootefi selftest

    This would provide a test output like:

    Testing EFI API implementation

    Selected test: 'load initrd'

    Setting up 'load initrd'
    Setting up 'load initrd' succeeded

    Executing 'load initrd'
    Loaded 12378613 bytes
    CRC32 2997478465
    Executing 'load initrd' succeeded

    Now the size and CRC32 can be compared to the provided file.

    Signed-off-by: Ilias Apalodimas
    Signed-off-by: Heinrich Schuchardt

    Ilias Apalodimas
     

15 Jan, 2020

2 commits

  • Use the correct protocol in efi_uc_stop() when detaching the driver from
    the controller.

    Change the block IO unit test for the block device driver to throw an error
    instead of a todo if teardown fails.

    Signed-off-by: Heinrich Schuchardt

    Heinrich Schuchardt
     
  • For automating testing we should be able to power off the test system.
    The implementation of EFI_RESET_SHUTDOWN requires the do_poweroff()
    function which is only available if CONFIG_CMD_POWEROFF=y.

    Enable CONFIG_CMD_POWEROFF if PSCI reset is available.

    Signed-off-by: Heinrich Schuchardt

    Heinrich Schuchardt
     

08 Jan, 2020

2 commits


03 Dec, 2019

1 commit


13 Nov, 2019

1 commit


06 Oct, 2019

2 commits

  • The UEFI spec has this sentence:
    "Variables that have runtime access but that are not nonvolatile are
    read-only data variables once ExitBootServices() is performed."

    At least EDK2 therefore treats variable PlatformLangCodes only as read-only
    at runtime. Nowhere do we make this variable read-only in U-Boot.

    Do not use variable PlatformLangCodes for testing if the read only
    attribute of variables is observed before ExitBootServices().

    Fixes: 5a24239c951e ("efi_loader: selftest: enable APPEND_WRITE tests")
    Signed-off-by: Heinrich Schuchardt

    Heinrich Schuchardt
     
  • Errors should not only be announced as text but should also result in
    EFI_ST_FAILURE being returned.

    Signed-off-by: Heinrich Schuchardt

    Heinrich Schuchardt
     

21 Sep, 2019

1 commit


06 Sep, 2019

2 commits


29 Aug, 2019

2 commits


31 Jul, 2019

2 commits


17 Jul, 2019

2 commits


07 Jul, 2019

2 commits


21 Jun, 2019

1 commit


11 Jun, 2019

1 commit


02 Jun, 2019

1 commit


01 Jun, 2019

2 commits


25 May, 2019

2 commits


19 May, 2019

1 commit


13 May, 2019

2 commits


08 May, 2019

2 commits


03 May, 2019

1 commit


23 Apr, 2019

3 commits

  • The EBBR specification prescribes that we should have either an ACPI table
    or a device tree but not both. Let us enforce this condition in the
    `bootefi` command.

    If the bootefi command is called without a device tree parameter use a
    previously device tree or fall back to the internal device tree.

    The fdt unit test should not be run on boards with an ACPI table.

    Signed-off-by: Heinrich Schuchardt

    Heinrich Schuchardt
     
  • The EBBR specification prescribes that we should have either an ACPI table
    or a device tree but not both.

    So do not run the device tree unit test on boards with an ACPI table.
    Hence there is no need any longer to make it 'on request' only.
    Do not pass $fdtcontroladdr to `bootefi selftest`.

    Signed-off-by: Heinrich Schuchardt

    Heinrich Schuchardt
     
  • We should consistently use the same name for protocol GUIDs as defined in
    the UEFI specification. Not adhering to this rule has led to duplicate
    definitions for the EFI_LOADED_IMAGE_PROTOCOL_GUID.

    Adjust misnamed protocol GUIDs.

    Adjust the text for the graphics output protocol in the output of the
    `efidebug dh` command.

    Signed-off-by: Heinrich Schuchardt

    Heinrich Schuchardt
     

13 Apr, 2019

2 commits