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 DD619C433EF for ; Mon, 28 Feb 2022 11:48:54 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1B6C983A7A; Mon, 28 Feb 2022 12:48:52 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=siemens.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=siemens.com header.i=@siemens.com header.b="Sp6etJYi"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C0BE183A92; Mon, 28 Feb 2022 12:48:49 +0100 (CET) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on062a.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe1f::62a]) (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 0BFF68309E for ; Mon, 28 Feb 2022 12:48:46 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=siemens.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jan.kiszka@siemens.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZJMLKnAo9Wuj+tZDZ4Izeyr2zfmoyR/cnFr7cT83L3lfGVBElZN3a0o5t9fuhZudgkBSZUm6CQZWzRf8b0Bj62edCt32OSK414NxIUvkEARyAC0ScS7Z7AR0p0+HtIVVh6IyP/ve9//hJZNMLSHo5P919A85acY6UnduREKFSL4Y+pyxoab0TdMA17zIK+sg3STAFK4nWNV0y6F//utBh4db++GIQuRxN0I2Q+chIKMtqXUN2vSZTu3Vvow0auo5SM6rQCphI/htWlhvJbgRy/2a5PQupP3krWABq43YLePk+XH0bzxOT6QK4qKpJ4Ixe7iE6SS22F0dZ2mNWVtdgw== 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=t2mOfLZ8GHMIjPcFO/Pr2Bm1i6gbyEzSXWxUvBSZr4A=; b=LSEaaU/Uw3NutpnB1hkGwdf54y41Fl2rBZ9KW9x3n9aInr3c8Tr20oHQkJoAd5p5c3Alu0FiVF59JVE1WUGSyCVwGlJejOQnZyhD+OhdK7cMbKmFml2ZI2DQE9avkcu9fsq+Jx7MAqrTAvy5hUinumBODuys75Cc/Y5Q1Flo6xWKXOfSD+JXJVco+16k5qhLXwVlaP4OUI4UKW78zWhXIxiCYYRW2udfIRb/F6V1cGysMj/SpgWRL3VEVYGTtQzkkfV1Ftvp8nomhIKcO1g3jw8DvJY1lvUmRuqza+3t+78zcqLHEX6gXFYs6NYfs08cNrlDx6ppPkNPxj/KN7th4g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 194.138.21.73) smtp.rcpttodomain=chromium.org smtp.mailfrom=siemens.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=siemens.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=siemens.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=t2mOfLZ8GHMIjPcFO/Pr2Bm1i6gbyEzSXWxUvBSZr4A=; b=Sp6etJYim+rfcU2qYXgzldPcyHKtoSu0BaHxfvwGvu449ah+8Ch0wXLC4tDI62BVYJxSxrGdbmmEAiGySOkb66xhfU0MU9XQwcdcou2sI1RyVhog9ZyvBD71duW1YqnVk0eb4QmNXjG1ShpFkVo1h2ZTOKROSL1GlJAzE0RKkSmDhpE+vfDyTbTxzdefJbBf96y8o98ln0Z8kb+DNeC7ZNr+hk2coZHF3kdjMNl0Q247tvFoD6SqqPfJv+Swd9NGObd/cUYHyTRo1ul99nu1+DXMJslmLAfYbI8OgeM3t980KRdu1/6VizSfSXeyF7r65GHyaMWFzyNXUPPBKyZmvg== Received: from SV0P279CA0071.NORP279.PROD.OUTLOOK.COM (2603:10a6:f10:14::22) by PA4PR10MB4464.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:102:106::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.22; Mon, 28 Feb 2022 11:48:44 +0000 Received: from HE1EUR01FT051.eop-EUR01.prod.protection.outlook.com (2603:10a6:f10:14:cafe::f6) by SV0P279CA0071.outlook.office365.com (2603:10a6:f10:14::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.23 via Frontend Transport; Mon, 28 Feb 2022 11:48:44 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 194.138.21.73) smtp.mailfrom=siemens.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=siemens.com; Received-SPF: Pass (protection.outlook.com: domain of siemens.com designates 194.138.21.73 as permitted sender) receiver=protection.outlook.com; client-ip=194.138.21.73; helo=hybrid.siemens.com; Received: from hybrid.siemens.com (194.138.21.73) by HE1EUR01FT051.mail.protection.outlook.com (10.152.1.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5017.22 via Frontend Transport; Mon, 28 Feb 2022 11:48:44 +0000 Received: from DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) by DEMCHDC9SNA.ad011.siemens.net (194.138.21.73) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.18; Mon, 28 Feb 2022 12:48:43 +0100 Received: from [167.87.0.55] (167.87.0.55) by DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.18; Mon, 28 Feb 2022 12:48:43 +0100 Message-ID: Date: Mon, 28 Feb 2022 12:48:42 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH v2 4/5] binman: Convert FIT entry type to a subclass of Section entry type Content-Language: en-US To: Simon Glass , Alper Nebi Yasak CC: U-Boot Mailing List , Heiko Thiery References: <20220207220809.4497-1-alpernebiyasak@gmail.com> <20220207220809.4497-5-alpernebiyasak@gmail.com> <1c7e5656-87f8-7d87-cb50-aead7b9a5ff1@siemens.com> <3d176bab-dc74-3ee2-9014-81401971ba8d@siemens.com> <10793ff6-12b6-7b3b-840b-c6f49f9185da@siemens.com> From: Jan Kiszka In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [167.87.0.55] X-ClientProxiedBy: DEMCHDC8A1A.ad011.siemens.net (139.25.226.107) To DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e1451f3a-0b99-493f-dcce-08d9fab045d8 X-MS-TrafficTypeDiagnostic: PA4PR10MB4464:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iMNggHz+CcOtA8ux05AHvi3cizDN2AhRVGnbdjq/PlVlIuETu+xzqCVaidW1PkNdUApfnBqLW9NPANvkwjUx0N80qXtBY2P2eF5CIPMQkfXCNuDIORxphCzCCH5yxmqbVw0nxLEuqdt9dy291H/rQ+ZJ/541o9zP6URd9jYJXjlAhHotPGHwvii5jN0WBl8i2uQGcjYG53BMA3FyH/lMpETYklN0vPBmc6HQJL7Apol92JcRIUpvXy49zwptq69VNG6X/IOKFr9dnFNgG8X55oUbeVr96Jd5zvmL/kuILGufd+QwcdXLLd7bHiu0SfhCJPrWP8hCWKnUbzFEeVTlg/I2v74kC00UE7Ovnh8nD7U8c/VWT3o4yX7DcRJX/5SSy52ufmcilPtwDew8m8c7dnRwBCLnoBQfYUUk3V0L2ba4/EEaZJ09uuTdi+oNQlDzQB2PbRd/SEhRpZL4QFwtQhhulp72t7chwA706BaiyWgOv9wzgBGWx6AYoN7yWnEVmA9BkDOKpQTKbZRw1/ofkl4I8tSR8OsNGbcOgZlCu3VuA6OYVaAM5yDHVS8cwF7PaeiVCA5OnR5bhFebTf4ibQRhBTtz40yFv55bsN9n6E8u77jl5TfAR+2cy9/8Jam38LTvw8D2twFJY9bPpTNWQwKKPTeBP8SoOxJSLE0v14BygmQ8vPVckjjU7Ynjm2qxDRXFSbcUETi+g+gR/Xq+pcns12vwd1ooKyrDOysBsJoM9SOh5Z6rP6g9pl35B71Ly/cKTKzTfsU5mGCIHSzRtA== X-Forefront-Antispam-Report: CIP:194.138.21.73; CTRY:DE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:hybrid.siemens.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230001)(4636009)(46966006)(36840700001)(40470700004)(8936002)(110136005)(36756003)(8676002)(508600001)(47076005)(6706004)(2616005)(956004)(54906003)(31686004)(44832011)(53546011)(316002)(5660300002)(4326008)(16576012)(70586007)(70206006)(336012)(2906002)(26005)(82310400004)(83380400001)(16526019)(186003)(36860700001)(86362001)(31696002)(40460700003)(356005)(82960400001)(81166007)(3940600001)(36900700001)(43740500002); DIR:OUT; SFP:1101; X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Feb 2022 11:48:44.1882 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e1451f3a-0b99-493f-dcce-08d9fab045d8 X-MS-Exchange-CrossTenant-Id: 38ae3bcd-9579-4fd4-adda-b42e1495d55a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=38ae3bcd-9579-4fd4-adda-b42e1495d55a; Ip=[194.138.21.73]; Helo=[hybrid.siemens.com] X-MS-Exchange-CrossTenant-AuthSource: HE1EUR01FT051.eop-EUR01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR10MB4464 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.5 at phobos.denx.de X-Virus-Status: Clean On 23.02.22 23:59, Simon Glass wrote: > Hi Alper, > > On Tue, 22 Feb 2022 at 11:58, Alper Nebi Yasak wrote: >> >> On 21/02/2022 07:40, Simon Glass wrote: >>> On Sat, 19 Feb 2022 at 08:53, Simon Glass wrote: >>>> On Fri, 18 Feb 2022 at 10:34, Alper Nebi Yasak wrote: >>>>> I can reproduce this and tried a few things, but more issues just kept >>>>> popping up (outside u-boot as well). I got it to a point where the >>>>> command re-packs the FIT and the image but quite wrongly. The offset and >>>>> image-pos properties get added in the FIT, and the image main-section >>>>> just concatenates all entries without regard to set offsets. I'll >>>>> need more time to work those out, then to add tests and send patches. >>>> >>>> I am going to try to merge my fit generator series today. >>>> >>>> One issue I notice is that the conversion to use entry_Section changes >>>> the contents of the self._fit_entries dict. Before it was keyed by >>>> relative path, but entry_section keys self._entries by node name. >> >> Yeah, this causes an error in image.FindEntryPath() while trying to >> replace e.g. "/fit@0x280000/images/u-boot" since there is no "images" >> entry in the FIT. Changing the key to the node name works, but then the >> "binman replace" invocation needs to use e.g. "/fit@0x280000/u-boot". >> >>>> >>>> We may need to split it up. I will see if I can at least merge my >>>> series, which should not make things any worse, then see if I can come >>>> up with ideas. >>>> >>>> Thanks for the diff. >>> >>> I did a bit more fiddling and pushed a tree to u-boot-dm/fit-working >>> >>> It refactors the fit implementation to separate scanning from emitting >>> the tree and I think this might help quite a bit. I'll send out the >>> series when I get a chance in the next few days or so. >> >> I've also managed to somewhat fix the rest of the issues I wrote, so now >> I can replace a FIT entry with a modified one (having a different u-boot >> file), or replace a subentry of the FIT with an arbitrary file. >> >> I couldn't look at your new version much but I'll try to see how good my >> fixes apply on top of it, will probably take me longer to patchify things. > > OK I'm going to send a new series with (most of) your suggested fixes > a new patches, then my refactoring. Just need to get things through > CI. > What's the status here? I've just rebased over master, a simple revert of this commit no longer works, and the regression is still present. Are there any pending patches that fixes this and I should pick locally in order to rebase/test my pending things? Thanks, Jan -- Siemens AG, Technology Competence Center Embedded Linux