public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Andrew Fish" <afish@apple.com>
To: edk2-devel-groups-io <devel@edk2.groups.io>, wincent6394@hotmail.com
Subject: Re: [edk2-devel] EFIFileLib status, removal, and replacement
Date: Thu, 15 Jul 2021 09:45:55 -0700	[thread overview]
Message-ID: <85F1625F-F8AA-4C53-9C49-257AAC83613F@apple.com> (raw)
In-Reply-To: <p3RR.1626336391941629147.c84Q@groups.io>

[-- 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 --]

      reply	other threads:[~2021-07-15 16:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-15  8:06 EFIFileLib status, removal, and replacement Winz
2021-07-15 16:45 ` Andrew Fish [this message]

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=85F1625F-F8AA-4C53-9C49-257AAC83613F@apple.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