* EFIFileLib status, removal, and replacement
@ 2021-07-15 8:06 Winz
2021-07-15 16:45 ` [edk2-devel] " Andrew Fish
0 siblings, 1 reply; 2+ messages in thread
From: Winz @ 2021-07-15 8:06 UTC (permalink / raw)
To: devel
[-- Attachment #1: Type: text/plain, Size: 250 bytes --]
Hi everyone,
I noticed that EFIFileLib no longer appear on the latest version of edk2.
Does anyone know why it was removed?
Also, what is the designated replacement library?
Is it okay for me to maintain a local copy and use it?
Thanks,
W
[-- Attachment #2: Type: text/html, Size: 282 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [edk2-devel] EFIFileLib status, removal, and replacement
2021-07-15 8:06 EFIFileLib status, removal, and replacement Winz
@ 2021-07-15 16:45 ` Andrew Fish
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Fish @ 2021-07-15 16:45 UTC (permalink / raw)
To: edk2-devel-groups-io, wincent6394
[-- Attachment #1: Type: text/plain, Size: 1649 bytes --]
> On Jul 15, 2021, at 1:06 AM, Winz <wincent6394@hotmail.com> wrote:
>
> Hi everyone,
>
> I noticed that EFIFileLib no longer appear on the latest version of edk2.
> Does anyone know why it was removed?
It got removed since it is obsolete. I wrote it a long time ago as part of the Embedded Boot Loader (EBL). The EBL was a proof of concept I wrote in something like 2007 to show an EFI system could have a smaller footprint like uBoot. The EFIFileLib uses the device name (volume name) scheme of the EBL This scheme was unique to the EBL. For example the fs3: volume name in the EFIFileLib is not the same as the volume names in the UEFI Shell.
The EBL is obsolete and got replaced by the UEFI Shell. I think EFIFileLib ended up getting used in other places so it stayed around longer.
Supported Device Names:
A0x1234:0x12 - A memory buffer starting at address 0x1234 for 0x12 bytes
l1: - EFI LoadFile device one.
B0: - EFI BlockIo zero.
fs3: - EFI Simple File System device 3
Fv2: - EFI Firmware VOlume device 2
10.0.1.102: - TFTP service IP followed by the file name
> Also, what is the designated replacement library?
What problem are you trying to solve? There are UEFI Shell libs for writing UEFI Shell applications, etc.
> Is it okay for me to maintain a local copy and use it?
>
As long as you understand the caveats with he device (volume) names.
Feel free to ask questions on the mailing list about how it works:
https://github.com/tianocore/edk2/blob/UDK2017/EmbeddedPkg/Library/EfiFileLib/EfiFileLib.c
Thanks,
Andrew Fish
> Thanks,
> W
>
[-- Attachment #2: Type: text/html, Size: 12796 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-07-15 16:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-15 8:06 EFIFileLib status, removal, and replacement Winz
2021-07-15 16:45 ` [edk2-devel] " Andrew Fish
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox