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


Guomin Jiang
 

Please search the *.fdf file and add below content in the FV section.

FILE RAW = {GUID} {
Align = {Alignment} {File Path}
}

Where {GUID} is the identifier of the file, format is XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX, you can refer any inf for it's format. You can use ```guidgen.exe``` from Microsoft to generate new GUID.
Where {Alignment} is the boundary, can be 4k, 64k, or others.
Where {File Path} is the relative path from you project root path.

This is not the only format, you can refer https://www.gitbook.com/read/book/edk2-docs/edk-ii-fdf-specification 3.6 [FV] Sections for more information about it.

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

Hello Guomin,

Thank you very much for the information, i am about to read the
specifications, although i thought that the functions described are used to
extract files from a specific FV(files that are already there),..
my questions were one step behind,
in terms on how could someone be able to insert a raw binary (or a file) from
a local filesystem inside a Firmware Volume.

Thanks

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