From: "Alireza Banejad via groups.io" <alibanejad1376=gmail.com@groups.io>
To: devel@edk2.groups.io, greg.wilson@gd-ms.uk
Subject: Re: [edk2-devel] Loading Prebuilt EFI without INF in UEFIPayloadPkg.dsc
Date: Thu, 20 Feb 2025 21:53:23 +0330 [thread overview]
Message-ID: <CADH3hnKsQSVnZH382rO5Vmm59ua3OJtCpc6WQsj4YGXSW7rGJw@mail.gmail.com> (raw)
In-Reply-To: <cDNW.1740074913515061077.4VZ1@groups.io>
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.uk@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/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
next parent reply other threads:[~2025-02-20 18:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <cDNW.1740074913515061077.4VZ1@groups.io>
2025-02-20 18:23 ` Alireza Banejad via groups.io [this message]
2025-02-20 18:25 ` [edk2-devel] Loading Prebuilt EFI without INF in UEFIPayloadPkg.dsc Ard Biesheuvel via groups.io
2025-02-21 6:57 ` 丰立波 via groups.io
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CADH3hnKsQSVnZH382rO5Vmm59ua3OJtCpc6WQsj4YGXSW7rGJw@mail.gmail.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox