public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Fmp Payload Header Usage
@ 2019-01-29 21:09 Ashish Singhal
  2019-01-29 21:42 ` Kinney, Michael D
  0 siblings, 1 reply; 2+ messages in thread
From: Ashish Singhal @ 2019-01-29 21:09 UTC (permalink / raw)
  To: Gao, Liming, Kinney, Michael D; +Cc: edk2-devel@lists.01.org

Hello Michael/Liming,

I am trying to use FmpDevicePkg for FMP based capsule update and am failing in FmpPayloadHeaderLib while verifying FMP payload header. I am building capsule and payload using FDF file itself and not calling Capsule tools explicitly from basetools. Is there a special build flag I need to provide to add FMP payload header to my payload?

Thanks
Ashish

-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information.  Any unauthorized review, use, disclosure or distribution
is prohibited.  If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Fmp Payload Header Usage
  2019-01-29 21:09 Fmp Payload Header Usage Ashish Singhal
@ 2019-01-29 21:42 ` Kinney, Michael D
  0 siblings, 0 replies; 2+ messages in thread
From: Kinney, Michael D @ 2019-01-29 21:42 UTC (permalink / raw)
  To: Ashish Singhal, Gao, Liming, Kinney, Michael D; +Cc: edk2-devel@lists.01.org

Hi Ashish,

You do need to use the standalone tool called GenerateCapsule to convert
a payload to a UEFI Capsule.

Here is an example:

https://github.com/tianocore/edk2/blob/master/Vlv2TbltDevicePkg/Feature/Capsule/GenerateCapsule/GenCapsuleMinnowMax.bat

You can customize this script for your platform.  This script is for
dev/debug purposes only for use on a local dev system.  It supports
different keys and tools to generate a UEFI Capsule.  You can simplify
it for a specific tool/key option.

You can integrate this into the standard build process by adding a
script to the DSC file as a post build step.

https://github.com/tianocore/edk2/blob/master/Vlv2TbltDevicePkg/PlatformCapsule.dsc

  POSTBUILD = Vlv2TbltDevicePkg/Feature/Capsule/GenerateCapsule/GenCapsuleAll.bat

This specific platform has some extra steps that need to be 
performed after the normal build of the FW image before the capsule
is generated, so a 2nd DSC/FDF file is used.  If you do not have 
any extra steps, then you can add the POSTBUILD statement to the
[Defines] section of your platform DSC file.

Best regards,

Mike

> -----Original Message-----
> From: edk2-devel [mailto:edk2-devel-
> bounces@lists.01.org] On Behalf Of Ashish Singhal
> Sent: Tuesday, January 29, 2019 1:09 PM
> To: Gao, Liming <liming.gao@intel.com>; Kinney, Michael
> D <michael.d.kinney@intel.com>
> Cc: edk2-devel@lists.01.org
> Subject: [edk2] Fmp Payload Header Usage
> 
> Hello Michael/Liming,
> 
> I am trying to use FmpDevicePkg for FMP based capsule
> update and am failing in FmpPayloadHeaderLib while
> verifying FMP payload header. I am building capsule and
> payload using FDF file itself and not calling Capsule
> tools explicitly from basetools. Is there a special
> build flag I need to provide to add FMP payload header
> to my payload?
> 
> Thanks
> Ashish
> 
> --------------------------------------------------------
> ---------------------------
> This email message is for the sole use of the intended
> recipient(s) and may contain
> confidential information.  Any unauthorized review, use,
> disclosure or distribution
> is prohibited.  If you are not the intended recipient,
> please contact the sender by
> reply email and destroy all copies of the original
> message.
> --------------------------------------------------------
> ---------------------------
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-01-29 21:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-29 21:09 Fmp Payload Header Usage Ashish Singhal
2019-01-29 21:42 ` Kinney, Michael D

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