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 120F0C433EF for ; Mon, 28 Feb 2022 20:47:04 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B82F483C35; Mon, 28 Feb 2022 21:47:02 +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="dJ+Nxn23"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A83DA83C35; Mon, 28 Feb 2022 21:47:00 +0100 (CET) Received: from mail-qv1-xf36.google.com (mail-qv1-xf36.google.com [IPv6:2607:f8b0:4864:20::f36]) (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 D1E8D83B9E for ; Mon, 28 Feb 2022 21:46:56 +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-qv1-xf36.google.com with SMTP id h13so14599112qvk.12 for ; Mon, 28 Feb 2022 12:46:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=/EO3hwMaYsjCnZPVUUc6d4sRJlNVD56VMgsWAEs9mow=; b=dJ+Nxn232EU1uSld/S1K/FJGhCVU9M6w6sGFg2YAjELIs3zgc/Q2b9EOL5lX5rLnaA CregVbxBq2pM/84TzO0c8rM4+ACKFtPvz9rLYyUzfwIggN+KCe2WzuuJ1obr4JMZsrm9 DU31UPPNuR20CNCo8ls2rHCJQ3tsUNorqMPAI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=/EO3hwMaYsjCnZPVUUc6d4sRJlNVD56VMgsWAEs9mow=; b=bSh3VLEaVVwKO4MQ6Grd3F6cxfYQOzhgf5P9+TQE9MIzXly8iq6pw90nXrTBTATpKo 4PWNVSNaBHxBAG0F1bQt9HjQptsAtrtl0HRqbeRShj4fTRGFWS0c6hrWlyB+9P83NQwb EdN+GUBXch+N25IhZNhQ7yLD6gccVYeGIdunPPDMCvF4Ow/uPMjaZrTpb6UVpTMJx6SH T7tGQAxUbIA2Koy1ieB/YdD5lpEPqurAh2Kic8KbdcFmuwSVrg+bzXlU1y3wgHG2Jrec VQMm/WeT8vUxrV5ax1HZ8xaO79a0oiT06TD2D8UdBGN651CdbsaztcXsRugarL+Hg+tr raIg== X-Gm-Message-State: AOAM53215HM1HpD+27xL83iOq2mVTa5yn8T2fnPIJg1R7VPTUgC9iF7p DSxaUEgY36/I0aq+TR72zhGR4A== X-Google-Smtp-Source: ABdhPJxcSAi/EInhrSnmlJGyX3WVqpOLtVz/hIMhoEPsu+eWHdCAon869CFxNzP1RqOVXqMEpng4Ug== X-Received: by 2002:ac8:4f0c:0:b0:2dd:fc60:abd8 with SMTP id b12-20020ac84f0c000000b002ddfc60abd8mr17677067qte.321.1646081214788; Mon, 28 Feb 2022 12:46:54 -0800 (PST) Received: from bill-the-cat (2603-6081-7b01-cbda-2ef0-5dff-fedb-a8ba.res6.spectrum.com. [2603:6081:7b01:cbda:2ef0:5dff:fedb:a8ba]) by smtp.gmail.com with ESMTPSA id bm1-20020a05620a198100b0047bf910892bsm5526866qkb.65.2022.02.28.12.46.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Feb 2022 12:46:54 -0800 (PST) Date: Mon, 28 Feb 2022 15:46:52 -0500 From: Tom Rini To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: Simon Glass , Jan Kiszka , Heinrich Schuchardt , u-boot@lists.denx.de Subject: Re: [PATCH] tools: mkimage/dumpimage: Allow to use -l with -T Message-ID: <20220228204652.GC9438@bill-the-cat> References: <20220213000946.16236-1-pali@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="uAKRQypu60I7Lcqm" Content-Disposition: inline In-Reply-To: <20220213000946.16236-1-pali@kernel.org> 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.5 at phobos.denx.de X-Virus-Status: Clean --uAKRQypu60I7Lcqm Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 13, 2022 at 01:09:46AM +0100, Pali Roh=E1r wrote: > Currently -l option for mkimage and dumpimage ignores option -T and always > tries to autodetect image type. >=20 > With this change it is possible to tell mkimage and dumpimage to parse > image file as specific type (and not random autodetected type). This allo= ws > to use mkimage -l or dumpimage -l as tool for validating image. >=20 > params.type for -l option is now by default initialized to zero > (IH_TYPE_INVALID) instead of IH_TYPE_KERNEL. imagetool_get_type() for > IH_TYPE_INVALID returns NULL, which is assigned to tparams. mkimage and > dumpimage code is extended to handle tparams with NULL for -l option. And > imagetool_verify_print_header() is extended to do validation via tparams = if > is not NULL. >=20 > Signed-off-by: Pali Roh=E1r > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! --=20 Tom --uAKRQypu60I7Lcqm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmIdNK8ACgkQFHw5/5Y0 tyyO8gv7B84hDq0cU6X/sdKJPoP3t5aZEPZAyasNpkqkcH8tCkVi6hzq4sJa0tFz p2DhHHUdWAEyZ7lOvL2gWA/P1PrfGNXeQfWl7/3QGRdbeVtriGEtdA1oZshdovZp JI4Mck5rTyAfMYO8RdwMIdiNqV6zHDmQGI4qsVhT5xGqCSnfuZy/Knq4gmq/ZjXm w+JY/UY2ze6+og3Zuu8flfePZqKGPD/6byQzy5ewRphrF5Ie6qmxyi5QSiyHjsev aZkZTr/QTKfYMr3lTEm0swGaGFM1qQpfRO2RpHym/VC5hVbT0uQdNttif8I4IvRi TAEMXuK+AWVbTjckswmrEpmLDaCQpACwOiG1EeHCaUdfoUpls2SwdGSsEFdf6MVQ guewe/WG9bp0pKVPgdrjtnVwxcnQXvjgIwFcATo64nSegNkhIgXT8AVT9sZH4Sbe xvXk1+mzXB1OC65/TwOKOapo62n9QvbTaIr1WHZPWHNQtqMaakT3Cu+P6NxqAsh4 Y1qQ/FcF =y1NK -----END PGP SIGNATURE----- --uAKRQypu60I7Lcqm--