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 A9C97C433EF for ; Tue, 26 Apr 2022 12:17:42 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 953F483A6B; Tue, 26 Apr 2022 14:17:39 +0200 (CEST) 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="DTN2JoCd"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7A7D883BDB; Tue, 26 Apr 2022 14:17:37 +0200 (CEST) Received: from mail-qk1-x729.google.com (mail-qk1-x729.google.com [IPv6:2607:f8b0:4864:20::729]) (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 C8EA18186D for ; Tue, 26 Apr 2022 14:17:33 +0200 (CEST) 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-qk1-x729.google.com with SMTP id i2so561698qke.12 for ; Tue, 26 Apr 2022 05:17:33 -0700 (PDT) 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=Wt6BriAX8kqxQIU+ont5EpVJ9B71dXV6RjiTX8CRCME=; b=DTN2JoCdv6M3QN2NH6iiqhd33kosBRjCtf4zDS3q6DhKa+Dic9HJsqeX389B/Ph1yL dekp5D0rRxfFoI6qQgEFOQD0N8utYL/ajDs3a8HwXyoJ12EcHI3R4a0K+elF7hzx8/TT Q09WcaPLMhM2QE9xxx0GB3QzInu1lCf6gG1yc= 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=Wt6BriAX8kqxQIU+ont5EpVJ9B71dXV6RjiTX8CRCME=; b=0aLzr3C3YYJ428ZSg/mB5qZavQRe4Ge59rIspWSMVEYMzhJK1wwWAipJQCkH4MFO5b eaJwaFmYrVzQTzxoSS2/H4c88m2TZIDnQb+8HleeQKvFBilnxsa8uNRu9dYPI/FnucS1 4A4nw/YxPTnfd1nqAp820GIqiE/+RjgIK1/ulnm/8TXwr57hY1WsoBBoIKvmJJWFt7nx CqzWgq6+YJM8lZDAUjbGtv8oHVDob4KhvDQ/x0MOhZzXvG5Ay6LdvQUbS1zCdddwUldq G/z4L8nWj1qpNlTOoPAcgkK97ybrawTafpdGrRU4A+TUryB8r3zqaLsWmQeMJB5bixXK qMFg== X-Gm-Message-State: AOAM532fYTS6Vtek8M6SsvDj0b6AYUAjKc9yKQY91nLt8xiaqK6r5h03 cDqs8zsi2VQXROdoBAzwMPrElQ== X-Google-Smtp-Source: ABdhPJwpLbw7FzNGjoW8+KXWZYFHOy3fyoGn5DHa3vP8QQ8mFTLh7HjGetp6qzTnQW59JhY7SUGLFA== X-Received: by 2002:a37:9c8b:0:b0:69f:8793:f2ef with SMTP id f133-20020a379c8b000000b0069f8793f2efmr148285qke.300.1650975451722; Tue, 26 Apr 2022 05:17:31 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-e40d-6cdc-0599-d87f.res6.spectrum.com. [2603:6081:7b01:cbda:e40d:6cdc:599:d87f]) by smtp.gmail.com with ESMTPSA id c3-20020ac85a83000000b002f36b61b0d3sm2949831qtc.47.2022.04.26.05.17.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Apr 2022 05:17:30 -0700 (PDT) Date: Tue, 26 Apr 2022 08:17:27 -0400 From: Tom Rini To: Peter Robinson Cc: Simon Glass , U-Boot Mailing List , Dennis Gilmore , Lukas Auer , Daniel Schwierzeck , Michal Simek , Ilias Apalodimas , Steffen Jaeckel , Jaehoon Chung , Marek Vasut , Pavel Herrmann , Peng Fan Subject: Re: [PATCH v5 00/34] Initial implementation of standard boot Message-ID: <20220426121727.GI6644@bill-the-cat> References: <20220425053127.19950-1-sjg@chromium.org> <20220425225004.GF6644@bill-the-cat> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="/Zw+/jwnNHcBRYYu" Content-Disposition: inline In-Reply-To: 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 --/Zw+/jwnNHcBRYYu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 26, 2022 at 05:55:36AM +0100, Peter Robinson wrote: > > > The bootflow feature provide a built-in way for U-Boot to automatical= ly > > > boot an Operating System without custom scripting and other customisa= tion. > > > This is called 'standard boot' since it provides a standard way for > > > U-Boot to boot a distro, without scripting. > > > > > > It introduces the following concepts: > > > > > > - bootdev - a device which can hold a distro > > > - bootmeth - a method to scan a bootdev to find bootflows (owned by > > > U-Boot) > > > - bootflow - a description of how to boot (owned by the distro) > > > > > > This series provides an implementation of these, enabled to scan for > > > bootflows from MMC, USB and Ethernet. It supports the existing distro > > > boot as well as the EFI loader flow (bootefi/bootmgr). It works > > > similiarly to the existing script-based approach, but is native to > > > U-Boot. > > > > I've put most of this cover letter in the merge commit, and applied this > > to u-boot/master. This is an incremental starting point at providing a > > alternative way of constructing and controlling the load and execute OS > > stage of booting. There is some growth on most platforms for this, but > > it is a reasonable alternative and will be iterated on. >=20 > I'm guessing this would allow us to optionally disable hush and > associated pieces for a lot of the boards which may equal it out? Long term, we'll see what makes the most sense for everyone as a reasonable set of defaults. I also think that high level, there'll be places to optimize this for overall size down the line. --=20 Tom --/Zw+/jwnNHcBRYYu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmJn4tAACgkQFHw5/5Y0 tyxoaAv8CG4iOZv/wK5ZfJXlp3mhi/DsVGnGlVf881DAGRJh2M3Hzmw5v4scyPri 9ZN0voTZfUQV8DzT3MpRkihtBb6g9dYdeJ4TFoWxD3dv+syOn/2+5pLKzWQ3vQS2 8q/54QvkGHQF7tTzU0SFaP+mK/ofWItV8ebZeSyHKw+uryARSik852mLHzXMWgI/ Ky3b6g47Nr0Db8VSbBXxFbzbtiy8KUxnbW8QEfPb9BREB9VIn4K9QfG9WL30YbYS izEE1hL9MYn0an0Kkzw52pVnxAiX7K0cn08zzFNB5ARHwk3KYOMzdW3y5qbuLjAE xqwI5hScK7NHDX0EeuAH0WLuaSEcIXlV3aGaQlO+k5uLy7mKWlVkNF8QQN19gaWH bgLogjKQUXJo7bmGa6/4VUYX7JztdXhyclvfaTZ70Cl/Q4OVvqJs+ctV4tBGj0tA tACYtXt997owfF/zaiKVT7tNWJokhlXGrQ7bGdcmd/W9QFjV1lEDLk4wfNoyTXGr fPsUYfpY =gaFn -----END PGP SIGNATURE----- --/Zw+/jwnNHcBRYYu--