mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
efi_loader: support booting semihosting file
Executing an EFI binary fails for files loaded via semihosting. Construct a dummy device path for EFI binaries loaded via semihosting. A future complete solution may include the creation of a handle with a simple file system protocol. Reported-by: Andre Przywara <andre.przywara@arm.com> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
This commit is contained in:
parent
31eda3f55c
commit
01c528118d
1 changed files with 2 additions and 1 deletions
|
@ -1203,7 +1203,8 @@ efi_status_t efi_dp_from_name(const char *dev, const char *devnr,
|
|||
} else if (!strcmp(dev, "Uart")) {
|
||||
if (device)
|
||||
*device = efi_dp_from_uart();
|
||||
} else if (!strcmp(dev, "Mem")) {
|
||||
} else if (!strcmp(dev, "Mem") || !strcmp(dev, "hostfs")) {
|
||||
/* loadm command and semihosting */
|
||||
efi_get_image_parameters(&image_addr, &image_size);
|
||||
|
||||
if (device)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue