From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id 07621AC168A for ; Thu, 20 Feb 2025 18:23:38 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=R5iA66+h+Ms3fJ7lsmqNI6zX8LQ/IkvKI2Ct7Lx/VTk=; c=relaxed/simple; d=groups.io; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject:To:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Transfer-Encoding; s=20240830; t=1740075818; v=1; x=1740335017; b=Mdx354x6Td4nhtpdNZYF3JpzW0ziQoM8Js+kAMW8xxNLgPFY9NrRlfCee0pnENHfmrL/d/aK HW0itiQ+U7UeC3pb7tcd2HUgQwIn9+cGeeBx040k/z98yConXKBk17Se4twr8OZlePpNaqSazl4 5pe+zchiCe8AEarODG0exfnwBzN6/dwbv1JV2Pj+fKqrIfV77n9NKzwf+8sxZCaVgxu/ZXDo5On ixu80U3v5cxWI9rp6rd7M2IZwzRQYpAZCdzuK8o/OsBCh4RFH1PrEqiITi4GpZ+fHStZmFXTLry 0x+xNmH1OQzqUSxlPDEO0kntKdz6Ej9G92zCghf/WpXjA== X-Received: by 127.0.0.2 with SMTP id Rti7YY7687511xRnfAdXZbun; Thu, 20 Feb 2025 10:23:37 -0800 X-Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) by mx.groups.io with SMTP id smtpd.web10.4354.1740075816429541786 for ; Thu, 20 Feb 2025 10:23:36 -0800 X-Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-ab771575040so424439466b.1 for ; Thu, 20 Feb 2025 10:23:36 -0800 (PST) X-Gm-Message-State: iFqgUaXpqjmy2OsW0MhsjSDcx7686176AA= X-Gm-Gg: ASbGncuKj5FFpmrb3S3fNoImedtl1nPpSYnIHgicCKn1uMOlywiKLN4hWJlXcZV3Wdn 3JvZBY99h9Ghg7bXp2W4Opm03JzKL3AdVdiZEli+ph9MADIoi6zVnNRe+DXhhyfCFxhhDUuHa X-Google-Smtp-Source: AGHT+IFRh9+KvSPRDmJlFDXpb4vttpk2D6BOYGsKVCwmHzoTUrapuwBo+iBQP+ER/7ticZSWN3HhrrJsBD6oiMrSMKk= X-Received: by 2002:a17:907:d40c:b0:abb:caf7:25d9 with SMTP id a640c23a62f3a-abbedd45a15mr381164266b.9.1740075814225; Thu, 20 Feb 2025 10:23:34 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: "Alireza Banejad via groups.io" Date: Thu, 20 Feb 2025 21:53:23 +0330 X-Gm-Features: AWEUYZk5SSW8_7fIcGQJ9XI6L3F6en4Wc2o3Y_GupPbSVwklI4t_PDP0_5x2C5U Message-ID: Subject: Re: [edk2-devel] Loading Prebuilt EFI without INF in UEFIPayloadPkg.dsc To: devel@edk2.groups.io, greg.wilson@gd-ms.uk Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Thu, 20 Feb 2025 10:23:36 -0800 Resent-From: alibanejad1376@gmail.com Reply-To: devel@edk2.groups.io,alibanejad1376@gmail.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240830 header.b=Mdx354x6; dmarc=pass (policy=none) header.from=groups.io; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@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 =3D $(NAMED_GUID) { DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi UI STRING=3D"$(MODULE_NAME)" Optional VERSION STRING=3D"$(INF_VERSION)" Optional BUILD_NUM=3D$(BUILD_NUMBER) } which you would add into your FDF at the DXE section like this: [FV.DXEFV] ... FILE DRIVER =3D 85299F8F-F2B9-4487-AF60-231434A5EFF6 { SECTION PE32 =3D DIR/TO/EFI/E4297X8.EFI } ... Hope this helps On Thu, Feb 20, 2025 at 9:38=E2=80=AFPM greg.wilson via groups.io wrote: > > Hi, > > I am trying to automatically load an EFI file in EDK2, before the UEFI Sh= ell is available. > > It is a prebuilt UNDI Network Driver from Intel, E4297X8.EFI, from the c= omplete 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 w= e 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. >=20 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- 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] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-