Hi, Samer
If it's such usage case, why you don't use the below logic?
Status = GetSectionFromAnyFv (
&AppGuid,
EFI_SECTION_PE32,
0,
&AppImageBase,
&AppImageSize
);
Status = gBS->LoadImage (
TRUE,
gImageHandle,
NULL,
AppImageBase,
AppImageSize,
&ImageHandle
);
Status = gBS->StartImage (ImageHandle, NULL, NULL);
It doesn't need construct device path at all.
Thanks
Feng
From: El-Haj-Mahmoud, Samer [mailto:samer.el-haj-mahm...@hp.com]
Sent: Tuesday, December 02, 2014 03:22
To: edk2-devel@lists.sourceforge.net
Subject: Re: [edk2] [PATCH] MdeModulePkg : Add a new DxeServicesLib
GetSectionFromAnyFvEx() function
One possible usage is to be able to load an application from a FV.
* Need to search for the EFI application in all FVs using
GetSectionFromAnyFvEx()
* Once found, the file is loaded from FV to memory (in Buffer and Size
outputs of GetSectionFromAnyFvEx()
* We then need to load and start the image using gBS->LoadImage() and
gBS->StartImage()
* Load image has a DevicePath input parameter of where the image is
loaded from
The original GetSectionFromAnyFv() did not return the device path and was not
suitable for this use case.
Thanks,
--Samer
From: Tian, Feng [mailto:feng.t...@intel.com]
Sent: Tuesday, November 25, 2014 6:24 PM
To: edk2-devel@lists.sourceforge.net<mailto:edk2-devel@lists.sourceforge.net>
Subject: Re: [edk2] [PATCH] MdeModulePkg : Add a new DxeServicesLib
GetSectionFromAnyFvEx() function
Hi, Samer
As your proposed patch involves interface change, we need review it carefully
and the response may be slow.
Could you let me know at which case/usage model you need to get this FV file's
device path?
Thanks
Feng
From: El-Haj-Mahmoud, Samer [mailto:samer.el-haj-mahm...@hp.com]
Sent: Wednesday, November 26, 2014 06:28
To: edk2-devel@lists.sourceforge.net<mailto:edk2-devel@lists.sourceforge.net>
Subject: Re: [edk2] [PATCH] MdeModulePkg : Add a new DxeServicesLib
GetSectionFromAnyFvEx() function
Resending with actual patch file
Thanks,
--Samer
From: El-Haj-Mahmoud, Samer
Sent: Tuesday, November 25, 2014 4:24 PM
To: edk2-devel@lists.sourceforge.net<mailto:edk2-devel@lists.sourceforge.net>
Subject: [PATCH] MdeModulePkg : Add a new DxeServicesLib
GetSectionFromAnyFvEx() function
Dear MdeModulePkg maintainers,
Please see attached patch
Add a new DxeServicesLib function GetSectionFromAnyFvEx() to search all
firmware volumes for
A specified FFS file, and return the first matching FFS section. The function
is identical to
GetSectionFromAnyFv(), but it also returns a pointer to the FV file device path.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Samer El-Haj-Mahmoud el...@hp.com<mailto:el...@hp.com>
Thanks,
Samer El-Haj-Mahmoud
System Firmware Architect
HP Servers
el...@hp.com<mailto:el...@hp.com>
T +1.281.514.5973
C +1.512.659.1523
Hewlett-Packard Company
hp.com/go/proliant/uefi<http://hp.com/go/proliant/uefi>
[Description: Description: C:\Users\elhajmah\HpLogo.png]
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel