Hi Greg,
To do so what you need to do is put the EFI binary inside the Flash
Definition Format File (.FDF) not the DSC or the INF files.
This file is meant to define how blobs and binaries should be stacked
upon each other. what normally happens is that if you are building an
UEFI module source code with its INF. You would define that INF inside
the DSC with its proper library classes and also put inside the proper
section of the associated FDF file.
However in your case, since you are simply adding a pre-built binary
all you need to do is to define the binary based on the rules inside
of that FDF file.
This is a sample rule defined in UEFIPayLoadPkg.fdf:
[Rule.Common.UEFI_DRIVER]
  FILE DRIVER = $(NAMED_GUID) {
    DXE_DEPEX    DXE_DEPEX Optional      $(INF_OUTPUT)/$(MODULE_NAME).depex
    PE32     PE32                    $(INF_OUTPUT)/$(MODULE_NAME).efi
    UI       STRING="$(MODULE_NAME)" Optional
    VERSION  STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
  }
which you would add into your FDF at the DXE section like this:
[FV.DXEFV]
...
  FILE DRIVER = 85299F8F-F2B9-4487-AF60-231434A5EFF6 {
    SECTION PE32 = DIR/TO/EFI/E4297X8.EFI
  }
...
Hope this helps

On Thu, Feb 20, 2025 at 9:38 PM greg.wilson via groups.io
<greg.wilson=gd-ms...@groups.io> wrote:
>
> Hi,
>
> I am trying to automatically load an EFI file in EDK2, before the UEFI Shell 
> is available.
>
> It is a prebuilt UNDI Network Driver from Intel,  E4297X8.EFI, from the 
> complete Ethernet Drivers package zip file. ..\Release_29.3\APPS\EFI\EFIx64
>
> The Open Source ICE driver doesn't contain bindings for the E823-L NAC  we 
> have, even though it is part of the E800 series of Network Controller.
>
> Is there a way to build an INF file, that doesn't have an entry point, to 
> load the preexisting E4297X8.EFI file? I hope there is a way to "embed" it in 
> the built payload, being loaded through Slimboot.
>
> Kind regards.
>
> Greg.
> 


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#121133): https://edk2.groups.io/g/devel/message/121133
Mute This Topic: https://groups.io/mt/111294067/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to