public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "King Sumo" <kingsumos@gmail.com>
To: devel@edk2.groups.io
Subject: How to prevent a DXE driver from loading automatically
Date: Mon, 16 May 2022 18:49:44 -0300	[thread overview]
Message-ID: <CAGfcU4TDF7bTiCJAQ3eY3=gpWNAPPuCcoY+f1WnDfWDnG3d75Q@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 990 bytes --]

Hi All,

I'm including EFI drivers for an Intel Network card, but this adds a huge
delay in the system startup when the ports are being initialized (the
server has several slots). The network cards will be used only for PXE boot
during the staging/setup process, so I'm thinking of adding a configurable
option to enable/disable the PXE boot. So only if enabled the drivers will
be loaded, and after the staging the PXE can be disabled via BMC or
something else.

Do we have any way to prevent a driver from being loaded automatically?
Such as using some conditions or dependencies? For instance, if some driver
is not loaded or some protocol isn't available?

One option will be setting the EFI files as RAW or FREEFORM so they will
not be recognized as a DRIVER during the DXE phase. But it will be required
to implement the driver loading, I'm not sure how difficult it will be
(maybe using GetSectionFromAnyFv to load the contents to a buffer, but how
to load it?).

Kind Regards,
Sumo

[-- Attachment #2: Type: text/html, Size: 1150 bytes --]

                 reply	other threads:[~2022-05-16 21:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='CAGfcU4TDF7bTiCJAQ3eY3=gpWNAPPuCcoY+f1WnDfWDnG3d75Q@mail.gmail.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