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 94BA7C433F5 for ; Sun, 6 Mar 2022 03:10:38 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1EB6A83CF2; Sun, 6 Mar 2022 04:09:28 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org 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=chromium.org header.i=@chromium.org header.b="lZuZt4V0"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3A74083BF6; Sun, 6 Mar 2022 04:08:53 +0100 (CET) Received: from mail-oo1-xc32.google.com (mail-oo1-xc32.google.com [IPv6:2607:f8b0:4864:20::c32]) (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 490C683C27 for ; Sun, 6 Mar 2022 04:08:46 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@google.com Received: by mail-oo1-xc32.google.com with SMTP id l24-20020a4a8558000000b00320d5a1f938so1222765ooh.8 for ; Sat, 05 Mar 2022 19:08:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xgrcbWC60lkN9vEL3ehftlwHmGt+IboTjA8jIQIFn6k=; b=lZuZt4V0+6vOnHzi8TAJ78VVGXKwlK5+T2lrpHe9VmfvnvnQ+oRQ87VJZ7rY/nmOsR C+ruhMH1L23sCye63EbNSK8yNOQ6WhRennv63tI7Kbneb+SuAt4Yx/4TbdE88tLLYA9z wmgFlXHqC9rRr/xjA2MCsKNVySY785uevlPBI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xgrcbWC60lkN9vEL3ehftlwHmGt+IboTjA8jIQIFn6k=; b=AUcdJWnayLaqmbbu41u7T+8UrNxHbQ0TMAV4x9eAKnvopijbUT8YKW6P9tH0QcGH99 NmK8mPKDC8IWDjIm8RwMTEvLOz+At2XN1F9zPLQXJh30d56QH7SPf8VEfS707ewwsGLS te70lH7fAsB9YSyZdQrxwFOZzo6nCqOS+DHemvMv696xkNcF0nCUq9crsfwdMMggMMNU Net8FmHMN9wrMDWsmzu9FDHbuZhx0DZNCv2KqW4kUG2VSbON7BzELrg+iSOGMboDxquv nYchWHVtu/kyD76r2bVjnZ70JAOuYrgBl7WxABmvKaI740zlBRETzNevhluSRhpaMj9q 99RQ== X-Gm-Message-State: AOAM532ehGoQOCZxrPsiRt6XXLiJzI0MtSVkmumzCY6BmXU3p917MW6R xjOyeSBhJ2vK+TFKhXNgj6X4zKpXbNPbBAABXTojHg== X-Google-Smtp-Source: ABdhPJxkkYY5aQyPOl8ah2eoFePLFEB5kw+0nXUP65t3ThAodFoXpZftIPoG3Kl9kgvKHKhQchIjuw4A028nHi02edI= X-Received: by 2002:a05:6870:9612:b0:ce:c0c9:658 with SMTP id d18-20020a056870961200b000cec0c90658mr11656510oaq.170.1646536124684; Sat, 05 Mar 2022 19:08:44 -0800 (PST) MIME-Version: 1.0 References: <20220119014315.1938157-1-sjg@chromium.org> <20220119080908.2899725-1-michael@walle.cc> In-Reply-To: From: Simon Glass Date: Sat, 5 Mar 2022 20:08:27 -0700 Message-ID: Subject: Re: [PATCH v3 00/31] Initial implementation of standard boot To: Michael Walle Cc: Daniel Schwierzeck , Dennis Gilmore , Ilias Apalodimas , Steffen Jaeckel , Jaehoon Chung , Lukas Auer , Marek Vasut , Michal Simek , Pavel Herrmann , Peng Fan , Tom Rini , U-Boot Mailing List , Heinrich Schuchardt Content-Type: text/plain; charset="UTF-8" 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 Hi Michael, On Thu, 20 Jan 2022 at 11:16, Simon Glass wrote: > > Hi Michael, > > On Thu, 20 Jan 2022 at 01:38, Michael Walle wrote: > > > > Hi, > > > > Am 2022-01-19 15:56, schrieb Simon Glass: > > > On Wed, 19 Jan 2022 at 01:09, Michael Walle wrote: > > >> > > >> > > >> > The bootflow feature provide a built-in way for U-Boot to automatically > > >> > boot an Operating System without custom scripting and other customisation. > > >> > 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. > > >> > > > >> > With this we can boot on a Raspberry Pi 3 with just one command: > > >> > > > >> > bootflow scan -lb > > >> > > > >> > which means to scan, listing (-l) each bootflow and trying to boot each > > >> > one (-b). The final patch shows this. > > >> > > >> I wanted to give this a try, but I only get the following output: > > >> > > >> => setenv boot_targets usb0 > > >> => bootflow scan -lb > > >> Scanning for bootflows in all bootdevs > > >> Seq Method State Uclass Part Name > > >> Filename > > >> --- ----------- ------ -------- ---- ------------------------ > > >> ---------------- > > >> Unknown seq 0 for label 'usb0' > > >> --- ----------- ------ -------- ---- ------------------------ > > >> ---------------- > > >> (0 bootflows, 0 valid) > > >> > > >> where usb0 is a debian installation medium. > > > > > > Yes that's not working yet. Can you try an mmc device for testing? > > > > Ok thanks for confirming. Yes I can test with a sd card, > > but I'll probably do it when there is support for loading > > a device tree by the fdtfile. > > Yes I need to look at that one. Can you please point me to the OS image you are using. I have added basic USB support in the v4 series. Regards, Simon