public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: gordontcp@gmail.com
To: devel@edk2.groups.io
Subject: How to handle ‘RegisterFmpInstaller’ in FmpDxe to operate USBIO when updating capsule?
Date: Thu, 21 Jul 2022 02:38:12 -0700	[thread overview]
Message-ID: <vqnQ.1658396292525730811.tKoW@groups.io> (raw)

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

Hi all,
In \FmpDevicePkg\Library\FmpDeviceLibNull\FmpDeviceLib.c
There are comments for RegisterFmpInstaller :

/**
 Used to pass the FMP install function to this lib.  This allows the library to
 have control of the handle that the FMP instance is installed on.  This allows
 the library to use DriverBinding protocol model to locate its device(s) in the
 system.

 @param[in] Func  Function pointer to FMP install function.

 @retval EFI_SUCCESS       Library has saved function pointer and will call
                           function pointer on each DriverBinding Start.
 @retval EFI_UNSUPPORTED   Library doesn't use driver binding and only supports
                           a single instance.
 @retval other error       Error occurred.  Don't install FMP

**/
EFI_STATUS
EFIAPI
RegisterFmpInstaller (
 IN FMP_DEVICE_LIB_REGISTER_FMP_INSTALLER Func
 )
{
 //
 // This is a system firmware update that does not use Driver Binding Protocol
 //
 return EFI_UNSUPPORTED;
}

However, since the ‘RegisterFmpInstaller’ of the example directly returns EFI_UNSUPPORTED , it does not demonstrate how to handle the DriverBinding protocol. There are similar instructions in the edk2-platforms example, but it also does not demonstrate how to locate the DriverBinding protocol. The full path of edk2-platforms example is :
edk2-platforms\Platform\Intel\Vlv2TbltDevicePkg\Feature\Capsule\Library\FmpDeviceLib\FmpDeviceLib.c

I would like to operate USBIO in FmpDxe, how to do Binding protocol in FmpDxe, is there any sample code?
Any suggestion is greatly appreciated!
Many thanks!

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

                 reply	other threads:[~2022-07-21  9:38 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=vqnQ.1658396292525730811.tKoW@groups.io \
    --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