public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* How to prevent a DXE driver from loading automatically
@ 2022-05-16 21:49 King Sumo
  0 siblings, 0 replies; only message in thread
From: King Sumo @ 2022-05-16 21:49 UTC (permalink / raw)
  To: devel

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-16 21:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-16 21:49 How to prevent a DXE driver from loading automatically King Sumo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox