From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=40.107.72.107; helo=nam05-co1-obe.outbound.protection.outlook.com; envelope-from=sean.brogan@microsoft.com; receiver=edk2-devel@lists.01.org Received: from NAM05-CO1-obe.outbound.protection.outlook.com (mail-eopbgr720107.outbound.protection.outlook.com [40.107.72.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id A0CE621189FAC for ; Thu, 1 Nov 2018 09:44:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tPGKp14mM4oJOo5n8FmP8bBoHAYeb4oTf8rbZwl1ACg=; b=Evf3zsUfPMDaHEVcv2ATan8fJOFa4cM+K8u/5a2LHPNW8XyI8NONK1ZWLWPSerYdXjLldc/RABPi4pNsZjMNQVOTrFAXewG/ipAq9OmH/zeTu0G7070HPFTRDiOTMc9AaW5NnENk0cKteM77dC6K6Tn8eH9pNOVkSvTibgUI0/8= Received: from DM5PR21MB0185.namprd21.prod.outlook.com (10.173.173.136) by DM5PR21MB0506.namprd21.prod.outlook.com (10.172.91.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.5; Thu, 1 Nov 2018 16:43:59 +0000 Received: from DM5PR21MB0185.namprd21.prod.outlook.com ([fe80::85ba:98bc:9456:eebf]) by DM5PR21MB0185.namprd21.prod.outlook.com ([fe80::85ba:98bc:9456:eebf%16]) with mapi id 15.20.1294.014; Thu, 1 Nov 2018 16:43:59 +0000 From: Sean Brogan To: "Tomas Pilar (tpilar)" , "edk2-devel@lists.01.org" Thread-Topic: [edk2] Capsules and versions Thread-Index: AQHUce94ATEYafFgxEeJfo94XklC6aU7G30A Date: Thu, 1 Nov 2018 16:43:58 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=True; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Owner=sebrogan@microsoft.com; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2018-11-01T16:43:57.4393337Z; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=General; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Application=Microsoft Azure Information Protection; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Extended_MSFT_Method=Automatic; Sensitivity=General x-originating-ip: [2001:4898:80e8:0:b150:9aeb:c2db:75a9] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DM5PR21MB0506; 6:SHBb6TD/I7EZOkyCGCzNlmYjOKhKkp8aQ8ymDUnbckC8E5bzdj4putZ3ajWY8RbokqWGQzU8FC0VpEeO1NTFjAj8NJngHNt03FkHCO+IMGZV9vaVC4Zr5WO8HYnyAJCo6qMw9heHY7phYfMOly2/FhQeE5o5EGKXaO2mA7APxEttNq7Abtx6OZIjS19HamdAbo1mwwOeB0PmrjTbe1ufHOJr74yAy+w0HQgUc/VrtA5cTEKRFFaMZ184wpJZTiLIEe/dzK8i9cYM1NXsWQiNkiLbmtVs+Ny1rkfKSxhaCg7I11I3ddyw4wO0nWaVVZrJXBjh1vkKoPiuOd9xeGCvMluv5yn1OGwIs+RnOSX1ENUDBx1Aml1V4TX6IJpux3KB3jVY+xC8xU1fd+7T+0dEZ01VF534Lf8OcOtlUZgywvMd0hUFY+0sFwNd5yLdTajdxvfOb+WSGPnBH9xkRrJ5DA==; 5:sCAtPKQQK80YSofpD7vni1RfzLRfJX6om8JdQF9uEeQgdK2j5K0OaQ2a1jyZ54n4Nes9oyBNvzVvf4H0BZlhPd8TOd7SufMuXGJ3jBqn7lGppnppc/UppqlE05iem6R/dn53LbZcwNYRlXKh9krUHGGwu4/CgYumR98ERdjpaBo=; 7:vynpcIdl/x5Qh8ncQKIu6+vRUySJJ5HvhM5yMSMZcQ9/ltAVmsJ2glD8y0Tn39DQwungWu7pomkSAnHcAUyOq6+9tka5qKrsA9E6WMNUHvtrzRmuyBHU1QyRsMmoe82LrTIJr1IIkyipjCsmkuEJEw== x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 6201b56f-3696-4c24-f6e7-08d6401938d0 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7193020); SRVR:DM5PR21MB0506; x-ms-traffictypediagnostic: DM5PR21MB0506: authentication-results: spf=none (sender IP is ) smtp.mailfrom=sean.brogan@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(166708455590820)(162533806227266)(219752817060721)(189930954265078); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(8220035)(2401047)(5005006)(8121501046)(93006095)(93001095)(3002001)(10201501046)(3231382)(944501410)(52105095)(2018427008)(6055026)(148016)(149066)(150057)(6041310)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(201708071742011)(7699051)(76991095); SRVR:DM5PR21MB0506; BCL:0; PCL:0; RULEID:; SRVR:DM5PR21MB0506; x-forefront-prvs: 0843C17679 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(366004)(346002)(376002)(39860400002)(396003)(136003)(13464003)(189003)(199004)(6506007)(316002)(33656002)(68736007)(14444005)(256004)(8990500004)(46003)(11346002)(2501003)(476003)(446003)(5250100002)(186003)(14454004)(8936002)(22452003)(99286004)(53546011)(105586002)(8676002)(86362001)(575784001)(106356001)(81156014)(86612001)(81166006)(25786009)(10090500001)(305945005)(478600001)(6116002)(10290500003)(229853002)(74316002)(2906002)(486006)(110136005)(71190400001)(71200400001)(53936002)(966005)(6246003)(6306002)(102836004)(55016002)(6436002)(76176011)(7696005)(5660300001)(9686003)(7736002)(44832011)(2900100001)(97736004); DIR:OUT; SFP:1102; SCL:1; SRVR:DM5PR21MB0506; H:DM5PR21MB0185.namprd21.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: qHZRfsZqL8pijnsRB5+PWaqWZeCQ9C6ople5smaDQTLmGdFwwt3hZJCaTNQ5fgyOfMnDaUR2uKOvtFGQBCZgOFUBb1oVS7xp3l2Z+6F2WRq3bDOFcFtBhTTTGKz+LnAZvH+q34cET0mYSO59dkYkXWtHWWZJsCtFqy96KEzODViNHvc6E7bJWQ7vn/JpvJnZsGorJ7FSYe+51wINV+1XO2nNjaMKiVAX7j4QMF/4YyQfSOii0NpqJL1kmi56eWpuM6UyOBjB6iI26RIIRfYp9mzRcpQ/BhYvyoqU0BmqX8J4m4e7/kTHA20rIYZfrbXZUuUqWTtctwMl5sGIw8c2CL2wjy+n86ZeI1QPKjCmrdo= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6201b56f-3696-4c24-f6e7-08d6401938d0 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Nov 2018 16:43:58.9171 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR21MB0506 Subject: Re: Capsules and versions X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Nov 2018 16:44:00 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Tom, Short answer: It is tool dependent.=20 On Windows where the ESRT and FMP have been used for years there is another= file that contains that information (Capsules are just driver packages so = there is an INF and CAT file along with the BIN). =20 Once the firmware gets to processing the actual payload (after stripping al= l the standard headers/structures) our firmware implementation makes use of= a EDK2 defined header that contains this information as well as lowest sup= ported version. See here. https://github.com/tianocore/edk2/blob/master/= FmpDevicePkg/Include/Library/FmpPayloadHeaderLib.h =20 Hope that helps.=20 Thanks Sean -----Original Message----- From: edk2-devel On Behalf Of Tomas Pilar= (tpilar) Sent: Thursday, November 1, 2018 7:22 AM To: edk2-devel@lists.01.org Subject: [edk2] Capsules and versions Hi, I am trying to implement FMP in our IHV UEFI driver so that we can update f= irmware and the driver using capsules. I get the ESRT populated by the plat= form EsrtFmpDxe, that's all great. However, it seems that EFI_FIRMWARE_MANAGEMENT_CAPSULE_IMAGE_HEADER does no= t contain any version information about the firmware blob (neither Version = nor ImageId). How is the OS tool that stages capsules supposed to know whet= her the capsule contains firmware that has been in fact already applied? Cheers, Tom _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://na01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Flists.01= .org%2Fmailman%2Flistinfo%2Fedk2-devel&data=3D02%7C01%7Csean.brogan%40m= icrosoft.com%7Cdbe4babaafe84ee0a01c08d6400699cd%7C72f988bf86f141af91ab2d7cd= 011db47%7C1%7C0%7C636766794429049806&sdata=3DCaAhG3UhI2%2BqSA6ml7USrFpG= juENBMNS4HK5xKuUGec%3D&reserved=3D0