public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* How to handle ‘RegisterFmpInstaller’ in FmpDxe to operate USBIO when updating capsule?
@ 2022-07-21  9:38 gordontcp
  0 siblings, 0 replies; only message in thread
From: gordontcp @ 2022-07-21  9:38 UTC (permalink / raw)
  To: devel

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

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

only message in thread, other threads:[~2022-07-21  9:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-21  9:38 How to handle ‘RegisterFmpInstaller’ in FmpDxe to operate USBIO when updating capsule? gordontcp

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