From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4431BC54E4A for ; Fri, 8 Mar 2024 08:52:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=9MoxmRP0WYFvHJ56jkCwcVEAApBOlOtj/Al24Fu+Cyg=; b=PZSq3EKvxnHHIQ MYhV8gPc6LMcd1BwxB+tvg6PGq08YjKkdXH08wqJ9wjajvp7tN2apU49ypU6oMe+okivMgXcyGDsD fMjkoF5V58O5eOcLDhwUrn17mYLqPDJpzgq6iu6/wubjtjjs+rH0aFOKjq/IH6uA9mbL0xmvbsXj1 8Clbj4ZK6qj7OF7JKWOZSD98RkUuKwR2ULcO8ZvzC014yWWmuh1efzQLBJ66qwfT5w3Jldqg5UKTZ GNzj231StivFjyeqH4yPjosxfNMiFgdYNbX9mcIdV1ZP18ZcPU0O+tK6OlkFuQKMA7IhJIRvMYsHe WI+IIsRZzQ9tDinLpKKw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1riVxH-00000008QQx-2AXG; Fri, 08 Mar 2024 08:51:51 +0000 Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1riUrz-00000008BjY-0SVv for linux-mtd@lists.infradead.org; Fri, 08 Mar 2024 07:42:20 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id DBB4760005; Fri, 8 Mar 2024 07:42:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1709883735; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RkispZ2cSgHHvQHUKtQPYvm4JRgYfxl+31ZzbV0ajJQ=; b=gLlv8wGxjiogeG9C46oG5EgFoqN4SH1b9sabNz5g3QO62yEOKg3XJIQW0hFi2a4mlTo9/J wDoyd7Ks0a9nOehGgDBetroeoVaVTpjSUCvwUdrENEVJ9GDuL1UA1UNTIwOIUkdVv7PDl0 HLNnzR8Dn0hQvEKvIyQYWURylmHBn7971Bw1G7BDNxLq55CYjsQOW+BxO91WXoQ2oMPJVa BRg5CV53PmNRQlKzjl1MjxvhcrVmwlRk7/L9gakI8vPJfBh17Jt0/24YwSwpQHdYgAzNV6 1MSXvZT0koXMkeBdc5LURUgoUaMY53WPEDVkI+xX8/0aO6DbnEZN41o86mVc5A== Date: Fri, 8 Mar 2024 08:42:12 +0100 From: Miquel Raynal To: Simon Glass Cc: Rob Herring , devicetree@vger.kernel.org, linux-mtd@lists.infradead.org, Tom Rini , Michael Walle , U-Boot Mailing List , Conor Dooley , Krzysztof Kozlowski , Pratyush Yadav , =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= , Richard Weinberger , Vignesh Raghavendra , linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 1/3] dt-bindings: mtd: partitions: Add binman compatible Message-ID: <20240308084212.4aa58761@xps-13> In-Reply-To: References: <20231116172859.393744-1-sjg@chromium.org> <20231208150042.GA1278773-robh@kernel.org> <20231214172702.GA617226-robh@kernel.org> <20240205085056.44278f2c@xps-13> <20240205131755.3462084f@xps-13> Organization: Bootlin X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-GND-Sasl: miquel.raynal@bootlin.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240307_234219_449182_4205BCFA X-CRM114-Status: GOOD ( 47.87 ) X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+linux-mtd=archiver.kernel.org@lists.infradead.org SGkgU2ltb24sCgpzamdAY2hyb21pdW0ub3JnIHdyb3RlIG9uIEZyaSwgOCBNYXIgMjAyNCAxNTo0 NDoyNSArMTMwMDoKCj4gSGkgTWlxdWVsLAo+IAo+IE9uIFR1ZSwgNiBGZWIgMjAyNCBhdCAwMTox NywgTWlxdWVsIFJheW5hbCA8bWlxdWVsLnJheW5hbEBib290bGluLmNvbT4gd3JvdGU6Cj4gPgo+ ID4gSGkgU2ltb24sCj4gPiAgCj4gPiA+ID4gPiA+ID4gPiA+ID4gPiA+ID4gPiArZGVzY3JpcHRp b246IHwKPiA+ID4gPiA+ID4gPiA+ID4gPiA+ID4gPiA+ICsgIFRoZSBiaW5tYW4gbm9kZSBwcm92 aWRlcyBhIGxheW91dCBmb3IgZmlybXdhcmUsIHVzZWQgd2hlbiBwYWNrYWdpbmcgZmlybXdhcmUK PiA+ID4gPiA+ID4gPiA+ID4gPiA+ID4gPiA+ICsgIGZyb20gbXVsdGlwbGUgcHJvamVjdHMuIEl0 IGlzIGJhc2VkIG9uIGZpeGVkLXBhcnRpdGlvbnMsIHdpdGggc29tZQo+ID4gPiA+ID4gPiA+ID4g PiA+ID4g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iBtYWlsaW5nIGxpc3QK aHR0cDovL2xpc3RzLmluZnJhZGVhZC5vcmcvbWFpbG1hbi9saXN0aW5mby9saW51eC1tdGQvCg== From mboxrd@z Thu Jan 1 00:00:00 1970 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 68019C5475B for ; Fri, 8 Mar 2024 07:42:21 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9C51E88010; Fri, 8 Mar 2024 08:42:19 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=bootlin.com header.i=@bootlin.com header.b="gLlv8wGx"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1D6B188019; Fri, 8 Mar 2024 08:42:19 +0100 (CET) Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) (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 9B65D87AEC for ; Fri, 8 Mar 2024 08:42:16 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=miquel.raynal@bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id DBB4760005; Fri, 8 Mar 2024 07:42:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1709883735; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RkispZ2cSgHHvQHUKtQPYvm4JRgYfxl+31ZzbV0ajJQ=; b=gLlv8wGxjiogeG9C46oG5EgFoqN4SH1b9sabNz5g3QO62yEOKg3XJIQW0hFi2a4mlTo9/J wDoyd7Ks0a9nOehGgDBetroeoVaVTpjSUCvwUdrENEVJ9GDuL1UA1UNTIwOIUkdVv7PDl0 HLNnzR8Dn0hQvEKvIyQYWURylmHBn7971Bw1G7BDNxLq55CYjsQOW+BxO91WXoQ2oMPJVa BRg5CV53PmNRQlKzjl1MjxvhcrVmwlRk7/L9gakI8vPJfBh17Jt0/24YwSwpQHdYgAzNV6 1MSXvZT0koXMkeBdc5LURUgoUaMY53WPEDVkI+xX8/0aO6DbnEZN41o86mVc5A== Date: Fri, 8 Mar 2024 08:42:12 +0100 From: Miquel Raynal To: Simon Glass Cc: Rob Herring , devicetree@vger.kernel.org, linux-mtd@lists.infradead.org, Tom Rini , Michael Walle , U-Boot Mailing List , Conor Dooley , Krzysztof Kozlowski , Pratyush Yadav , =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= , Richard Weinberger , Vignesh Raghavendra , linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 1/3] dt-bindings: mtd: partitions: Add binman compatible Message-ID: <20240308084212.4aa58761@xps-13> In-Reply-To: References: <20231116172859.393744-1-sjg@chromium.org> <20231208150042.GA1278773-robh@kernel.org> <20231214172702.GA617226-robh@kernel.org> <20240205085056.44278f2c@xps-13> <20240205131755.3462084f@xps-13> Organization: Bootlin X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: miquel.raynal@bootlin.com X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.8 at phobos.denx.de X-Virus-Status: Clean Hi Simon, sjg@chromium.org wrote on Fri, 8 Mar 2024 15:44:25 +1300: > Hi Miquel, >=20 > On Tue, 6 Feb 2024 at 01:17, Miquel Raynal wr= ote: > > > > Hi Simon, > > =20 > > > > > > > > > > > > > > +description: | > > > > > > > > > > > > > > + The binman node provides a layout for firmwa= re, used when packaging firmware > > > > > > > > > > > > > > + from multiple projects. It is based on fixed= -partitions, with some > > > > > > > > > > > > > > + extensions, but uses 'compatible' to indicat= e the contents of the node, to > > > > > > > > > > > > > > + avoid perturbing or confusing existing insta= llations which use 'label' for a > > > > > > > > > > > > > > + particular purpose. > > > > > > > > > > > > > > + > > > > > > > > > > > > > > + Binman supports properties used as inputs to= the firmware-packaging process, > > > > > > > > > > > > > > + such as those which control alignment of par= titions. This binding addresses > > > > > > > > > > > > > > + these 'input' properties. For example, it is= common for the 'reg' property > > > > > > > > > > > > > > + (an 'output' property) to be set by Binman, = based on the alignment requested > > > > > > > > > > > > > > + in the input. > > > > > > > > > > > > > > + > > > > > > > > > > > > > > + Once processing is complete, input propertie= s have mostly served their > > > > > > > > > > > > > > + purpose, at least until the firmware is repa= cked later, e.g. due to a > > > > > > > > > > > > > > + firmware update. The 'fixed-partitions' bind= ing should provide enough > > > > > > > > > > > > > > + information to read the firmware at runtime,= including decompression if > > > > > > > > > > > > > > + needed. =20 > > > > > > > > > > > > > > > > > > > > > > > > > > How is this going to work exactly? binman reads t= hese nodes and then > > > > > > > > > > > > > writes out 'fixed-partitions' nodes. But then you= 've lost the binman > > > > > > > > > > > > > specifc parts needed for repacking. =20 > > > > > > > > > > > > > > > > > > > > > > > > No, they are the same node. I do want the extra inf= ormation to stick > > > > > > > > > > > > around. So long as it is compatible with fixed-part= ition as well, this > > > > > > > > > > > > should work OK. =20 > > > > > > > > > > > > > > > > > > > > > > How can it be both? The partitions node compatible ca= n be either > > > > > > > > > > > 'fixed-partitions' or 'binman'. =20 > > > > > > > > > > > > > > > > > > > > Can we not allow it to be both? I have tried to adjust = things in > > > > > > > > > > response to feedback but perhaps the feedback was leadi= ng me down the > > > > > > > > > > wrong path? =20 > > > > > > > > > > > > > > > > > > Sure, but then the schema has to and that means extending > > > > > > > > > fixed-partitions. =20 > > > > > > > > > > > > > > > > Can we cross that bridge later? There might be resistance t= o it. I'm > > > > > > > > not sure. For now, perhaps just a binman compatible works w= ell enough > > > > > > > > to make progress. =20 > > > > > > > > > > > > > > Is there any way to make progress on this? I would like to ha= ve > > > > > > > software which doesn't understand the binman compatible to at= least be > > > > > > > able to understand the fixed-partition compatible. Is that ac= ceptable? =20 > > > > > > > > > > > > There's only 2 ways that it can work. Either binman writes out > > > > > > fixed-partition nodes dropping/replacing anything only defined = for > > > > > > binman or fixed-partition is extended to include what binman ne= eds. =20 > > > > > > > > > > OK, then I suppose the best way is to add a new binman compatible= , as > > > > > is done with this v6 series. People then need to choose it instea= d of > > > > > fixed-partition. =20 > > > > > > > > I'm sorry this is not at all what Rob suggested, or did I totally > > > > misunderstand his answer? > > > > > > > > In both cases the solution is to generate a "fixed-partition" node.= Now > > > > up to you to decide whether binman should adapt the output to the > > > > current schema, or if the current schema should be extended to > > > > understand all binman's output. > > > > > > > > At least that is my understanding and also what I kind of agree wit= h. =20 > > > > > > I do want to binman schema to include all the features of Binman. > > > > > > So are you saying that there should not be a 'binman' schema, but I > > > should just add all the binman properties to the fixed-partition > > > schema? =20 > > > > This is my current understanding, yes. But acknowledgment from Rob is > > also welcome. =20 >=20 > I am trying again to wade through all the confusion here. >=20 > There is not actually a 'fixed-partition' node. So are you saying I > should add one? There is already a 'partitions' node. Won't they > conflict? Sorry for the confusion, there is a 'partitions' node indeed. This node shall declare it's "programming model" (let's say), ie. how it should be parsed. What defines this programming model today is the 'fixed-partitions' compatible. I think we (Rob and myself, but again, Rob, please confirm) agree on the fact that we don't want to duplicate the fixed-partitions compatible/logic and thus the binman compatible was rejected. Hence, in order to move forward, I would definitely appreciate an update of the fixed-partitions binding in order to support what binman can generate. We are here talking about the output of binman, not its input. TBH I haven't understood the point in having binman's input parsed by the generic yaml binding. I would advise to focus on binman's output first because it feels more relevant, at a first glance. > Would it be possible for you to look at my patches and suggest > something? I think at this point, after so many hours of trying > different things and trying to understand what is needed, I could > really use a little help. I hope the above details will help. Thanks, Miqu=C3=A8l