From patchwork Fri Oct 12 05:09:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 148706 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp309083lji; Thu, 11 Oct 2018 22:09:49 -0700 (PDT) X-Google-Smtp-Source: ACcGV61QMs5kRmGvmEGK4uUA6Y79XfpnFqwLDEtw6BeexpQhvRY2GAFX4TL3L+ePR7F4qFKQkV6w X-Received: by 2002:a50:8ba2:: with SMTP id m31-v6mr7034563edm.260.1539320989801; Thu, 11 Oct 2018 22:09:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539320989; cv=none; d=google.com; s=arc-20160816; b=HLFG6aakgfJH2dEGgt8PH1FHTcFmZZlht/1iayYk03NUFIkpPgfSpd/0EccJFr8ZZ7 6ayaRmHdnlHcVFv2s2pEuHBard7qbrp2gtq+Bgdm6EMEP8nx69hSShB4Wo+BNqUAdKSO +lJiABdN5W+ok1AAl81+sWjQxq9XPeGxOc5UBYiUXHXcUixHgq4wuO3cFGOldsy/drr5 0p0nBhGZDiEtg4w4YTB6oDwDgD2R357z378ExirYFt2yQu3LQ2mcZTimv1GbMHWavl/g Mko/ju/uj9kBY04a/7uea6FOQrcOxNjffvx5pMjYyCW/opRK6NeFthU19W2WHM2BH4lJ zlMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature; bh=9TTc4BEZsVgoDc2NeRH0t03qqG5yKPjgJTMLq783O/M=; b=PO/DinZyHtWZABJEzamrgNDtZbIFZ6qpjyuO0JPtHf1QAcKv+ZHlfN9xlgMptwKfhL SvnECwdqMV3mOzhuSc+NRqo8cYYhggkG6DHGGAgZYslcYwohCAL2pgUXfcasZykXHMZJ BEgCpyQbSojOZuYyo1bBHsuTaE+rmcou8183vkJJZrEUn9PlYsWHHYTZJlisGn3rTiwO n6s8rLmnXg78h91c1e7cOd7CepUEx+kmtvyFvsZ0cep8C5qGsYR3RZ06ntRfYPQEJiew M27UVJzSb2JNYD+Ji8NX85RYIqYusJelflUYI1ABZSXqba4A7KNRoYWwq7tIaugTqP+q 16pQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=PT4fP0nG; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id h91-v6si386840edd.102.2018.10.11.22.09.49; Thu, 11 Oct 2018 22:09:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=PT4fP0nG; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id 66E79C21E12; Fri, 12 Oct 2018 05:08:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 42963C21DAF; Fri, 12 Oct 2018 05:08:24 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id C823BC21DEC; Fri, 12 Oct 2018 05:07:52 +0000 (UTC) Received: from mail-pf1-f193.google.com (mail-pf1-f193.google.com [209.85.210.193]) by lists.denx.de (Postfix) with ESMTPS id E7476C21C8B for ; Fri, 12 Oct 2018 05:07:48 +0000 (UTC) Received: by mail-pf1-f193.google.com with SMTP id k19-v6so5569049pfi.1 for ; Thu, 11 Oct 2018 22:07:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=YZFUZUfYb54YDmsfNjMhRtjN93xqBnwvDw6hixD6nxE=; b=PT4fP0nGwAfu5NjlrFb1nAcSle8Gz4eAYwsvsl3o9ppg947CLQ4q3vTXVv7S1Yg38p BBH7hpC0bUZ0ugZfwJ3Bw4UMiU4kXjIsWsy+YXDC9LCwPRbEvMKGdBE3/v7Wgc8SF4Dr KA5M0NU0mQ5rFvWvD+avphWO2PYbznY5DJlZ8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=YZFUZUfYb54YDmsfNjMhRtjN93xqBnwvDw6hixD6nxE=; b=KejIM9mpkKeiL2g4snvxc43nqZvcsqjPXsTvNdYFJxeXR3edmu6DgHXbSj7jNLGkL9 GYRDu1Kwk05yE24iCDJqR9GnvMtyM/M4mhrshTsMu38t5hAEoWLHLzIi2UUkN8LzXPc0 OHpStiSlwCU/+QF91PdOhjhDBqw+A4REshbnFKkrX9BsV/QBIwWhPfok7703IdMbzi2b i1e3eyqc6cRrsojggdjyTV5O+ZgqS8Xf1PCDQDgsYAy82YBDWLFBZzn6Wsr9wncR9WEo 6Z/usJqfBShLt7AXM6mfn+77FU3HGIcqkCFypCJRI4xftF+zRqrXb0mII0whmm8PGOTZ wayg== X-Gm-Message-State: ABuFfoi9VqSv0Kk9u/5Kn+mjVmiiMvInEwiKB4GXQjGJX4DRVnS6mj1I vjanrzPw/7wNRynBeqVDf4Rtlw== X-Received: by 2002:a62:70c7:: with SMTP id l190-v6mr4515812pfc.186.1539320867550; Thu, 11 Oct 2018 22:07:47 -0700 (PDT) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id j19-v6sm121696pfi.137.2018.10.11.22.07.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Oct 2018 22:07:46 -0700 (PDT) From: AKASHI Takahiro To: trini@konsulko.com, agraf@suse.de Date: Fri, 12 Oct 2018 14:09:07 +0900 Message-Id: <20181012050909.7009-2-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181012050909.7009-1-takahiro.akashi@linaro.org> References: <20181012050909.7009-1-takahiro.akashi@linaro.org> MIME-Version: 1.0 Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH 1/3] efi_loader: support USB boot in distro boot script X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" With this patch, a removable USB mass storage device attached to the system will also be scanned to find and boot an EFI binary (that is BOOTEFI_NAME, see config_distro_bootcmd.h). Signed-off-by: AKASHI Takahiro --- include/config_distro_bootcmd.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/config_distro_bootcmd.h b/include/config_distro_bootcmd.h index 76e12b7bf4ee..dd47e27d6835 100644 --- a/include/config_distro_bootcmd.h +++ b/include/config_distro_bootcmd.h @@ -26,7 +26,12 @@ */ #define BOOTENV_SHARED_BLKDEV_BODY(devtypel) \ - "if " #devtypel " dev ${devnum}; then " \ + "if test " #devtypel " = usb ; then " \ + "if " #devtypel " info ${devnum}; then " \ + "setenv devtype " #devtypel "; " \ + "run scan_dev_for_boot_part; " \ + "fi;" \ + "elif " #devtypel " dev ${devnum}; then " \ "setenv devtype " #devtypel "; " \ "run scan_dev_for_boot_part; " \ "fi\0"