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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9AE0BC433EF for ; Thu, 28 Oct 2021 18:10:18 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id A6EAE610E5 for ; Thu, 28 Oct 2021 18:10:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org A6EAE610E5 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmx.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3476782952; Thu, 28 Oct 2021 20:10:15 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=gmx.de 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; secure) header.d=gmx.net header.i=@gmx.net header.b="lymlgkpQ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 70E9F834A3; Thu, 28 Oct 2021 20:10:12 +0200 (CEST) Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id BEFEC80185 for ; Thu, 28 Oct 2021 20:10:07 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=xypron.glpk@gmx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1635444582; bh=iYCe84AEtp6cHN0th/AZKv1JR0ozdC+EHfJU0yf6tjk=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=lymlgkpQmGL7cBfMLecOb7Oq6u82Jv89YRGJlsbrlaoTeHctuXLD3BUH5qiw+bbxf IhOIPBFiMSy0sceXjkG0id/yv2HdequjWNCADMJCMMDul+ambWD8srjip9/SwXcuUa Rf3QKWcQ3imRqrYiCWXAR9uytDV4riBDsJKfuF5M= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.123.35] ([88.152.144.157]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MirjS-1nBvpS1cnc-00exug; Thu, 28 Oct 2021 20:09:42 +0200 Subject: Re: [PATCH v2 00/41] Initial implementation of standard boot To: Tom Rini Cc: Simon Glass , Heinrich Schuchardt , Michal Simek , Ilias Apalodimas , Daniel Schwierzeck , Steffen Jaeckel , =?UTF-8?Q?Marek_Beh=c3=ban?= , Lukas Auer , Dennis Gilmore , Jaehoon Chung , Marek Vasut , Masahiro Yamada , Pavel Herrmann , Peng Fan , Stephen Warren , Stephen Warren , =?UTF-8?Q?Fran=c3=a7ois_Ozog?= , U-Boot Mailing List , Peter Robinson References: <20211023232635.9195-1-sjg@chromium.org> <3fde4b98-e7c0-71c3-d7c4-22c6f43eae31@canonical.com> <20211028174721.GE8284@bill-the-cat> <20211028175902.GG8284@bill-the-cat> From: Heinrich Schuchardt Message-ID: Date: Thu, 28 Oct 2021 20:09:35 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <20211028175902.GG8284@bill-the-cat> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:F2dT1oTJhruOVlL6A2abT+FcPkgtDAClXTBJRUnBPku/AHYbwbh +YSEo7AN3s8UDtlhN7s5UetJUd6UPKg9yFqwQiBu//9aw6RTEdhscmsPnX2zZrJDSa36NhO vztrJshWnEIqF28hhwKQjD3argkgNvPDFKVOD7ohLrvOCEd56C8B219O3gUArCGg5qRwJI4 WJsOTnCJNRZLC+15p5urw== X-UI-Out-Filterresults: notjunk:1;V03:K0:lP446wjU7wE=:1mto0Ai0zdWWNGJ9i3i24G 1WVMlLchiTAD91LvNgfDDSAC0imOmgeaNX7AieYPMpuE0WZ+u7dTt5XgX/X9dwwz9yks9N4WP QzDTls159NHhwywyasnIjYCcVopVn2PsvmMZyQdXNsvYyWymQc0ZLWZltio8haigSV7PnsDat ty5+5sB9rlpvwKjdXm4NW8iciB0Lyb20f36HJSt7O2plaGh94trtacQZTy7MOm8QFszIcrctb AJ1bGa6KNguMsUKy1XZ9/CRX7wq5ELjqny8PKatPFjOIl/h2/0Fx3MQWj5dPPcTrDTXOaZ6PR i219+yCJ8roiwDhet71y451XD5l8ryTToSQBRZrD8ZNUiGu6dxl0uasVe2xRUgEmedItJWkyt HO8vvxgO6c+6iNHHN6I2d3z2XZA125z5PPmb/tv+sZsdx8Do8ATUccS/PZWofFfacacDI9p5q SuW4Jx8mrcAW/BDiTnl8GXtFzNbtk7XYxunvqX6bUNPzOpeXTsKyGerOAV9ApwwxXCBZ8Du4H tzifQwbBfCnNGHrAQErvIR4g1qiCZ84QfbAeZ/2QK6KmK6YOSnrqpxkyLnl/f0aMG9uhlwNET zmdBW5zxfd6pVvbFV9mCARzQBswOuzb766bvydpI9kKx9x0glCC296ZOp4NWrOuORdJ1BBizN F+9mdfl7+/i4hMnJJV7t0bVz45PqEo6Y/FKo/mECERt1EuLb5Gbn1E1SsgSEF2i59milgv9s0 wzatlv1xBQ3gLhuvA/EfjO1/820FdiFd3kDDqqZLRcdaQAYTH2mw5uuH+xDQfLgESvnoJgyXO CEhfv+RGaAL1grua9jogLKRK4/kxT+ziC6+86mdNu4Y49HsIz+azOgfPQFtcZ4JzLlh/QSThg AWZpFu+qxKYFJjZKjJdo4W3LusgFiUaV87ODGquHD4A3k/r8qnw+JIpPrqhduI9ntWXcJ3wLj DHCyUygCWRz2+sOmx9EVPXsJMZqSISGm9RqhFE0jD9V3mo+PnrUkTyjlAgrBStPiQ2W2E03YP XZj06GquH1SicyIzbNV2nu6kc6K6CZ69dtuLSHbYohrqfDPMhoSK322rLsRTYNIVbXMP5LiTb ReQk513O0tN+eA= X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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 On 10/28/21 7:59 PM, Tom Rini wrote: > On Thu, Oct 28, 2021 at 06:50:02PM +0100, Peter Robinson wrote: >> On Thu, Oct 28, 2021 at 6:47 PM Tom Rini wrote: >>> >>> On Thu, Oct 28, 2021 at 06:37:42PM +0100, Peter Robinson wrote: >>>> On Wed, Oct 27, 2021 at 3:11 PM Simon Glass wrote: >>>>> >>>>> Hi Heinrich, >>>>> >>>>> On Wed, 27 Oct 2021 at 05:38, Heinrich Schuchardt >>>>> wrote: >>>>>> >>>>>> >>>>>> >>>>>> On 10/24/21 01:25, Simon Glass wrote: >>>>>>> >>>>>>> The bootflow feature provide a built-in way for U-Boot to automati= cally >>>>>>> boot an Operating System without custom scripting and other custom= isation. >>>>>>> This is called 'standard boot' since it provides a standard way fo= r >>>>>>> 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 (ow= ned by >>>>>>> U-Boot) >>>>>>> - bootflow - a description of how to boot (owned by the distr= o) >>>>>> >>>>>> Please, describe why you are suggesting this change. >>>>>> >>>>>> Replacing a script by a devicetree chunk is just decreasing flexibi= lity >>>>>> and increasing complexity. Where is the benefit? >>>>>> >>>>>> I am missing a description here of where and how a boot flow shall = be >>>>>> defined. Describing some device-tree binding in patch 40/41 does no= t >>>>>> replace describing the development and usage workflow. Who will pro= vide >>>>>> which bootflow information when? >>>>>> >>>>>> You still have an open discussion with Linaro about the source of >>>>>> devicetrees. This discussion needs to be finalized before consideri= ng >>>>>> this series. >>>>>> >>>>>> In my view bootflows cannot be defined in the devicetree because pr= ior >>>>>> firmware providing a devicetree is completely independent of any di= stro >>>>>> and therefore cannot provide a distro specific bootflow. >>>>> >>>>> There is actually no need to use devicetree here. I think you might >>>>> have the wrong end of the stick. It is certainly possible to add nod= es >>>>> to configure things, if needed, but it works find without any change= s >>>>> to the devicetree, as you can see from the rpi_3 patch. >>>>> >>>>> There are several aims with this effort: >>>>> >>>>> - Provide a standard way to boot anything on U-Boot, that everyone c= an >>>>> plug into (distros, board vendors, people using a custom flow) >>>> >>>> I as a distro maintainer don't want this, we already get the "standar= d >>>> way to boot" from UEFI, this just feels like another unnecessary >>>> abstraction to that. >>> >>> Right. But part of the problem is "How do I find UEFI". Something >>> somewhere needs to be configurable to say where to look, yes? >> >> Is this question from the board PoV, the developer of U-Boot or the >> distro trying to boot? >> >> If you mean from a boot flow PoV for UEFI to find the HW that contains >> the OS to boot I thought that was handled elsewhere in the series. > > What I mean is that today looking at Pi we have: > #define BOOT_TARGET_DEVICES(func) \ > BOOT_TARGET_MMC(func) \ > BOOT_TARGET_USB(func) \ > BOOT_TARGET_PXE(func) \ > BOOT_TARGET_DHCP(func) > > As the board maintainer set that as the list of places to start looking > for the next payload (say the GRUB EFI binary). Simon's series replaces > that with I think he said "bootflow scan -b". And then the above env > portion is replaced with, well, what's documented in patch #40 if you > don't just want to rely on device probe order. > > Because we need to have _something_ that says where to look for what, > yes? Or should that be replaced entirely with efi vars and > BootOrder/BootXXX and "bootefi bootmgr $fdt_addr_r" ? > UEFI variables must be supported for booting via UEFI. But if no valid image can be found via the UEFI variables you have to scan the EFI system partition for the file EFI/BOOT/BOOT.EFI and run it. This requires to scan all block devices for the ESP. Furthermore not all distributions use UEFI by default on all systems. Best regards Heinrich