Re: Is there a way to include a custom binary in EDK2 and load it in a UEFI driver?


Guomin Jiang
 

You can use PEI Firmware Volume PPI or Firmware Volume2 Protocol to access content from firmware.

https://uefi.org/sites/default/files/resources/PI_Spec_1_7_final_Jan_2019.pdf contain the information you need, the section you need read to get the information is Volume 3, Section 3.3.1 PEI Firmware Volume PPI and Section 3.4.1 Firmware Volume2 Protocol.

I suggest you to read Section 3 Firmware Storage Code Definitions carefully so you can know the storage format.

If you just need sample and just want to support you project quickly, you can search edk2 repository and edk2-platform repository for it.

-----Original Message-----
From: discuss@edk2.groups.io <discuss@edk2.groups.io> On Behalf Of
mzktsn@gmail.com
Sent: Tuesday, April 28, 2020 8:04 PM
To: discuss@edk2.groups.io
Subject: [edk2-discuss] Is there a way to include a custom binary in EDK2 and
load it in a UEFI driver?

Hello,

i was wondering if there is a way to embed somehow in the build process of
the edk2 a custom binary and then be able to load it (read it) from a UEFI
driver from C code.

Join discuss@edk2.groups.io to automatically receive all group messages.