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" From patchwork Fri Oct 12 05:09:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 982851 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="HUqv8Gmw"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 42WbTD02gXz9s55 for ; Fri, 12 Oct 2018 16:08:31 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id B26AAC21DD4; Fri, 12 Oct 2018 05:08:04 +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 0072BC21DED; Fri, 12 Oct 2018 05:08:02 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id D1837C21D74; Fri, 12 Oct 2018 05:07:58 +0000 (UTC) Received: from mail-pg1-f194.google.com (mail-pg1-f194.google.com [209.85.215.194]) by lists.denx.de (Postfix) with ESMTPS id EE830C21BE5 for ; Fri, 12 Oct 2018 05:07:54 +0000 (UTC) Received: by mail-pg1-f194.google.com with SMTP id 80-v6so5239933pgh.10 for ; Thu, 11 Oct 2018 22:07:54 -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=x5xuzOKNTu+o2DZtUxRLQU3OlYKrqBtCneApBqYiCdU=; b=HUqv8GmwLfC07YnfZrpPwJ6DDaoYda2cjEPhBl6IX/Xw4+FWW8yxyPaRxBio5WG1pa 8BlhX7D2aI5kfD90nHAo6d3yJ3MqMkhpCebI31tMVXDb/bbcLLbA5sYAryIG7hh5v6MW lhE+Z2N751qVwr3ibLX8KpqkUWLz2lQCa0ATE= 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=x5xuzOKNTu+o2DZtUxRLQU3OlYKrqBtCneApBqYiCdU=; b=WzYCGNDuxPo41IiKdQ8zY7v6NMPgN3dCwjL8CY8GU2TyA2GgQs9uGONfgY4MoY9ieA hWWU+aLriZkNh/+TW/3dnCBkKpupuFp6lkR8ziMCWXIkHNtydmjpAKxSVSvbADvU9RYu HTPFov5ijxWfFwCw+Jjd0BeVCp+ONtzKgwLgRM2IKY8Q0fMqMWFQZV4HqwN7EKABiCvU XmGdrYQJOq8EXXKORkYngU8DosYJSK27H78os1T+PD2drt+8x4SBFcAB1RR27GKszTlQ xqAeo6xEzLm6CvOeIxv4i/wQjYKCVvUfL9HZDRVrTn/ghCMNcWeqnqQG/IenYvuQVG9k 9Yxw== X-Gm-Message-State: ABuFfoiyWgykXbqhQzwuGfQX/OIZrr/9j4hGVUPFfoL9DLamtANU4UHF W0PhayfMCNlB4KX3rklLGV19Zw== X-Google-Smtp-Source: ACcGV63zzQlA6IxifRPAe0XAE+KS9JDhwXbBgO2RgkT43TJkQrqxoAlvMFp+yNnn6EUaW606I+3JfQ== X-Received: by 2002:a62:fc13:: with SMTP id e19-v6mr4597626pfh.101.1539320873529; Thu, 11 Oct 2018 22:07:53 -0700 (PDT) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id e22-v6sm142892pfi.61.2018.10.11.22.07.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Oct 2018 22:07:52 -0700 (PDT) From: AKASHI Takahiro To: trini@konsulko.com, agraf@suse.de Date: Fri, 12 Oct 2018 14:09:08 +0900 Message-Id: <20181012050909.7009-3-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 2/3] ARM: qemu-arm: enable usb mass storage in default configuration 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" This is a preparatory patch so that USB boot will be supported in distro boot script by default. Signed-off-by: AKASHI Takahiro --- configs/qemu_arm64_defconfig | 1 + configs/qemu_arm_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/qemu_arm64_defconfig b/configs/qemu_arm64_defconfig index 7fd726fdda35..91c97181ab9f 100644 --- a/configs/qemu_arm64_defconfig +++ b/configs/qemu_arm64_defconfig @@ -32,3 +32,4 @@ CONFIG_USB=y CONFIG_DM_USB=y CONFIG_USB_EHCI_HCD=y CONFIG_USB_EHCI_PCI=y +CONFIG_USB_STORAGE=y diff --git a/configs/qemu_arm_defconfig b/configs/qemu_arm_defconfig index fbceaf3c52f3..4f4f9b791415 100644 --- a/configs/qemu_arm_defconfig +++ b/configs/qemu_arm_defconfig @@ -32,3 +32,4 @@ CONFIG_USB=y CONFIG_DM_USB=y CONFIG_USB_EHCI_HCD=y CONFIG_USB_EHCI_PCI=y +CONFIG_USB_STORAGE=y From patchwork Fri Oct 12 05:09:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 982853 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="Kx98TOHD"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 42WbVJ2RV2z9s3T for ; Fri, 12 Oct 2018 16:09:28 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 01633C21E0B; Fri, 12 Oct 2018 05:09:05 +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, 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 53770C21E13; Fri, 12 Oct 2018 05:09:03 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 67476C21E15; Fri, 12 Oct 2018 05:08:01 +0000 (UTC) Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) by lists.denx.de (Postfix) with ESMTPS id 6C2B8C21C29 for ; Fri, 12 Oct 2018 05:07:59 +0000 (UTC) Received: by mail-pf1-f182.google.com with SMTP id l81-v6so5564928pfg.3 for ; Thu, 11 Oct 2018 22:07:59 -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=xMLfzFXaoFAsnVlRba2TbAcnYXbTDPeZYeHogLWcM1g=; b=Kx98TOHDljaClXVQf7Khr1KCkfZpsy2owQ83p9jej6nm+Wx0y3u3HlZnfQiuj3BdDo XqlImzdEFD2Iq97AJrjOzkF4YXMobrAJQakiq1Ro+5Xc6dVJofeIdmOWxWf6JbZi5LAz kucf4D49Vl73g+Ix3Ad+BJj1tOAnx4Y7CfgF0= 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=xMLfzFXaoFAsnVlRba2TbAcnYXbTDPeZYeHogLWcM1g=; b=W64ej9KxHEZv84ZnJS8rtIqCKyZCjc26C7dt0yU4xif8po7vZL+N2g5qH50zMS7jk+ 0iqYDbmCfOMw/LZNj3DHl0Y5OwDwJu/ORDXYyqA1oQI6kToawIUvqVhCqUFQtubujjeE jY1i/B4fedt4PoGZG7+RcDNaYUWLErkV3EsqA1Qf/PK8dB2E1qHk+K3rWnJruZhELz6s 5GLEylrQstLjdk5S7azCanyOaMCg1yZ+iLn055nzz+4m/YWNMcjczYYLcVLW9PpqXwqU mK4bqIClKg0QBbXtlklPk0HUzaPYw17C2RDU4yzQC8cry43pRjGKg5SgpLTYBMxA5ZtC 14Wg== X-Gm-Message-State: ABuFfoiwJG08iH12TP2YLtvkqy3D8VSL31rX9/YTfBlBiGq9xquTBwBu GZu95nhkBjvCV54bsRHRSIhAOw== X-Google-Smtp-Source: ACcGV62SAik7m5KMRwXc2gF4knCDOxV4AwHeeS6OEliuDM6TZywOXynBw7Qb53z/6UE4QaN05psDwg== X-Received: by 2002:a63:1a1c:: with SMTP id a28-v6mr4024748pga.157.1539320878088; Thu, 11 Oct 2018 22:07:58 -0700 (PDT) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id y19-v6sm233342pff.14.2018.10.11.22.07.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Oct 2018 22:07:57 -0700 (PDT) From: AKASHI Takahiro To: trini@konsulko.com, agraf@suse.de Date: Fri, 12 Oct 2018 14:09:09 +0900 Message-Id: <20181012050909.7009-4-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 3/3] ARM: qemu-arm: enable USB boot in distro boot with UEFI 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 which adds a removable USB mass storage to a list of bootable devices, USB boot is supported in distro boot if UEFI is configured. Signed-off-by: AKASHI Takahiro Reviewed-by: Alexander Graf --- include/configs/qemu-arm.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/qemu-arm.h b/include/configs/qemu-arm.h index 0e66f946dde5..395cb911f5fe 100644 --- a/include/configs/qemu-arm.h +++ b/include/configs/qemu-arm.h @@ -45,6 +45,7 @@ #define CONFIG_ENV_SECT_SIZE SZ_1M #define BOOT_TARGET_DEVICES(func) \ + func(USB, usb, 0) \ func(SCSI, scsi, 0) \ func(DHCP, dhcp, na)