From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 07 Jan 2025 09:01:36 +0100 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tV4Wu-000ERn-0m for lore@lore.pengutronix.de; Tue, 07 Jan 2025 09:01:36 +0100 Received: from bombadil.infradead.org ([2607:7c80:54:3::133]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tV4Wo-00019Z-Nh for lore@pengutronix.de; Tue, 07 Jan 2025 09:01:36 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=8goabkaMOZ/GAFEhYRt4Y1HfSd/bI70n6kTh+3zEYEU=; b=i4M1DQ49vGvkVNSltsY1TZ0nFQ 9ZqVRlJrmPF3zqKs1R554WoyDCGpUTi31IugxM2xFowsvm3ET/FHxs3Gt3S9CXT1QJLvi90Zl40Dx Xt3F9OEa84Dp+4jRN+CyPTzw6zEiNgVFZ9Amp5bgcvhXT1twX3pUqpEGJed6AeWTFCq6fxuo4Ofed udRnngbZ2iXszTwsIjP1oYlmd58CLBkuhyzx85yHC1WN4aottpxeRGXSOsO18dgcDyUqEYD6iUWlK F6GfrFEDgJniDdfNP9wvmCrj8ovQX75Ros/kFJ0HkGz+D6Ct6IY0TIsj9w5JSQEulvpEKV/WHeUQh m/HFSePQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tV4Vz-00000003pfL-3GtQ; Tue, 07 Jan 2025 08:00:39 +0000 Received: from mx1.emlix.com ([178.63.209.131]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tV4Q7-00000003oau-15ks for barebox@lists.infradead.org; Tue, 07 Jan 2025 07:54:39 +0000 Received: from mailer.emlix.com (p5098be52.dip0.t-ipconnect.de [80.152.190.82]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.emlix.com (Postfix) with ESMTPS id C20B35F8FF; Tue, 7 Jan 2025 08:54:32 +0100 (CET) Message-ID: <08eeaf77-9771-4dd4-9249-9ae788ef8265@emlix.com> Date: Tue, 7 Jan 2025 08:54:32 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: Marco Felsch Cc: barebox@lists.infradead.org References: <92d4dd39-529d-4e4c-b231-76c3ba1790a7@emlix.com> <20250107073718.67626a7dq3afqjaz@pengutronix.de> From: =?UTF-8?Q?Sebastian_Gro=C3=9F?= Autocrypt: addr=sebastian.gross@emlix.com; keydata= xsDNBGO/8pQBDAC0Ipx2sNlAJJndOttz/M79oI+d2ncKBjJHkPJgp8Iu6vgzIO3P1OydjkQZ PD1tcyHz3NwBQltRIkFx8wYPFVSXa9ExtbykEXCMPvsHFzN+DO0iviOpOSYtyBGGs43aOKhn q0xtiSXlHTjQp2uLNutAjkeFyoon0Ozp3WsyF9T7wEfX4EjQQBK74ZxK2F0X9lTF9NuZoV9A cD2pfPNbffk8tDZz8gGOnwBohLNNC84lsGRft9oMeD3Syl1PK3AEyH58ZZ2t40DvYi+w/jEO M8H7+mIKFG6/swRHIxV3oOCdcifJ8aqqGWyxcwZHQ3uFr4MmDxXpE2OmrPmk/7DLexwv5dfP aKMBvhImQjoIze3YYJhmjjXongFglZEGjxoDUslaipc8pEluhniyKim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ylIFY+tcvgRKinCqpuXIp/hWfyb5MFaiT kqHMhgrTOCIjHarOZVzGgsXOS128jAy+7sUqXxuJku2C95xxIY+ZlT6wgDZh/r/AdMxmNo1S sGEWh3Xeqf6fJLMRy+YJ0zvQTNweVObswR4GUnlDo8WQyakKRuwnIS8vT8EH351ZBFYByB+G oGlgeEGJk7jEcwW3lHF/GCO9sem4v985x8/GYXhE8T+/22WEzLkfLJcq67HfkKMfYxDH23s8 8VsAEQEAAcLA9gQYAQgAIBYhBA+NhF5PQNxsJ1q4AjtoVKg7fSOLBQJjv/KVAhsMAAoJEDto VKg7fSOLhaEL/3AqvXEj82IdC5ewuJnhsjdQs8Yi/ZZ0yaIpNqL7+zYp0k/8QCvxqnITrvxH +DtcoAaz8CCkSjHXufjR9X7WAw7z8XJVo9ZGH+ttQjVx/hIMOXuxCz0X1T5FEDFLg35MMyfO 8z256aOOo1oyIqCc0dERQk2aJDVuIBZQbqPhDpbE5W6llA5CwxtR/l2sTgHHQn2HBwEu5MM8 2Zt2/+EYNkZ0cHNSXr2NIxfjgmQtNqd+JVMA/f3ypvLy4m30Qjjj2R6V66HwGqxwB/jJID5E lL3CqKqVHPjpbdZco9Pz+QnkNSacz5HCRL3JGvJr21sp1Skut4rMCKvOZqaX3S/430xoTYXT 5/ZAtdRP6wz0tipDfKkCxi6+lNCGKLzKOQu2VOsqvYcWdalrMORfSsd9y2PAIYVERWY9AE3L CGOk9u+eUO7FP11CHXaRv3qmSckwQjU8iUfI1cL3jGxdwfeod6CFD4Rm+I4gv2KYjl4N/f3+ ZlrLrSHrCdYwzhLk7OyivQ== In-Reply-To: <20250107073718.67626a7dq3afqjaz@pengutronix.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250106_235435_445954_780B36D0 X-CRM114-Status: GOOD ( 11.82 ) X-BeenThere: barebox@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "barebox" X-SA-Exim-Connect-IP: 2607:7c80:54:3::133 X-SA-Exim-Mail-From: barebox-bounces+lore=pengutronix.de@lists.infradead.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.whiteo.stw.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-5.3 required=4.0 tests=AWL,BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.2 Subject: Re: bootm: fit-image: hash node name too strict X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on metis.whiteo.stw.pengutronix.de) Hi Marco, On 2025-01-07 8:37 AM, Marco Felsch wrote: >> Since the image is build by uboot's mkimage I would expect the itb's to be >> compatible. Or am I missing something? >> >> Changing the following line in the `its`, ie. its build script >> ``` >> - hash { algo = "${FIT_HASH_ALG}"; }; >> + hash@1 { algo = "${FIT_HASH_ALG}"; }; >> ``` >> made the fit-image work. > I can't find this line within the U-Boot src code. Can you provide a > link please? Sorry for the confusion. I meant the build script within yocto that generates the `its` and then the `itb` >> Perhaps another if-clause is required. Or some error message that states >> which property/string was searched for, >> since there were hashes in the image, but not where barebox expected them. > We could search for the legacy single 'hash' node name as well and print > a warning that this should be changed. I concur! Looking at `fit_image_verify_signature` this change might be necessary too for `signature` Regards, Sebastian -- Sebastian Groß, B.Sc. emlix GmbH Headquarters: Berliner Str. 12, 37073 Goettingen, Germany Phone +49 (0)551 30664-0, e-mail info@emlix.com District Court of Goettingen, Registry Number HR B 3160 Managing Directors: Heike Jordan, Dr. Uwe Kracke VAT ID No. DE 205 198 055 Office Berlin: Panoramastr. 1, 10178 Berlin, Germany Office Bonn: Bachstr. 6, 53115 Bonn, Germany http://www.emlix.com emlix - your embedded Linux partner