public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Laszlo Ersek <lersek@redhat.com>
To: david moheban <moheban79@gmail.com>
Cc: edk2-devel@lists.01.org
Subject: Re: How to make a memory mapped to FV ffs efi program?
Date: Tue, 27 Mar 2018 14:27:48 +0200	[thread overview]
Message-ID: <e9b8d5f0-81df-dd6a-e14f-a6495a4831fc@redhat.com> (raw)
In-Reply-To: <CADxnD1wwrTT5KMQtA_DYA2rJK6mGz3QtQKUNMoHEAo5uNyfXKg@mail.gmail.com>

On 03/27/18 13:43, david moheban wrote:

> I was just curious on how certain firmware packages take a Efi Shell
> and make it available to boot from the F8 or F11 (or whatever) boot
> menu. I suppose to make your own you have to write a dxe driver that
> adds the location via guid to the boot menu?

Almost. In edk2 platforms, the agent that does this is usually not a
separate DXE driver, but the given platform's PlatformBootManagerLib
instance, which is linked into, and called from, BdsDxe.

For two examples, please see PlatformRegisterFvBootOption() in:

- ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBm.c
- OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c

A related function is RemoveStaleFvFileOptions(), in both.

Thanks
Laszlo


  reply	other threads:[~2018-03-27 12:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-27 11:43 How to make a memory mapped to FV ffs efi program? david moheban
2018-03-27 12:27 ` Laszlo Ersek [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-03-27  3:52 david moheban
2018-03-27  5:28 ` Andrew Fish
2018-03-27  9:24   ` Laszlo Ersek

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=e9b8d5f0-81df-dd6a-e14f-a6495a4831fc@redhat.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