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 B234DC433F5 for ; Fri, 30 Sep 2022 16:39:21 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 662DA84D9A; Fri, 30 Sep 2022 18:39:19 +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="cnVg+7FQ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 085FA84DAB; Fri, 30 Sep 2022 18:39:11 +0200 (CEST) Received: from mail-qt1-x82d.google.com (mail-qt1-x82d.google.com [IPv6:2607:f8b0:4864:20::82d]) (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 0EEFD84D85 for ; Fri, 30 Sep 2022 18:39:06 +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-qt1-x82d.google.com with SMTP id e20so2851855qts.1 for ; Fri, 30 Sep 2022 09:39:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=3GeWJ0Ju3/F39Zz3X5+0LUKrgvC7DGiHdwwJI9VNqEQ=; b=cnVg+7FQTwkIvGGCFbip4ayrtk6Mph7j5XuBVJeUUwUxQknZeR7KP9qfa27auO6oGq RaxBnQHwKO+i1hm3mMPcWBBJRgsuZ7pGlVlXak901eS/Eh1dNxE3jhF+RBcrBday/NmO abbL7WR6pNxxzD6jEptoWkj8kU9UoVstbr7Ok= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=3GeWJ0Ju3/F39Zz3X5+0LUKrgvC7DGiHdwwJI9VNqEQ=; b=w6BcHFQRXr6c5SrycIfCN8dW+sPj0dxzawmjrXBMwPkxUujPY4fn9aCLjkHp3U+16O JdX0v1D7mKu+L1j5y7kBP9pV0nPZOE+vRxCPrDwR1OJPi1sUsWH88aIe7tvUcH7Dk3J4 hQ8p9a2eXuXx7rmlHvSH7ZA235rE43Xadyrd69cyevKwlp8Gt85LnS0utcPIx0LIepsg iXNL8JlZ0RRfbFQ3FoaAsvtpC5d+3IJLR3dm4ee3YUhdnFdPV/v+rr7/MM23HhEpZsii 5OCLW3LsOup+Q7Z1lkKaWROCkPQokIPl7lU8J7qKb5tYT77sWSSi8APHtmOhPyPpsA7g e8rA== X-Gm-Message-State: ACrzQf0cZC4IPcMSZrELk+mgPyxzAkl0Kr/a3gBqr2hggqrqZ00TkKmC 8nTnm9aSFv0MCS+9SBrKN945yQ== X-Google-Smtp-Source: AMsMyM6aKjvvvjE0JpQumm0RzCb1Ymzj4YRgS5R1C3CYx/gZDimxG3dTvvBld2HH2SXob7XblS2glw== X-Received: by 2002:a05:622a:144c:b0:35c:c05d:2889 with SMTP id v12-20020a05622a144c00b0035cc05d2889mr7463775qtx.610.1664555943352; Fri, 30 Sep 2022 09:39:03 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b00-6400-0186-ea3a-a82b-3964.res6.spectrum.com. [2603:6081:7b00:6400:186:ea3a:a82b:3964]) by smtp.gmail.com with ESMTPSA id dt35-20020a05620a47a300b006ce3cffa2c8sm2948282qkb.43.2022.09.30.09.39.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Sep 2022 09:39:02 -0700 (PDT) Date: Fri, 30 Sep 2022 12:39:00 -0400 From: Tom Rini To: Simon Glass Cc: U-Boot Mailing List , Alper Nebi Yasak , Marek =?iso-8859-1?Q?Beh=FAn?= , Pali =?iso-8859-1?Q?Roh=E1r?= , Stefan Roese Subject: Re: [PATCH 31/45] spl: Allow multiple loaders of the same type Message-ID: <20220930163900.GX3044094@bill-the-cat> References: <20220925150248.2524421-1-sjg@chromium.org> <20220925150248.2524421-32-sjg@chromium.org> <20220930162829.GV3044094@bill-the-cat> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="uaevfG5uZ9KhizUI" 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.6 at phobos.denx.de X-Virus-Status: Clean --uaevfG5uZ9KhizUI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 30, 2022 at 10:37:26AM -0600, Simon Glass wrote: > Hi Tom, >=20 > On Fri, 30 Sept 2022 at 10:28, Tom Rini wrote: > > > > On Sun, Sep 25, 2022 at 09:02:34AM -0600, Simon Glass wrote: > > > > > At present we only support a single loader of each time. Extra ones a= re > > > > Of each type not time, I assume. > > > > > ignored. This means that only one BOOT_DEVICE_BOARD can be used in th= e SPL > > > image. > > > > > > This is inconvenient since we sometimes want to provide several > > > board-specific drivers, albeit at different priorties. Add support for > > > this. > > > > > > This should have no functional change for existing boards. > > > > To be clearer here. Today I can build am335x_evm_defconfig, and it will > > have support for (among others) X/Y-MODEM and SD/MMC booting, and if SPL > > loads via SD card, it will look at that same slot and find U-Boot, or > > fail. > > > > This patch doesn't change that, yes? > > > > A later part of this series makes it possible, but not default? >=20 > That's right, there is no change for existing boards, since they only > have only loader of each type. But it allows boards to change that and > have two loaders for a single type. This is done later for sandbox, > but it would actually be useful for a few other boards too, e.g. where > there are two board-specific ways of booting and we want to try both. I'm not following now, sorry. Can you elaborate on the example you're talking about please, either for sandbox or what it would look like on a hardware platform? --=20 Tom --uaevfG5uZ9KhizUI Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmM3G6QACgkQFHw5/5Y0 tyxhNQv+NpIuxcFHtqZMugHImioofiCWzHdM9t9S3y3u2tjYtb1J+5e6suTvTg0s GVSkAf+93u+dQeVGI6r3AiUNWHYsw5NIiwHTt9GoNEGgFnYJOf+4nfvZ8hoEZcWK O7wZkMyfooPdrsXK7+628E+/dxt821LQoLcIURj9e7vrtUfk0y7YKr5ps2HHto14 3ujZpauWMHlU3XJ/CIwiOj1fH5pClN3gvn+rzDLKn8XWuvqig5Rc+t3qa4rxt5sb 0K+iorEy05B7S20GgNo6iVTVIzqQdBI/OfFwt9JAZh6c/jeRfk5pmn6wK8NIvlPL iXhhWMQfAVapgmTcqBIcP5MJWpuQGPBfJi4EzP3+Dnk9jlVDySh6Ez5wPRc7KOpO Fi8PKlumOVonMB/G7WYtr7Da49OoPCtAsfZuHd1d3+Basq7Xek6HWDLIfpKPMn47 DLHofy+vdJR/JZKGHb3PwQTOn06vYmWC26JZaMInD3LnNH/P/il6EhprGKYVjuSa v6PDd4LO =U/Uw -----END PGP SIGNATURE----- --uaevfG5uZ9KhizUI--