Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 901E0C433EF for ; Thu, 2 Dec 2021 11:18:12 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 11E1F832FC; Thu, 2 Dec 2021 12:18:09 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=armh.onmicrosoft.com header.i=@armh.onmicrosoft.com header.b="nCu0NGHI"; dkim=pass (1024-bit key) header.d=armh.onmicrosoft.com header.i=@armh.onmicrosoft.com header.b="nCu0NGHI"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B3EBA830C0; Thu, 2 Dec 2021 08:10:46 +0100 (CET) Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on0603.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe0d::603]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2069482F5F for ; Thu, 2 Dec 2021 08:10:41 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=Sandrine.Bailleux@arm.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OlaMxnTeYI40Fm3spRePQWjKBBNHRN9/+1TbeGsguNw=; b=nCu0NGHICwgEvowFPno66h8qMefXpLlrnj0Ku4agZjlH2iQKT2FghSE+GLbCmQVzHj2yrMAuVi85kqmI6xoT8JOkJKXtM0xamso8g8eqz7/DkNd8EentPb7+G6QQ5V281Qs/XQC8Glckndlsu8HmgPgNFR72/vhMT1e9D253pAY= Received: from DB7PR03CA0087.eurprd03.prod.outlook.com (2603:10a6:10:72::28) by VI1PR08MB2893.eurprd08.prod.outlook.com (2603:10a6:802:1e::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4734.23; Thu, 2 Dec 2021 07:10:38 +0000 Received: from DB5EUR03FT026.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:72:cafe::a2) by DB7PR03CA0087.outlook.office365.com (2603:10a6:10:72::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4755.11 via Frontend Transport; Thu, 2 Dec 2021 07:10:38 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT026.mail.protection.outlook.com (10.152.20.159) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4755.13 via Frontend Transport; Thu, 2 Dec 2021 07:10:38 +0000 Received: ("Tessian outbound 157533e214a9:v110"); Thu, 02 Dec 2021 07:10:38 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 7e2cec25ad271858 X-CR-MTA-TID: 64aa7808 Received: from 72805777843f.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 349D3B99-D501-4FBC-8E70-B62B789B237C.1; Thu, 02 Dec 2021 07:10:31 +0000 Received: from EUR04-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 72805777843f.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 02 Dec 2021 07:10:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UxV+Rxqaa/YizW5l2ZPfFhIBgoz9/tVdpSxDm/IrkrG7gWYgwg0IG2t8J1rBn16gymOhPK6I9GDjbuSKDiouBOy2u5LoLVBJk8/dwXXGWpzUMEAy5eaZpHlaJUDiCWS48XfbhiQxHr5Ah3e7naq9YMaaJ5/ldiCwyx4DwqkgjqrA6Ytme3Re1qtjRAswbivF0XmKhnWPC2gxDHN+S1V4+jGeapbHvx86MlyriQkgmET3RY1YykQZ9aNvMzXdp1njPmb156P72pcAYlUuFvwcZgv8LEn8Bey+DJLjAeu2LTa6g5yUKzC0MT6TDdzvetubf7/hP2EiXYQ7XYAJlQZ8Kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=OlaMxnTeYI40Fm3spRePQWjKBBNHRN9/+1TbeGsguNw=; b=dqqZhbipH+19H3050BqV4ElxkOvLSRbDBCKQREn5A5AQn7iDxtkofWrGfw1d7PuKJfRwpqEua03dCWsktU328z8/y6fhV83ztehHzt/s/+Y7dK+GiIbHC7H3hLpkyWspptBunSJcqqMYQyYTVD7XWw5lvhs6KcFdWbB1tBjNS9u95t4XD9J0SJBfgGjM1JO8t+VUss09fCSYTPGu3AvIsfF+vvUD4n4XG7Pe+lsSSI6u7spXrLvkbo81f+qyAQlj3N0DNUSdCBDOJDsjUOWxzIz96+0RX+TF48gGT3GvSB6ljJFwC5MHb/KU8zFp1PJcqbL6mA231CmP/oZsk0nxBw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OlaMxnTeYI40Fm3spRePQWjKBBNHRN9/+1TbeGsguNw=; b=nCu0NGHICwgEvowFPno66h8qMefXpLlrnj0Ku4agZjlH2iQKT2FghSE+GLbCmQVzHj2yrMAuVi85kqmI6xoT8JOkJKXtM0xamso8g8eqz7/DkNd8EentPb7+G6QQ5V281Qs/XQC8Glckndlsu8HmgPgNFR72/vhMT1e9D253pAY= Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from PR2PR08MB4731.eurprd08.prod.outlook.com (2603:10a6:101:18::15) by PAXPR08MB6877.eurprd08.prod.outlook.com (2603:10a6:102:13a::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4713.19; Thu, 2 Dec 2021 07:10:28 +0000 Received: from PR2PR08MB4731.eurprd08.prod.outlook.com ([fe80::fd7e:8800:f457:2ed9]) by PR2PR08MB4731.eurprd08.prod.outlook.com ([fe80::fd7e:8800:f457:2ed9%5]) with mapi id 15.20.4734.024; Thu, 2 Dec 2021 07:10:27 +0000 Subject: Re: [PATCH 0/2] binman: Add support for ATF Firmware Image Package (FIP) To: Simon Glass Cc: =?UTF-8?Q?Fran=c3=a7ois_Ozog?= , Ilias Apalodimas , U-Boot Mailing List , Jan Kiszka References: <20211124040900.699274-1-sjg@chromium.org> <6294e425-675d-c6bb-a511-32e4cc132600@arm.com> From: Sandrine Bailleux Message-ID: <62972a85-56ce-ec61-8b26-b4493ba602b8@arm.com> Date: Thu, 2 Dec 2021 08:10:27 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: PR2PR09CA0016.eurprd09.prod.outlook.com (2603:10a6:101:16::28) To PR2PR08MB4731.eurprd08.prod.outlook.com (2603:10a6:101:18::15) MIME-Version: 1.0 Received: from [192.168.0.15] (87.231.85.146) by PR2PR09CA0016.eurprd09.prod.outlook.com (2603:10a6:101:16::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4734.22 via Frontend Transport; Thu, 2 Dec 2021 07:10:27 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: dd559959-fceb-46e9-112d-08d9b562d80d X-MS-TrafficTypeDiagnostic: PAXPR08MB6877:|VI1PR08MB2893: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:10000;OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: dZrj2KOKPH3KfNyFACUk0iHjfH0eJdK/4UZCMc6tutvSmOfE/0DxyPy1tAr61UFX+sporxrZwx99tEVhj1zm/y1zM/vNYkWlHk3UdiBd4bv4wrTSmocchp70LKIzHaI1h9XPND7h98gUzk94XIfUPcIXnAbf9Ro0E6JnaIlVG1Sl+V/dMDdrh3jYv8R4Rv8oqP3lGODHfaMKF9+xL1QYHqoUp4GMKAEe3rd8z5/gHHhBAP7G8QRYxqbma4fewDfTHbIHu8pZDWiQRsmpom0uGqhzIA0bAZjHSoIy0QUZL4RD2h8AtgjfCKIqKZGGvOqVuX92iL5TcD1UfemkNo3GsWsAXSoi8KrPqnrJv09nc9K8DeizkKG3zETxAbVw+Ice5uuq53lUGbK8TXtXZr3CFh1pLEzPuRsNeJCzK3YSpK5Sglf903r2MglWL3xsNwlgn0wQiSEXiWuKM8FYnkse/6F0OL6KKyPDM8iaPypo1YvRAypmEnfx94VBG/EyohahqcPOttSz7iwYDMTYczTKkza3PSX2EiUM6Ao8XjA1rpeYmXi7tIjGTNSaN56lvzFac5oeP2oFOKXD8WMkCG6qccVhhKYqVreoJANtblSXYEkDwqHzj1aaFc45uobq64TtoKlmTxaxuL5HJEHRuKecU6FcUbT/JQGXUaUHSJRjHyp4WscDER10r1VEJpizL6WdYYm2mkz06NabAXy744dJlC11Wt9g+lzAi/UQ/vtvM5UoHmSqNPcyFXVq3agW1OOjq1iqsVG7cKGhV73mbs1s/fp+c399P/kMYdt5If3NfaSZV+zeoOpP61uRuEzuxKd4JW+WrK2w+38QJIAaS/P7DwZDtX7gLojhH7nFtetXBsK1eChC1iHYQBlThHj+a/cTLR7wqybTrXJJFdKBk5tIgg== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PR2PR08MB4731.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(66574015)(44832011)(86362001)(6916009)(5660300002)(83380400001)(36756003)(52116002)(53546011)(66476007)(31696002)(186003)(6486002)(2906002)(956004)(2616005)(8936002)(316002)(54906003)(16576012)(4326008)(38350700002)(38100700002)(66946007)(31686004)(8676002)(508600001)(966005)(66556008)(26005)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR08MB6877 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT026.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 6a86de70-24b1-44ff-2919-08d9b562d186 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: orSWXsVUuj4dXGUuVITOOX5XOSD0YFyKGpwd2zzrj/0ZN+BeR8wAo/r35MkmQ6/eVeWJbNfgPtELxP9FNWRp4fXIeFtda1bv3d4VsR8QeDpb0KLZxCsbFdjJaOGbgOgNoQa+C2I9cXZUncBD6kc66gk38HtE+9rgx/1hvdUqEhXuiDkMA8DWQirFnq2vc0aFxnbilJ7WrP3sFIPdkv2pfEgHV1OXTx2tQA16BgRzh6v4cMEPjxzUdGG0B6KWaLKYfrC4+9zwOePpVa4ccCC6xGs1VAskEuPyG28tZwI2aMHbRRChn4j9K1PNKDz/tNWuzfNRlfoTQv8EhfK0zUIK1goFXSU1R6KJtlaaIWOtkv4cBJP55TCycBCRqKAACihWvdOgG0+Cap3JBO8fqNNbNkB/W8nes4v9cVaJ7FqKLTkona8WbkMgHSoFCao/uHkbAEv+z5cqHZLXe5CqG1se8nxhtAm1u0MTSJItvIGG+kyL6sYj/XDC2yPllXs/dNhGHgEM1ybenQ3VINrWBJ1w7DgnwRJYijKsk1RSr9HV2FLcK4mucuhpcyEMG7+NiSIkusDkFj/kfqX9BXGIpCi017NtnOVR0V2oGfLWx28z/2wa6K9OTUtk7VLKGz7AjHNo3UpQa9NEMOT650JW5eL7S+Sc8nOKksZGq1LcAJ/J08lzF/GJvdhfZGqbyMNPE7w8i0kO1TzGUIDXpk/o2wlHssKhhb3IzwXmJL3JVrG80uOcoyZhyAEzDbuteNoXQfZqrU7Jy4thEknNcXYk8Gl0L9jpJmWFaKDdU6un9F5qfrXDtJQoo5aC+K3I+Hc3hnzDNfKrSlyvmWzQKIwqjB53AOovMQLsC8QqklToP3hWyEg= X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(4636009)(36840700001)(46966006)(6862004)(82310400004)(966005)(26005)(44832011)(2906002)(5660300002)(2616005)(956004)(6486002)(336012)(186003)(4326008)(8676002)(81166007)(31686004)(53546011)(8936002)(508600001)(36756003)(16576012)(316002)(356005)(47076005)(86362001)(70206006)(70586007)(107886003)(31696002)(54906003)(36860700001)(83380400001)(66574015)(43740500002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Dec 2021 07:10:38.5708 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: dd559959-fceb-46e9-112d-08d9b562d80d X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DB5EUR03FT026.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB2893 X-Mailman-Approved-At: Thu, 02 Dec 2021 12:18:06 +0100 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.38 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Hi Simon, On 12/1/21 5:51 PM, Simon Glass wrote: > Hi Sandrine, > > On Wed, 1 Dec 2021 at 03:32, Sandrine Bailleux > wrote: >> >> Hi everyone, >> >> I am Sandrine Bailleux, from the Trusted Firmware-A project. Ilias >> Apalodimas CC'ed me on this thread. >> >> First of all, thanks for involving the TF-A developers in this thread >> and my apologies for the delay in responding. > > Thank you for your response. > >> >> On 11/25/21 6:01 PM, Fran=C3=A7ois Ozog wrote: >>> Hi Simon, >>> >>> On Thu, 25 Nov 2021 at 17:49, Simon Glass >> > wrote: >>> >>> Hi Fran=C3=A7ois, >>> >>> On Thu, 25 Nov 2021 at 08:11, Fran=C3=A7ois Ozog >>> > wrote: >>> > >>> > Hi Simon, >>> > >>> > >>> > >>> > >>> > On Thu, 25 Nov 2021 at 15:47, Ilias Apalodimas >>> > >>> wrote: >>> >> >>> >> +cc Sandrine >>> >> >>> >> On Thu, 25 Nov 2021 at 11:42, Ilias Apalodimas >>> >> >> > wrote: >>> >> > >>> >> > Hi Simon, >>> >> > >>> >> > >>> >> > On Wed, 24 Nov 2021 at 06:09, Simon Glass >> > wrote: >>> >> > > >>> >> > > >>> >> > > This series adds support for the FIP format as used by ARM >>> Trusted >>> >> > > Firmware (in particular TF-A). >>> >> > > >>> > >>> > I will use a question you use often "what problem are you trying >>> to solve?". If FIP format is used it means that TF-A/BL2 is going t= o >>> parse it and verify the hashes/signatures according to TF-A scheme. >>> > >>> > The packager will embed in a FIP components like Secure Monitor, >>> Secure hypervisor, Secure partitions code and manifests. >>> > >>> > All in all, U-Boot will be representing a small percentage of the >>> functionality offered by secure firmware as a whole and it feels >>> odd to make another implementation that is more "accessory" rather >>> than critical for the U-Boot community. It may be a good idea but I >>> wish you could explain it. >>> >>> Here is a talk about Binman, its goals and how it works. >>> >>> https://www.youtube.com/watch?v=3DL84ujgUXBOQ >>> >>> Think of Binman as a separate tool that brings everything together.= It >>> has grown out of U-Boot, largely because U-Boot is the main firmwar= e >>> in most cases. Getting U-Boot to start up and boot successfully is = the >>> goal of this packaging process. There are lots of instructions in t= he >>> tree and elsewhere about how to build an image comprising U-Boot an= d >>> various binary blobs. Binman aims to provide documentation for that >>> process and an image description that can be used to build an image >>> reliably. >>> >>> We are slowly converting these text instructions into an in-tree im= age >>> description. >>> >>> I believe that Binman can help bring order to the chaos that is >>> otherwise only going to grow, with lots of shell scripts, manual >>> instructions, obscure binary tools, etc. Binman brings everything >>> together and makes it clear what is needing/missing to build an ima= ge. >>> >>> > >>> >> > > This allows images to be created containing a FIP, which >>> itself contains >>> >> > > various binaries. With this, image creation can be handled >>> from an in-tree >>> >> > > image description instead of needing to perform a lot of >>> manual steps or >>> >> > > custom scripts to build the FIP. >>> >> > > >>> > >>> > That's not my experience of building a fip. Packaging even Linux >>> as a BL33 (instead of U-Boot) is very simple. >>> >>> But not automatic. With Binman you don't need to worry about the >>> packaging. It is done for you. You just need to find all the binary >>> blobs that are needed. This ability is quite important as firmware= is >>> fragmenting and getting very complicated these days. >>> >>> Binman runs twice...once in the U-Boot tree to do a build and again >>> later to repackage, put in a final fdtmap, add signatures and any >>> final pieces needed. >>> >>> See this patch for an example of complicated build instructions wit= h >>> Odroid-C2 (>10 binary blobs!) and how Binman can help (see the chan= ges >>> in the .rst file): >>> >>> https://patchwork.ozlabs.org/project/uboot/patch/20211124040954.699= 821-8-sjg@chromium.org/ >>> >>> That's indeed complicated! I can't comment whether this build process i= s >>> "canonical" as per TF-A standards so I'll let TF-A community comment. >>> Have you factored in the signature issues that Jan@Siemens has in the >>> overall process? >> >> I am a bit confused by the ask here. What input would you like from TF-A >> community? Are you asking for a code review or are you more interested >> in getting an opinion about adding support for FIP files in binman? > > The latter. > >> >> Regardless, I had a brief look at the patches and I have some early >> questions/comments. >> >> In the first patch, the commit message mentions that the tool parses the >> TF-A source code to get a list of supported UUIDs. However, >> tools/binman/fip_util.py seems to embed a hard-coded list of these >> UUIDs. I think I might be missing something there... Does it just mean >> that the said list was generated using some other script that parsed the >> TF-A code? Or does the tool really parse any TF-A code dynamically? > > A bit of both. The tool allows creating a new version of itself with > the updates parsed from the source code. For anything other than local > use, a patch must be submitted to do the updates. > > To run the tool:: > > $ tools/binman/fip_util.py -s /path/to/arm-trusted-firmware > Warning: UUID 'UUID_NON_TRUSTED_WORLD_KEY_CERT' is not mentioned > in tbbr_config.c file > Existing code in 'tools/binman/fip_util.py' is up-to-date > > If it shows there is an update, it writes a new version of `fip_util.py` > to `fip_util.py.out`. You can change the output file using the `-i` flag. > If you have a problem, use `-D` to enable traceback debugging.c > > You can see that in the docs in this patch: > > http://patchwork.ozlabs.org/project/uboot/patch/20211123210849.2.Idf2f2a4= 6d26cdecb56b6e9f40472f62fd062e346@changeid/ > >> As you may know, we sometimes add new image types in TF-A so I am just >> wondering how you intend to keep in sync with these changes and how >> automated the process would be. > > See above. > >> >> I second Fran=C3=A7ois' concerns about having 2 different implementation= s of >> fiptool, even if you're trying to solve different (or bigger) problems >> here. This could be confusing for users. Also, it is likely to generate >> maintenance work for both TF-A and U-boot projects. >> >> I am not saying the tool should stay within the TF-A project, though. >> It's been in the back of our minds for some time that this tool should >> have a life of its own, given that it packages more than just TF-A >> binaries, but also the normal world bootloader, secure payload, ... >> Also, I must admit that a python implementation looks better than a C >> implementation. Rewriting the tool in a scripting language has also been >> a goal of ours for a long time, although we never got round to do it. >> >> Simon, you've mentioned that binman has grown out of U-Boot. How >> independent is it from U-Boot right now? Are there lots of assumptions >> about U-Boot environment in it? Or is it already a general firmware >> image packager in your mind? I just want to explore the idea of >> replacing fiptool by binman in the future. I am sure we're not there >> yet, neither from TF-A perspective nor U-Boot, but I'd be keen on >> understanding how far we are. Also, this would need discussion with the >> broader TF-A community. > > Binman is a general-purpose packaging tool. It has some specific > features for U-Boot, Chrome OS and coreboot so far. I think it could > cover TF-A's needs also. > > A key point is that Binman has two related purposes: > - building an initial image, perhaps just for development/CI purposes > (no signatures, some blobs missing, etc.) > - building a production/real image when everything is available > > This is a concept that I very much struggle to get across, the > difference between building things and packaging them. I believe it is > becoming increasingly important to make this distinction, as firmware > fragments. > > Some people will prefer to have C tools instead of Python, but if that > is not a concern, then I believe Binman could be a good solution for > TF-A. A few nice properties are that it is easy to extend and has 100% > test coverage. > > I would be happy to help with what TF-A needs here. > > One last point is that Binman can provide an 'fdtmap' which is a full > image description. This can provide insight into every binary in the > image, whether it is in a FIP, FIT, CBFS or whatever. Binman happens > to support generating an FMAP (which is vaguely similar to FIP), which > could serve as a model for generating table-of-contents data in other > useful formats. > > There is a talk here that might help to explain the goals better: > > https://www.youtube.com/watch?v=3DL84ujgUXBOQ > > This patch shows converting lots of shell commands into a binman definiti= on: > > https://patchwork.ozlabs.org/project/uboot/patch/20211124040954.699821-8-= sjg@chromium.org/ Thanks for the information, this certainly looks interesting to me in the context of TF-A! I'll have a closest look at the patches and resources you've pointed me to. I'll also talk to my team, see what they think and get back to you. Regards, Sandrine IMPORTANT NOTICE: The contents of this email and any attachments are confid= ential and may also be privileged. If you are not the intended recipient, p= lease notify the sender immediately and do not disclose the contents to any= other person, use it for any purpose, or store or copy the information in = any medium. Thank you.