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 4C696C433EF for ; Thu, 25 Nov 2021 03:07:36 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 39B9C82F87; Thu, 25 Nov 2021 04:07:33 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (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="QWYQhU3i"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3E9A2812DD; Thu, 25 Nov 2021 04:07:24 +0100 (CET) Received: from mail-qt1-x82e.google.com (mail-qt1-x82e.google.com [IPv6:2607:f8b0:4864:20::82e]) (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 A6D0A82F89 for ; Thu, 25 Nov 2021 04:07:15 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x82e.google.com with SMTP id q14so4780980qtx.10 for ; Wed, 24 Nov 2021 19:07:15 -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=PftbpNo554hvo9aSbmiainwNc+sxKzEVg8f71d0uSfI=; b=QWYQhU3i/VIveAqUNeFsrJZSYagP1CTVSPSfLpDEvDwM754vKn9US2EZ1Sz9kOBIvi Aj99HO0SQVO3d0NU+vsKoBAM88PnKENlgpnvllkort0v3S8aoXbiGVaVGdbjSgLH7cGD bLUTve2IWA0iNurGTXYS3rdXDMJx5GriKBtBk= 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=PftbpNo554hvo9aSbmiainwNc+sxKzEVg8f71d0uSfI=; b=nMdsYEFRBf7ACTNvYGvUoahP6/Bb2CNNIRRSDrxNZaNETj6nyh8DXe/UqJb+6W88oI Hx6GjtojFBZfK8f9B1233pYEB+mLHcYyBCPwdNwcRCy96e0RD8e6SDn4H2MKmYe+wy1f y4AoLaeWbUm8BGBGKcPuL5afZX1WQJj6jsvj5oeyM24Q5v+MVw317ZJa3+gu9ctq4bqI sGZ04Q9d/qWQ9pyQHxZ/Z8yrDg5qE+fqPzBG4S/ezsjKglX1PhsBvC0zw19nn+dpcKR2 rmZPy6jc1fZcdzUVcFeebb6zOgVWwqyOXhwK4JvaZIg2V5frWWQRVMO19XhK9shcujhz S5ZQ== X-Gm-Message-State: AOAM533F88EJ64vA+EUPUQqlDWF9WHdTlPdNKtswy3kSIhtM6ZTv3PdH 6wQawllFzaXbM8/HGCehomp6pw== X-Google-Smtp-Source: ABdhPJziqs5qPXFjDjTwbqgA0PXNsvkWamF8WC5mBuzRf6vXSeKQAxoZqk8sPi5vn1pfvQlShnN2eA== X-Received: by 2002:ac8:4e82:: with SMTP id 2mr4538204qtp.499.1637809634209; Wed, 24 Nov 2021 19:07:14 -0800 (PST) Received: from bill-the-cat (2603-6081-7b01-cbda-444f-58d9-e416-63ff.res6.spectrum.com. [2603:6081:7b01:cbda:444f:58d9:e416:63ff]) by smtp.gmail.com with ESMTPSA id v10sm831413qtk.13.2021.11.24.19.07.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Nov 2021 19:07:13 -0800 (PST) Date: Wed, 24 Nov 2021 22:07:10 -0500 From: Tom Rini To: Simon Glass Cc: =?iso-8859-1?Q?Fran=E7ois?= Ozog , AKASHI Takahiro , Alexandru Gagniuc , Artem Lapkin , Bill Mills , "Chan, Donald" , Chris Packham , Hannu Lounento , Heiko Schocher , Heinrich Schuchardt , Ilies CHERGUI , Jessica Clarke , Joe Hershberger , Joel Stanley , John Keeping , Marc Kleine-Budde , Marek Vasut , Martyn Welch , Ming Liu , Pali =?iso-8859-1?Q?Roh=E1r?= , Philippe Reynes , Rob Herring , Sean Anderson , Sebastian Reichel , Stefan Roese , Stefano Babic , Sven Roederer , Thomas Hebb , Thomas Perrot , Tyler Hicks , U-Boot Mailing List , Vagrant Cascadian , Yann Dirson Subject: Re: [PATCH 00/16] tools: Add support for signing devicetree blobs Message-ID: <20211125030710.GW24579@bill-the-cat> References: <20211112192817.199075-1-sjg@chromium.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Z9mIuTbdBl/A9CkM" Content-Disposition: inline In-Reply-To: X-Clacks-Overhead: GNU Terry Pratchett X-Mailman-Approved-At: Thu, 25 Nov 2021 04:07:32 +0100 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.37 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.2 at phobos.denx.de X-Virus-Status: Clean --Z9mIuTbdBl/A9CkM Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 24, 2021 at 05:12:12PM -0700, Simon Glass wrote: > Hi Fran=E7ois, >=20 > On Sat, 13 Nov 2021 at 11:53, Fran=E7ois Ozog = wrote: > > > > Hi Simon > > > > Le sam. 13 nov. 2021 =E0 14:57, Simon Glass a =E9cri= t : > >> > >> Hi Heinrich, > >> > >> On Sat, 13 Nov 2021 at 04:57, Heinrich Schuchardt = wrote: > >> > > >> > > >> > > >> > On 11/13/21 04:30, Simon Glass wrote: > >> > > Hi Heinrich, > >> > > > >> > > On Fri, 12 Nov 2021 at 17:02, Heinrich Schuchardt wrote: > >> > >> > >> > >> > >> > >> > >> > >> On 11/12/21 20:49, Fran=E7ois Ozog wrote: > >> > >>> Hi Simon > >> > >>> > >> > >>> Le ven. 12 nov. 2021 =E0 20:36, Simon Glass >> > >>> > a =E9crit : > >> > >>> > >> > >>> At present mkimage supports signing FITs, the standard U-Bo= ot image > >> > >>> type. > >> > >>> > >> > >>> Various people are opposed to using FIT since: > >> > >>> > >> > >>> just to be sure: I am not one of those. > >> > >>> > >> > >>> > >> > >>> a) it requires adding support for FIT into other bootloader= s, notably > >> > >>> UEFI > >> > >>> > >> > >>> whatever happens to FIT is entirely orthogonal to U-Boot UEFI su= bsystem. > >> > >>> FIT can evolve, U-Boot UEFI does not have to change. > >> > >> > >> > >> We already can create signed FIT images containing a UEFI binary = and a > >> > >> devcie-tree and launch the FIT image with the bootm command. > >> > >> > >> > >> Cf. > >> > >> CONFIG_BOOTM_EFI > >> > >> test/py/tests/test_efi_fit.py > >> > >> doc/usage/bootefi.rst > >> > >> > >> > >> Simon, what are you missing? > >> > > > >> > > Some people don't want to use FIT. > >> > > >> > The problem with FIT is that other firmware like EDK II does not sup= port it. > >> > > >> > Why do you expect those people to like your new tool better? > >> > >> I believe the EDK decision is not so much that it *does* not support > >> FIT, which is after all not a lot of code, but that it *should* not. > >> If I have that wrong, please let me know. > > > > UEFI (EDK2 and now U-Boot) design choice is that it does not include *a= ny* technologies for OS: UEFI launches an OS loader that know about those. > > A possible way to introduce a FIT is by adding a protocol that can regi= ster a vendor media file , assign a UUID to a FIT. Add support for this in = the UEFI stub of the kernel. > > Another way would be a minimalistic UEFI app that will fetch the second= parameter as a FIT. The FIT format parsing code is only in this minimalist= ic loader. U-Boot can play this role based on your efforts to have U-Boot a= s UEFI application. > > You could also promote FIT in the systemd-boot UeFi application. I beli= eve this is a very good option BTW. >=20 > I think UEFI is making things very complicated. If we define a > standard boot flow we should not need grub. To be clear, UEFI doesn't require grub (nor systemd-boot) but off the shelf distributions tend to really really like that, rather than modifying UEFI variables more directly to implement some sort of boot menu and other related features. --=20 Tom --Z9mIuTbdBl/A9CkM Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmGe/dMACgkQFHw5/5Y0 tyzXHQv+PowXaJJrptywwxus5UazuYwQULES+eBTi5QO/UQ9xDWE2cel6ojw0hyS AlZeav3ESY3ZsI1gbcqcpvj/jVPR8KvlxBixyYoy3T9X1Q96z0bf+qQrTmj6HIi9 af87Q7rqsdeKUcip64Cdowf+EBhBjy7IbNsB8YPXQEt6LPiM/K8pI8Fnt4TaSy/H JqSrWzL8etlKerUqNJyQegWccn6refvwbmO+pwUgeTjhYhHY145jL0MtEEwbalqI 8yJOhGnWeTPOfBy3PTWAB1UQe8Huv0PWNTGEZqqPqT0ABEwC48+Z9tsZBMEM2I7z EsGEFct2tg4QeesMnj+GaHVR3X3Y1g+TaxVYoAK2FdHt5/kMxooGTb/oz9MiO0FM 4GYiKmnOlprSNwzqdIi+M3rhHhxTDPXFoGmpxmcGJ8mxMC9dOpGNIkVUx2zwDzrk y+v/O6llPNiQowdNW9JAXCghjQAaFa60HqFylwNjceSSVlMJx2qlrOj57c6LWfnp izWzujg2 =VcI6 -----END PGP SIGNATURE----- --Z9mIuTbdBl/A9CkM--