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 8F36DC433EF for ; Tue, 19 Apr 2022 21:55:51 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id ACC3183E51; Tue, 19 Apr 2022 23:55:33 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=canonical.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.b="fJz20l5s"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C554283E48; Tue, 19 Apr 2022 23:55:08 +0200 (CEST) Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) (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 6920883E5D for ; Tue, 19 Apr 2022 23:55:03 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=canonical.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=heinrich.schuchardt@canonical.com Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id D12FF3F118 for ; Tue, 19 Apr 2022 21:55:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1650405302; bh=BRTaXeJULW4zd4CGbaDcSis9egtDtGBxVZjfZURh7qI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=fJz20l5sU9oYvnCZ/vTmwwvD79YOiWq2RR1UYV4Ua5kS1Ag0/DWmECowPA1OYWShc zukQTYEFMyNjuvUl+Pjc2N1KK6RicBUDUbJ4SYLJRMe9K4Cf8dbkFrw6UzD1tfCoiX LKZwPxGwkxwH00kYiGiapalHcjN3MTrX+CtjLTERxNpmBO/MsfE5eN+hDanb6nxNOL WpGOIHKSq+XHT2VkJBgjDpYyrVFxsJVJsIfYcXbW9AWatZS69el3f+gwxIZs0srrmW l3R8jnZVwwIKdnEMf7vfgbhVognG+G+Ev9FyVdQZ/DSTceQAU1gi8gl5I7wuDtKLwy 1sGMa1FZRPW7A== Received: by mail-ed1-f72.google.com with SMTP id l24-20020a056402231800b00410f19a3103so11753389eda.5 for ; Tue, 19 Apr 2022 14:55:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=BRTaXeJULW4zd4CGbaDcSis9egtDtGBxVZjfZURh7qI=; b=ZYgOTtEzoB9zhARLh/2r5+jeOL2shkFbLaPsItCYmX0wrxcSijUsgphZDuV1BMO3Pn bSl0bM4IyqYYwBjYngrDR0uwmXOn1cIy6hI0p/kyxQiGE0OBS1nzO2/nI6El4vAun94L CdjNWyNmJ6EWiDaDnBm1uyRc8/RQZWV++jRjL+LSig5IsWEWFtJ0MMX9qcrKqVRi8oFm 2V3O2fGKB80XsFNCwjE8xyJV59kNZvJGxDdK9TFirCItNj5cB/6nlWEgSrNuaaAzEEJ4 bk8MpTHaAtKwRiNgBGwitvKFwAZa4rUA9z+GBtqe9jcU6eDCTes7I7AmUhHeSBzbFm30 K2VQ== X-Gm-Message-State: AOAM5300Ti6LCxpUZXo7zQb1LwB66WlRxJ9ol4ikumpIytH85aR7gRvm 3uQwfK3sd87c9NUhOqlS95lkw3F1KZV8X5Iue7Tj8p9ZIF/s4V+ZnNf5a9BzwxJs6nQDDf6WYY9 Fm2W4455kh+s+3VgTQhleU8l9X2Kh6Qc= X-Received: by 2002:a17:907:d14:b0:6e6:d75f:5e4e with SMTP id gn20-20020a1709070d1400b006e6d75f5e4emr15532907ejc.571.1650405302559; Tue, 19 Apr 2022 14:55:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdo4ByFxhnvRPSgmqVRNuWmfXcCvO9zypdkk7KZQX8LgNtwwZ6N0uFhSRJzoqTU/9nk53gBA== X-Received: by 2002:a17:907:d14:b0:6e6:d75f:5e4e with SMTP id gn20-20020a1709070d1400b006e6d75f5e4emr15532894ejc.571.1650405302367; Tue, 19 Apr 2022 14:55:02 -0700 (PDT) Received: from [192.168.123.67] (ip-088-152-144-107.um26.pools.vodafone-ip.de. [88.152.144.107]) by smtp.gmail.com with ESMTPSA id lc3-20020a170906dfe300b006e8a859ead3sm6058903ejc.39.2022.04.19.14.55.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Apr 2022 14:55:01 -0700 (PDT) Message-ID: <14f67fd8-623a-2054-e995-73d54898b886@canonical.com> Date: Tue, 19 Apr 2022 23:55:00 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [PATCH 1/1] drivers: add memory disk support Content-Language: en-US To: Tom Rini Cc: Simon Glass , u-boot@lists.denx.de References: <20220419211641.316935-1-heinrich.schuchardt@canonical.com> <20220419212651.GS3045430@bill-the-cat> From: Heinrich Schuchardt In-Reply-To: <20220419212651.GS3045430@bill-the-cat> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 On 4/19/22 23:26, Tom Rini wrote: > On Tue, Apr 19, 2022 at 11:16:41PM +0200, Heinrich Schuchardt wrote: > >> 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-Boot >> binary. This memory disk can be accessed like any other block >> device as 'mem 0'. >> >> Signed-off-by: Heinrich Schuchardt > > 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! > "U-Boot being in a FIT image" requires a loader that understands FIT. "load a firmware blob" requires a block device or a network file system. If you put U-Boot's payload into the U-Boot blob, you need neither a separate block device nor a network file system. Packaging into U-Boot makes most sense where follow-up binaries are tightly integrated: * adding a custom graphical boot manager as EFI application * adding iPXE * delivering device-trees Best regards Heinrich