From patchwork Mon Aug 24 18:00:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Matwey V. Kornilov" X-Patchwork-Id: 248235 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:522:0:0:0:0 with SMTP id h2csp2755744ils; Mon, 24 Aug 2020 11:01:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzswJfbTPKR7VkvyejvFhNeBP3YJ1tlrtSqSCKMif4Pj4nkF/xzITacAEcjIGzMpctQjb7c X-Received: by 2002:a17:906:a206:: with SMTP id r6mr6524472ejy.70.1598292062738; Mon, 24 Aug 2020 11:01:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598292062; cv=none; d=google.com; s=arc-20160816; b=KwriOcAOjfKrCAskLzU94JTGipCxUfpmArnMmUZ0Rl2cYPCOYVCf2VUYh/jGwtgb4W DnnCRhcVKR18rgjgRwzDEa33P8wAAmWtA9Kx7SjdFyppsOhz20Zrbl4/jrKahjdIp56X gsa/Kijq2LfH5gKLI+bNLO5NdqT7X9e9JQC9tU+i1W96ntHnI4t8UJKToYOOgUYZ+45r i3x+w4u2ZFq49+HrBmCktUwZrWuN79YtfyAFRY16Svht7YXAWshi0NExaPT0Gng/RcVu JPn43yBi0OLU9t0HRrjPwQ37KE6RDbhRLol6rd5Fijmx2VqOmILc6H0SvIr7DW/H7TxP rXqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=j05mfYA/LNeLe7NUjG8Gv1cgMq9gdb7rL8aVdfjmNmE=; b=YR31KMHfx6pPT2T668RUU/VS3As9zVGuQvUO8uJX0awnMi0mhyu0foU1az+FRabqiz m6/etINI2bspzC28ExHwqvFIllGuJQXj9B1DPdladHXJ0W8wOs/FSRMF8JfECR7AN1Qg jejJ3Bmwz/NYMu9cEJ5nPzOJPlzguwwdLQroOiUUzIUvlo2lrTNmCkKEb6nHL6Hcrngi FyHJPnFFKvOjNrIVv2d5Lo5RVQ80fe+EqRcUbzw0x0y2PFxUVqYe1fMxSWvtsq1BWeiB 0FuWR4Vor5ALcOMUBehOSw1vaf7Ae8SVG52vThm4Cqw5Njf2nnCNgH6+XN0Rm0mbA9/Q QG6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vbt3tOob; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id z12si6922750edp.120.2020.08.24.11.01.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Aug 2020 11:01:02 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vbt3tOob; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BA075808B2; Mon, 24 Aug 2020 20:00:59 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.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=gmail.com header.i=@gmail.com header.b="vbt3tOob"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8F9AB80404; Mon, 24 Aug 2020 20:00:58 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) (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 169D980404 for ; Mon, 24 Aug 2020 20:00:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=matwey.kornilov@gmail.com Received: by mail-lj1-x242.google.com with SMTP id i10so10715868ljn.2 for ; Mon, 24 Aug 2020 11:00:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=j05mfYA/LNeLe7NUjG8Gv1cgMq9gdb7rL8aVdfjmNmE=; b=vbt3tOobKHqWMuulrV5Z6Nyd0pKbFtiRMYN16C2ZnSXGomfJmNHnCvqJ5e2BIMxy2L noz/qPdjoBXCD0hY5oWp+N3vN1nDvIl2HE+mikwerVdAhChiWcOvy1Y1Eq79QQOn+MBJ RgJR9uSQz9sqNOwFU0DPzoSX1JmLDVw0RauKcOFtvpCGYUdSVHqcQ6mjWo07wPi6SEs1 ER/u4Ie+1eobPEm9IQyw0Q3zHUIlX9E3Ei1u+IGzRsElYt+8jfljWmxSZ+bzV7woPPi4 n7gnwq4qfzhPpgiWNc4Jyhj02/vGTP6XFAf5Hg4fg2cACDkGt+9vqpcNtFrgX00/8h0e Xrog== 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:mime-version :content-transfer-encoding; bh=j05mfYA/LNeLe7NUjG8Gv1cgMq9gdb7rL8aVdfjmNmE=; b=l6PGlmGRXzdQvcmUJKromnGpvxO5fo2uyiNagyZ4oVxEkEtZTnYSuLaZtGXtld+oEJ zpsmtmjDH9KOulGFKcszJiQysRGEOrGJDbbALSmx+GfX5X+STmoz40MrnB4AXL/elC+y 4TpU3MbwTJwcG4rYDvJ6FLuJOkhTFyREdGvLBNStVvz6dzlnkt3KmuQcq7fD8YfufY3i xWMtrflaOAQtMGmwp1Khu0rhwbdzA/e2lUmvM9Rbo84FID7kND94yMioB5iY6WYhiruH G9K43C21mz8H7YSY/GoRl73jVLs17djxxeI5TfnihrjUWSc9WOW1X+OO9yowby966mq5 +LAA== X-Gm-Message-State: AOAM530U0lbe8sRLzYFej1lc0wt+cdL5ViggUy0mmEG91kyekvIcSvcM qZmkymxgoiMqChacMxAeDd8= X-Received: by 2002:a2e:b04e:: with SMTP id d14mr3367829ljl.16.1598292055223; Mon, 24 Aug 2020 11:00:55 -0700 (PDT) Received: from oak.local ([188.123.231.180]) by smtp.gmail.com with ESMTPSA id l13sm2456731lfk.18.2020.08.24.11.00.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Aug 2020 11:00:54 -0700 (PDT) From: "Matwey V. Kornilov" To: trini@konsulko.com Cc: u-boot@lists.denx.de, "Matwey V. Kornilov" Subject: [PATCH 1/2] ti: Use devtype=mmc instead of setenv devtype mmc Date: Mon, 24 Aug 2020 21:00:32 +0300 Message-Id: <20200824180033.13681-1-matwey.kornilov@gmail.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 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.102.3 at phobos.denx.de X-Virus-Status: Clean If devtype variable is setted via setenv, then the following devtype=X style is ignored. Currently, many u-boot commands use devtype variable in the latter manner: mmc_boot=if mmc dev ${devnum}; then devtype=mmc; run scan_dev_for_boot_part; fi Use devtype=mmc instead of setenv devtype mmc to avoid bugs with booting from another devtype. Signed-off-by: Matwey V. Kornilov --- include/environment/ti/mmc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.26.2 diff --git a/include/environment/ti/mmc.h b/include/environment/ti/mmc.h index 1c8e49a8b3..b86c8dc7a4 100644 --- a/include/environment/ti/mmc.h +++ b/include/environment/ti/mmc.h @@ -57,7 +57,7 @@ "fi;\0" \ "mmcboot=mmc dev ${mmcdev}; " \ "devnum=${mmcdev}; " \ - "setenv devtype mmc; " \ + "devtype=mmc; " \ "if mmc rescan; then " \ "echo SD/MMC found on device ${mmcdev};" \ "if run loadimage; then " \ From patchwork Mon Aug 24 18:00:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Matwey V. Kornilov" X-Patchwork-Id: 248236 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:522:0:0:0:0 with SMTP id h2csp2755986ils; Mon, 24 Aug 2020 11:01:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxIzmlYH6HvbSrsC0iIdAty+vidogcvZ+3N4EiaR3/17GYSjhvBdW2tZgfjbFMzKq/9c2Xg X-Received: by 2002:a05:6402:1430:: with SMTP id c16mr6441315edx.144.1598292076537; Mon, 24 Aug 2020 11:01:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598292076; cv=none; d=google.com; s=arc-20160816; b=S02r8mgU+apQAyz7cHFOg0zfK/WoSWFXCI3ZcZ6HX81tmX2rlNjKDuU8FeMbFK7mgG 7hAYcncn3/n+T9sdhBst9R47uIKl+BAeLX06d4ZCbWBoTpZCTolVZF4UE9glLhS1P3o3 xEmZui4IznhrItKUykNLdxqDLEbIZzJrAgxtEcAhe/Ip9Scczeoxm7J4iEDW9UN/RzNo HJCUi3zrN77JiWNvIR2MeHPUUX0tAz4cFQwpwCcHKNw9Jc5+dqK2yvCOq11muqKDAanp DnrPSxx0xVf7CuUIBM6vMo0LVNbvfrfCWlsMG/mbUn8WmiGp7HNq8pbTrC6v9qnHb7Ga JLOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=gi1wAXYZYhPFiOScp7jJB81xozx2UTVNpjW3AIEDR6o=; b=qq1di7205TlIK8tsuRKB0pIlAkyesPHmnYh4wazrsEpYV1UYznrBEwA6LGC/aVYnkm 3yBZahVMBlmTUqzCHxUNlEI6Vn43VNLlDXxCFsmYbdhkdORNuZ3ZtJRGkNGwjlJvtiu6 AL/UGmvUUm3car8vPhrv/RGmy+nGxvpJ1pDTV4JotZN+OHV0PzURh7CC8e4NyRBD8eEX X+Xoi8yuaGD9kTv9kgLothNd8inuzR1WL1L05cQDHLggvej1/5Lxh68MU8mXZ7c7hBqv cx3hhbj83ZuELYujdZ0FgBiaD75FYs16aEmta6fsB1n50zeQ4ICHSZ9sUcdsTU9WM3ZV oT7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DqggLuLg; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id w21si7127259eje.385.2020.08.24.11.01.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Aug 2020 11:01:16 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DqggLuLg; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B309A81C17; Mon, 24 Aug 2020 20:01:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.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=gmail.com header.i=@gmail.com header.b="DqggLuLg"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6E54880422; Mon, 24 Aug 2020 20:01:02 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) (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 CE42480422 for ; Mon, 24 Aug 2020 20:00:58 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=matwey.kornilov@gmail.com Received: by mail-lj1-x243.google.com with SMTP id i10so10716044ljn.2 for ; Mon, 24 Aug 2020 11:00:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=gi1wAXYZYhPFiOScp7jJB81xozx2UTVNpjW3AIEDR6o=; b=DqggLuLgWpH7E/E2SV4/s4mkSkN07uf/vQhg/QL44HG1CtuaaK3kX4rG/fejJ2pKcC 4lerWVlD82ZCNyKTe1o0YnsRqKNRyzJelyN50jWlDHL3vFWDHdijwS1v96klLJNNmVWb dEG1TxmGEWcZxpCDWVxTKmzrtcoqkZ4+THn2KDmeS5BLMetM1MnH/kaq8USbR+P1joBE VuaojLhg6vvzlNo94ifKjAhuc1NqmKFnEF1DtP66MxmcvmIZHaO2vWZX326J2W/7F+Ug X/KL7DJCg/Wa4b1R65CBIm7NKuoXdwAWiqAt9Re09DRM3fWYv+XYeC0dKv2VhTkXFin9 xI8g== 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=gi1wAXYZYhPFiOScp7jJB81xozx2UTVNpjW3AIEDR6o=; b=OhkK3aTp4QUd1Ev9IuNlsS9lWyAkvjjOBlHVFvyQ/MARoEZTfSASTUsVveLYCmzjtj Rot+d8eNX6dNZHKWjFN0+hJnOnSvILe6poXVIgx1h3J3+5emmiD5CSRYMeDkJ8tAuMBT hD61l/vOsDrJwHQvSwx3t6T3qmjI3vCfVmIJN9vbTwPmWSuOrhyV93VoIJzghzS28W4L A4zi3vXp5Gxr9zm3DLwLRqTNqixUaxuWeKWMViop4v//xLNp+pUNLZjC4UWQ198UVJph yaF1wPqFj+MvqMoW22rSEQ+qxZ7IQuVQWVoZLcFHlaVjcuhI1LMf5IQWV9iUqzVf9hHv rGjA== X-Gm-Message-State: AOAM533/7NgyeMPq9B2kP9xTCqO30cu8Gyu2u5ELPUn8TDHYPy7wq1Ne 4kvorXs30JR/lBAL8Lz5AgQ= X-Received: by 2002:a2e:9f43:: with SMTP id v3mr3026345ljk.266.1598292058142; Mon, 24 Aug 2020 11:00:58 -0700 (PDT) Received: from oak.local ([188.123.231.180]) by smtp.gmail.com with ESMTPSA id l13sm2456731lfk.18.2020.08.24.11.00.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Aug 2020 11:00:57 -0700 (PDT) From: "Matwey V. Kornilov" To: trini@konsulko.com Cc: u-boot@lists.denx.de, "Matwey V. Kornilov" Subject: [PATCH 2/2] am335x_evm: Allow booting from usb-storage device Date: Mon, 24 Aug 2020 21:00:33 +0300 Message-Id: <20200824180033.13681-2-matwey.kornilov@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200824180033.13681-1-matwey.kornilov@gmail.com> References: <20200824180033.13681-1-matwey.kornilov@gmail.com> MIME-Version: 1.0 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.102.3 at phobos.denx.de X-Virus-Status: Clean Signed-off-by: Matwey V. Kornilov --- include/configs/am335x_evm.h | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.26.2 Reviewed-by: Tom Rini diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h index 9c4ef369c5..103c046137 100644 --- a/include/configs/am335x_evm.h +++ b/include/configs/am335x_evm.h @@ -66,6 +66,12 @@ #define BOOTENV_DEV_NAME_NAND(devtypeu, devtypel, instance) \ #devtypel #instance " " +#if CONFIG_IS_ENABLED(CMD_USB) +# define BOOT_TARGET_USB(func) func(USB, usb, 0) +#else +# define BOOT_TARGET_USB(func) +#endif + #if CONFIG_IS_ENABLED(CMD_PXE) # define BOOT_TARGET_PXE(func) func(PXE, pxe, na) #else @@ -84,6 +90,7 @@ func(MMC, mmc, 1) \ func(LEGACY_MMC, legacy_mmc, 1) \ func(NAND, nand, 0) \ + BOOT_TARGET_USB(func) \ BOOT_TARGET_PXE(func) \ BOOT_TARGET_DHCP(func)