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 X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5038EC4338F for ; Fri, 13 Aug 2021 01:21:20 +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 343BD60FC4 for ; Fri, 13 Aug 2021 01:21:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 343BD60FC4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org 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 2963A82DC1; Fri, 13 Aug 2021 03:21:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="mirAY3m2"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DB82082DC3; Fri, 13 Aug 2021 03:21:14 +0200 (CEST) Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) (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 14A1E82DA1 for ; Fri, 13 Aug 2021 03:21:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=takahiro.akashi@linaro.org Received: by mail-pj1-x102d.google.com with SMTP id mq2-20020a17090b3802b0290178911d298bso13631830pjb.1 for ; Thu, 12 Aug 2021 18:21:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to; bh=Vmbwdv2zFN4M+dWJXM0l1LrB6DUWZL9zwInIP0gkj8Q=; b=mirAY3m2UKYX80is0xIcnz3CrC9QT1xQ/PZXDQRIpe0jtSk6uLl+V4nhz/495IX4RG xHAEojkKa4+djn0Du/YLC6ncS7NvxWkRn/IDsciVjGChJW0Rwble7vYEViLuuYqw+Gjn oAUmi2k30LEsAM8Gq3dLYn3EJCKokk57mIoM7PFWxKRjCq0pC4EXpQzW3IXJvsFQiaaG ZxDtqzGQYBX98sDs0mGs2C2b+p/laef5FMxMXSPmJT2txkyj0qiSRQjgZ65cDaV0idEn aBu1JCdsUtUUeFC4aI5N1qFsER+GqgiUy5ctzq7mxXoGkC9LruOgmOytxL4n7J+gfI7b kmNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to; bh=Vmbwdv2zFN4M+dWJXM0l1LrB6DUWZL9zwInIP0gkj8Q=; b=SDNuqNnH9U2khs/CsQ8I3iYzmHK2+neYCj5WbbKhrobdR+RG7tJwXjJ5jctvQaNYSF 4sjDNP8U13CQXc1aYABlAlN7HsNMhVzoLXEPgk3l3gpwjB/Nw0Zu6j0pUjK4L36uAQGh DaoyHfYhqUG0hJ8o2A7kEZdgoPmLHGXV/hJNnvsbrYtyF42fRSAeQCAZvM/fylEMkSci 7eGmDy81eBFRMmFqjEqDRTulATnPQr+xXdRke3MuqnS3Z9Y2TRxwq0C2BfiCtiMiNR7E FLb/2oUwvBkKdmE8nTsoqH+YIVkVGWUu6pLqFu3Nl/76geWIwLNhhgP/KsI0dZ4rGddl MiDg== X-Gm-Message-State: AOAM531mRIWSavP5T7+mkN9RJqClRa70jYx4BGIlKWwuyoCUMDiXgzpi iaCT6d/c/2kXpo+AqGQ2NTlILw== X-Google-Smtp-Source: ABdhPJyemBs/AT4gL0jXvt6gXm2Pi/7m+QlXftAltoO+N+MGkl2AUTlo/yJpnukzN7ifeEfNmvu8qg== X-Received: by 2002:aa7:8881:0:b029:3c7:aa58:7a48 with SMTP id z1-20020aa788810000b02903c7aa587a48mr6760576pfe.65.1628817666409; Thu, 12 Aug 2021 18:21:06 -0700 (PDT) Received: from laputa (pdb6272e8.tkyea130.ap.so-net.ne.jp. [219.98.114.232]) by smtp.gmail.com with ESMTPSA id 136sm79997pge.77.2021.08.12.18.21.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Aug 2021 18:21:05 -0700 (PDT) Date: Fri, 13 Aug 2021 10:21:02 +0900 From: AKASHI Takahiro To: Christian Melki Cc: u-boot@lists.denx.de Subject: Re: Hints on how to use efi_driver/efi_block_device.c Message-ID: <20210813012102.GA67965@laputa> Mail-Followup-To: AKASHI Takahiro , Christian Melki , u-boot@lists.denx.de References: <63da56b7-85d2-c39e-2112-9d1296d87aad@t2data.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <63da56b7-85d2-c39e-2112-9d1296d87aad@t2data.com> 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 Thu, Aug 12, 2021 at 04:34:01PM +0200, Christian Melki wrote: > I was hoping that U-boot would detect BLOCK_IO devices provided by UEFI > automatically. But I can't see anything attached under lsblk or find some > other information about this. I'm not sure what you intend to do here, but please try the commands, "efidebug devices" and/or "efidebug dh" to find out what you're looking for. Please note that you have to enumerate (block) devices in advance with, say, "mmc rescan", "scsi scan" (and probably "virtio scan" as well). -Takahiro Akashi > For example, Barebox works just fine on both Virtualbox and real hardware in > this regard. > > Barebox does not have an emmc driver for the real hardware but piggybacks > off the UEFI protocol for this. > > I'm sure that the idea with this U-boot driver is something like that, but > would appreciate some hints on how to use it. > > Ie, standard usage. UEFI boots of a drive, posts some handles(?) to a block > device and U-boot picks it up, not knowing more about the abstracted > hardware. > > Best regards, > Christian