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 D614CC433EF for ; Tue, 19 Apr 2022 22:59:51 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 95AF480269; Wed, 20 Apr 2022 00:59:49 +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="tjACoSff"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 18F3080331; Wed, 20 Apr 2022 00:59:48 +0200 (CEST) Received: from mail-qk1-x735.google.com (mail-qk1-x735.google.com [IPv6:2607:f8b0:4864:20::735]) (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 4BFBD80084 for ; Wed, 20 Apr 2022 00:59:45 +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-x735.google.com with SMTP id q75so56337qke.6 for ; Tue, 19 Apr 2022 15:59:45 -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=+tqpJltcdA06YgeOBcZyGZzNmaQmEs/gEHnA5Jn65ns=; b=tjACoSff/nRyIfT8IeCZL370GvcqNvBtAaejAijXPbisvMu7qACvshVDEW9+gQASWN VOqFHNBXMiBR3FStiPb01TEclYN04DE8EGsimS/hao125neI/2EAjKXtRCecXlOexLew DbzeEugsRbRNmXr0RX6Pyy2vlUXua1Y03aNDc= 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=+tqpJltcdA06YgeOBcZyGZzNmaQmEs/gEHnA5Jn65ns=; b=WOP0czC4JsOA7xkSopTyouSJ1s9eVpBf9j8gBvVxxWXX8ijiW42Ri/vRWULU3C1xxw EL2hZa2htgNufcz05xF8oWJ3mSXQcRpnrjr9xRmwmMLNsm7/mIt60DdADJrfekGJLSxi vke1VYSYM1lL3VfWm1rg+Jpmbxysf+qwR0wu4tundbVnuLI5u51ydg25ckQ5s3oc/LcE AB/hxtNL603MFzDajXPWAt+rrKkeh7OzqHZ7RkiVF2yl/NECDaIhGGjFpRjVXTHJSMEu Badv4Yh4UhMYVQeRk/W4E/1iJpBnfh9RwJAcRb4ZXIcwhzoOpzCCke1xpRNeoHGQIGmk I07A== X-Gm-Message-State: AOAM530nMyrZNv/B+/+dD7dcXDwtpVEsuXDkEep+fpBfcPm4tZPTEBq1 JVHSCWyWjfJ9onAUo2pzOsAEsw== X-Google-Smtp-Source: ABdhPJzqBkn+MXWEjWmwTEVnnyX4xuPoOQNat0PTB0g9V+DMH8cWpy8t6oUvQkVuBJwS5NUnccScxQ== X-Received: by 2002:a37:2704:0:b0:69e:908d:7c44 with SMTP id n4-20020a372704000000b0069e908d7c44mr7880231qkn.450.1650409184054; Tue, 19 Apr 2022 15:59:44 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-2ef0-5dff-fedb-a8ba.res6.spectrum.com. [2603:6081:7b01:cbda:2ef0:5dff:fedb:a8ba]) by smtp.gmail.com with ESMTPSA id v17-20020a05620a123100b0069e871f949fsm662152qkj.81.2022.04.19.15.59.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Apr 2022 15:59:43 -0700 (PDT) Date: Tue, 19 Apr 2022 18:59:41 -0400 From: Tom Rini To: Heinrich Schuchardt Cc: Simon Glass , u-boot@lists.denx.de Subject: Re: [PATCH 1/1] drivers: add memory disk support Message-ID: <20220419225941.GW3045430@bill-the-cat> References: <20220419211641.316935-1-heinrich.schuchardt@canonical.com> <20220419212651.GS3045430@bill-the-cat> <14f67fd8-623a-2054-e995-73d54898b886@canonical.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="E1BPhOSoTthPQdPL" Content-Disposition: inline In-Reply-To: <14f67fd8-623a-2054-e995-73d54898b886@canonical.com> 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 --E1BPhOSoTthPQdPL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 19, 2022 at 11:55:00PM +0200, Heinrich Schuchardt wrote: > On 4/19/22 23:26, Tom Rini wrote: > > On Tue, Apr 19, 2022 at 11:16:41PM +0200, Heinrich Schuchardt wrote: > >=20 > > > In some scenarios it is desirable to package U-Boot with other files = into > > > a single blob. This patch allows to embed a memory disk into the U-Bo= ot > > > binary. This memory disk can be accessed like any other block > > > device as 'mem 0'. > > >=20 > > > Signed-off-by: Heinrich Schuchardt > >=20 > > What's the use case for this, which isn't covered by some combination of > > U-Boot being in a FIT image and the "load a firmware blob" that we have > > today? Thanks! >=20 > "U-Boot being in a FIT image" requires a loader that understands FIT. Fortunately, that's U-Boot. > "load a firmware blob" requires a block device or a network file system. No, we have various cases where we bundle inside of the image various black boxes, in various ways. > If you put U-Boot's payload into the U-Boot blob, you need neither a > separate block device nor a network file system. What is the use case for this? > Packaging into U-Boot makes most sense where follow-up binaries are tight= ly > integrated: [re-ordering this list, sorry] > * delivering device-trees Yes, we can do that today, select the right one at run time, and even pass that along to EFI via the appropriate config table entry. > * adding iPXE Rather than fetching this from the network, to continue to fetch and load applications from the network? > * adding a custom graphical boot manager as EFI application Why can't this be loaded from the disk? What I would like to see is the proof of concept / design that makes use of this, that can't make use of the existing facilities we have for doing similar concepts already. Or that aren't something that should be done within U-Boot, if necessary. --=20 Tom --E1BPhOSoTthPQdPL Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmJfPtoACgkQFHw5/5Y0 tyzx7wv/cupeQvRAdfL4u9dWc1d4Dg7KvPcBAumpueeFYY06Iugx+EowyjuD6pAH GJ2zNDlyI9xJ+xcF3/ZHwPm6d6+q/EoVuct+yI+4mQhNHvf9VUIgBFIr8n7PrAFb WRisQEL/dWA6HZgt+A1u4/XiKCG14aAoXknTzmIeE/nGqvrm2pQObdtPwgL7XrjS qdnFTtdnNEnWAMaONyR8Gk4UVNeVPyYdyupjD3DcCUeLqw4yVWmHtXgyzfuhhNXC Z43EoTKvZ7+hOfsqLZOKrYsDUK+mBQqFono3vfGmzjUerDm4KQyty5qdojLmcYsc m/GBwN11A5aQ2sSj25b6H37ktVORVEambl7GiHP8Xwv306smBZffq0cvbe0OYN34 SvLolNZjBPMMJbYm6OFT1LhoF+cmh9x4t2GvjJiLL7OHzmnBotLHP7HpCUsRU/0a zoWR6vLv6470g+T+96pOqV0bJkpZ5RqD/KbuBJetcgBe7MrnlVZxewujuhB5zzsd QasCU66X =xtZI -----END PGP SIGNATURE----- --E1BPhOSoTthPQdPL--