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: 982852 X-Patchwork-Delegate: agraf@suse.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="PT4fP0nG"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 42WbVF0bPVz9s3T for ; Fri, 12 Oct 2018 16:09:25 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id B57FFC21DEC; 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-Google-Smtp-Source: ACcGV621fwcpMn2KEgPSUG2AdY2+RfsWtZjlQLjLZJ/Eodu5G4nNPS5gO895BjW59ymRzVvFUQ2pnw== 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"