From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=67.231.154.164; helo=dispatch1-us1.ppe-hosted.com; envelope-from=tpilar@solarflare.com; receiver=edk2-devel@lists.01.org Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [67.231.154.164]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id EEFB521A07A92 for ; Fri, 2 Nov 2018 03:47:17 -0700 (PDT) X-Virus-Scanned: Proofpoint Essentials engine Received: from webmail.solarflare.com (webmail.solarflare.com [12.187.104.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mx1-us3.ppe-hosted.com (Proofpoint Essentials ESMTP Server) with ESMTPS id 818BF980058; Fri, 2 Nov 2018 10:47:16 +0000 (UTC) Received: from tp-desktop.uk.solarflarecom.com (10.17.20.51) by ocex03.SolarFlarecom.com (10.20.40.36) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 2 Nov 2018 03:47:12 -0700 To: Sean Brogan , "edk2-devel@lists.01.org" References: From: "Tomas Pilar (tpilar)" Message-ID: <8eac573b-fa6a-3df0-878c-57f90f3373b9@solarflare.com> Date: Fri, 2 Nov 2018 10:47:11 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: X-Originating-IP: [10.17.20.51] X-TM-AS-Product-Ver: SMEX-12.5.0.1300-8.5.1010-24196.005 X-TM-AS-Result: No-14.534100-4.000000-10 X-TMASE-MatchedRID: vEvJ7Rh1lGhJtzxaLxhtWxMMmcrjEONdMUUuEZQPwBYNcckEPxfz2Cj5 3aEB5qDLNWHl14dMaVs54y8lWN5USBNj8dEIVpt0SEQN/D/3cG5ks3Sz3C3QDQ/lQ3BSNJwUWc2 47K5p+pqp8QPRoBj3AUjhZDzaW0uc8zWY0cbqPL7ThGbP9qB93FAI6wCVrE3vWabPstVV86mVIE i8fvjB8tjTrnUAwhpyyvkBV2KfhrUAS4rKOYy8M+YAh37ZsBDCUd7Bjfo+5jSOtR/F4zYXtI70h NBiMHxF8c0FK1vDjSeoBFj4v4lGJ8uY+x+wpWIHICsP4rpeGccLitYSIrUiB3//1znduBFd6gAh BffzcN3W/NSSWxC+SXa2oJDUAputSSOWVJeuO1A5f9Xw/xqKXVkMvWAuahr8ylNXFsiN4Fp/jU2 iDI48PyAHAopEd76vdHOG3LyQDyYzQMntP9W1KR907PTdcnqxoAQci7i2yG+GaYPTRxLAeQ== X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--14.534100-4.000000 X-TMASE-Version: SMEX-12.5.0.1300-8.5.1010-24196.005 X-MDID: 1541155637-1vkvYJkkqC5V 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: Fri, 02 Nov 2018 10:47:18 -0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Language: en-US Hi Sean, This solves my problem, thank you very much! Cheers, Tom On 01/11/2018 16:43, Sean Brogan wrote: > Tom, > > Short answer: It is tool dependent. > > 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). > Once the firmware gets to processing the actual payload (after stripping all the standard headers/structures) our firmware implementation makes use of a EDK2 defined header that contains this information as well as lowest supported version. See here. https://github.com/tianocore/edk2/blob/master/FmpDevicePkg/Include/Library/FmpPayloadHeaderLib.h > > Hope that helps. > > 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 firmware and the driver using capsules. I get the ESRT populated by the platform EsrtFmpDxe, that's all great. > > However, it seems that EFI_FIRMWARE_MANAGEMENT_CAPSULE_IMAGE_HEADER does not contain any version information about the firmware blob (neither Version nor ImageId). How is the OS tool that stages capsules supposed to know whether 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=https%3A%2F%2Flists.01.org%2Fmailman%2Flistinfo%2Fedk2-devel&data=02%7C01%7Csean.brogan%40microsoft.com%7Cdbe4babaafe84ee0a01c08d6400699cd%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636766794429049806&sdata=CaAhG3UhI2%2BqSA6ml7USrFpGjuENBMNS4HK5xKuUGec%3D&reserved=0