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 F3651C05027 for ; Fri, 3 Feb 2023 20:23:31 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 335F185FBA; Fri, 3 Feb 2023 21:23:29 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.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=konsulko.com header.i=@konsulko.com header.b="gQuG5IfV"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 40C3585FBA; Fri, 3 Feb 2023 21:23:27 +0100 (CET) Received: from mail-qt1-x830.google.com (mail-qt1-x830.google.com [IPv6:2607:f8b0:4864:20::830]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C42F785CC6 for ; Fri, 3 Feb 2023 21:23:24 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x830.google.com with SMTP id c2so6864110qtw.5 for ; Fri, 03 Feb 2023 12:23:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=YmPSvL7y6/+uoHHThfHcWVm/aGpE2hIVxpkpb/gvQgs=; b=gQuG5IfV1GHqmDAVAKW0H40YWS0chAQiFcXbjH17RPoQHakvtCr4utA/W2K9kpwnrb 8Mx0qQgGXMf06z+0kJpNr/PPxHugKw6tG3ZpEU0RzyNVTShXJXrVQE4xzFEiz5OXK+l9 3XGOuzwDvAMKur7kGqumPpBsLBjqml5zGiaus= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=YmPSvL7y6/+uoHHThfHcWVm/aGpE2hIVxpkpb/gvQgs=; b=6GZqkk2TS3ifuNn8L6I3bC3RodjnosVoK+7zKcm+o0Z6MA9Mmp7Pn1pddQfmNUHNv6 eFXCWbxH7WuGTyOvh438LDhYz3DoG+bOBuo8VxC+2BFy66gVHsvEbuh26GVmlC6rb/1+ TppKSa+7tyUsDPIfQNok3uE8DzGPJIdMg7gkF8qTQKvbUtLRrQxxnT7dxAFGYdxp7P4l a9K+t1NgDvx9zwo8LHRE+K+gyMeP7KYjRBYtdO86x2nGUVVe2EbYpvoXyT4jvl2gWDpZ 8kK02CsitIakljlxKgIgqOBVsoC8PRImtq1G9GMq+7a/UZJGVRcB0iS8xQDHebTF+bEp j8EA== X-Gm-Message-State: AO0yUKWW8T9UHhpeXLp8Ew49xUb9DtMZz/ohRaZyZa1vrW17Ls5TUV22 9xnpx3hEDHUBDxwN13nYFwUYhQ== X-Google-Smtp-Source: AK7set8XfNDim7bAOT1sSWRgsEC5PvBYll6qVjIUlj416mcdn4y512OpSonFgWoLDcEU1nr5lLaIaQ== X-Received: by 2002:a05:622a:1d4:b0:3ba:13d8:67b5 with SMTP id t20-20020a05622a01d400b003ba13d867b5mr176768qtw.36.1675455803414; Fri, 03 Feb 2023 12:23:23 -0800 (PST) Received: from bill-the-cat (2603-6081-7b00-6400-d049-1ce1-b939-5115.res6.spectrum.com. [2603:6081:7b00:6400:d049:1ce1:b939:5115]) by smtp.gmail.com with ESMTPSA id l23-20020ac84597000000b003b85ed59fa2sm2166394qtn.50.2023.02.03.12.23.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Feb 2023 12:23:22 -0800 (PST) Date: Fri, 3 Feb 2023 15:23:20 -0500 From: Tom Rini To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: Simon Glass , Nishanth Menon , u-boot@lists.denx.de Subject: Re: [PATCH u-boot 3/3] tools: imagetool: Skip autodetection of gpimage type Message-ID: References: <20230129164555.9940-1-pali@kernel.org> <20230129164555.9940-3-pali@kernel.org> <20230203192420.ueeganjqfwdailng@pali> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="7gD5P0fS6THzwq+N" Content-Disposition: inline In-Reply-To: <20230203192420.ueeganjqfwdailng@pali> X-Clacks-Overhead: GNU Terry Pratchett 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.6 at phobos.denx.de X-Virus-Status: Clean --7gD5P0fS6THzwq+N Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 03, 2023 at 08:24:20PM +0100, Pali Roh=E1r wrote: > On Monday 30 January 2023 13:02:42 Tom Rini wrote: > > On Mon, Jan 30, 2023 at 08:50:15AM -0700, Simon Glass wrote: > > > On Sun, 29 Jan 2023 at 09:46, Pali Roh=E1r wrote: > > > > > > > > gpimage type requires only that two first 32-bit words of data file= are > > > > non-zero. So basically every random data file can be guessed and ve= rified > > > > as gpimage. So completely skip gpimage type from image autodetectio= n code > > > > to prevent lot of false positive results. Data file with gpimage ty= pe can > > > > be still verified and parsed by explicitly specifying -T gpimage. > > > > > > > > Signed-off-by: Pali Roh=E1r > > > > --- > > > > tools/imagetool.c | 6 ++++++ > > > > 1 file changed, 6 insertions(+) > > > > > > >=20 > > > Reviewed-by: Simon Glass > >=20 > > I see we've had problems with gpimage before too. This seems reasonable > > but I'm adding Nishanth here too, as the current interested person in > > keystone2 platforms, to see if there's any other / better ways to > > address this problem. >=20 > I do not think that there is a better solution for gpimage. Basically it > is not possible to write autodetection code for gpimage due to its > generic nature. So the best what we can do is to disable gpimage in > autodetection code. >=20 > I would suggest to apply this patch, so people can test their build > setups sooner than later. Yes, I will pick this up before -rc2. I was wondering / hoping Nishanth might have access to further internal information that might be helpful here. --=20 Tom --7gD5P0fS6THzwq+N Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmPdbTUACgkQFHw5/5Y0 tywVngwAk+1JWHcdEx0eEp/4XCPNKUwc38QOdew0HsUuQWxHIcLWNfAhQp0qWw9i 1nf67+qO8mCPVdy6kZzCLTqlHKxoSqACj1ca/kwhwcWAa86zp26L8XASIvYaKMYS jgtw/sEp3Q0EPL8H1diMp+jMb9/YlWQVA7i/W15L7QA10QT78YLlwnAgBHqcjQ35 hEMRx3q6B3tiBHgDhG3fNYJUPhsFgLplcerPzwWsWa6HvXW+oHMpik0bUA2WmMGz NlO0dnl1sa8OuUi1IoBj0rkLi7B7x1rQ60sY3/6hA85HsgkeGnn44SpHRooshm9h gdHapC2euZN4MPr02jUBhVIIjIhMj8A6SJv5JqA/smxK/bwZ71MLWFL6iY4TTrCH X9bvyBkoRHeBciCDgPkt5H/9PX50Vx+ivrug8omSfvQ5rnMHdS3/RR/X/NQvA8e9 d6qxM83f0Gt9nxfvx4r312ur3Pek3wEVMnOgA2aEkUUGo+EhcdWyK41wTDbOQb+M FB5k2vr1 =TK29 -----END PGP SIGNATURE----- --7gD5P0fS6THzwq+N--