From patchwork Tue Apr 24 17:46:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 134184 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2533452lji; Tue, 24 Apr 2018 11:00:00 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqExXZZwhp7cn5zi1uri0/wKSIhG4JN9lqXf7F4GRdJRWFM/yyFZk0a2/22ku15tNrvxJKp X-Received: by 10.80.183.237 with SMTP id i42mr4122539ede.284.1524592800612; Tue, 24 Apr 2018 11:00:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524592800; cv=none; d=google.com; s=arc-20160816; b=chRbVRzUz9mD0KRPJ1/MGLr8RGKNOsjw2UjPhIW+OzMARThDGMV12rMkDYahLSN4iO xIqJ77ILOyC2MzAyTQwYSDC5tCWHgFGMLCGMYjZtqTux33L6IZZctVo1OMLvcsqc3FVg TQr8dk30ctWOAu6c8CHLfPRbviqIOyMEg4ST2f+i3bY+ixzjEQZTmloJdNHGeAaI9BNl V8OKEkkTRS83SVTHxxnDg27JlUu7knopwHO4eXw2mwCK4qfN4ACCk0nPo1YW6aXS5k18 u6IiyYW9Z+bdzNxy8B3uKyojMWoUpBuLZE0S4zCmUk29a1d7CfCYck9yxNkTiSD4Mv5+ 5FtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:arc-authentication-results; bh=lSm4YegIvMOUuJ20POi7URG1vGXFROxa7swhUuO9y14=; b=EWjaQQ1tBxDWNfmYkbEKfmAs64hEqKETCnPc/QotDdxfkt+Sb48RNnLjevpZL7n5I4 vjQK3ElvwaY5LuE8/QfJT2zg+2A1+5ZwJt3NJQe/cIKgp30eq5to23lGXN5MQciCBE+D srGCMb4FU8xxonpyPZbYnhB09rfG45QmoGKyJtUdKErvbzQc/2O20nSrw/2Gv0Jme2fA oqIvntCSy/Grog0p9/ZIzMshmi2ZRPbkGTJcLIOtQEs2FpRM1f9ySUtkDi93Bbr1hYQz DY2Zc/1BtYamGVU/2hS9c903mY9H1Bo1RfyQf11Cph7lxd6eR3ipXV1AorNjQ2IAEicV cMwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Mvx/qhgg; 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 g5si3862945eda.413.2018.04.24.11.00.00; Tue, 24 Apr 2018 11:00:00 -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=Mvx/qhgg; 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 38FD4C21F8C; Tue, 24 Apr 2018 17:54:57 +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_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 02963C21FA0; Tue, 24 Apr 2018 17:48:00 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 4D829C21FBF; Tue, 24 Apr 2018 17:47:05 +0000 (UTC) Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by lists.denx.de (Postfix) with ESMTPS id 7FA5AC21F68 for ; Tue, 24 Apr 2018 17:47:05 +0000 (UTC) Received: by mail-wm0-f66.google.com with SMTP id o78so2263410wmg.0 for ; Tue, 24 Apr 2018 10:47:05 -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; bh=y7xOa4cPzJ0yLRv3aj6Wl8C57s/Dp3eESkaRbvT9shc=; b=Mvx/qhggRa0YSzKUp0HM0DXSepX5OXPFguTXKiEjhWFMGkhk2QuYtND8MDEZx3PwF7 y0jh9ExHjHSV5OW8oKqOoVtne4dte4vdgNM7NT/7MSehgHjjROk1+fCuK3gGOqj0MZfg aebqaq3BnrC1R5ullytKx3UGVI6DPL58Nt3Cg= 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; bh=y7xOa4cPzJ0yLRv3aj6Wl8C57s/Dp3eESkaRbvT9shc=; b=oStUBVhtg8wbnfzBKIPKXT1Q6VKem/yCz+p3/bTwTxEYAZ7ZvYpAFBL6m7ltC4pq7g nkSEeDnkjmr5H2+oI5JUwL3ewOpUBMHlizgJeKUMBVjH9MiQBSwNG/e4z/LTk+LqUNkQ 4zSGKxEfMwpYJIqxYBX9scbrHnlN4EQZiZcLSNGAD/vBbBIreb3lUd5f2+3yP/FQWvEc +nlxX6/7N8xFcfTZHXHGgCrtwd1KUuqTg2dFT3nWMhJ011Q2qjoXdRDcoIYlioU+IURL gixIF3MjfyDsjJBqdb0uvFrYxZuJwGaiazgemqaWmm6odi6TXmSA0saOjP8PGqrQlx33 E5FQ== X-Gm-Message-State: ALQs6tAUsh1n/2bdkFF6juD2Bgg9N7iOPkbMcU2qS3PyUdD8VAh9yXwT Sol8YrWekl41hdX/h0SwBIY2WdIpySQ= X-Received: by 10.80.149.219 with SMTP id x27mr34731342eda.99.1524592024930; Tue, 24 Apr 2018 10:47:04 -0700 (PDT) Received: from event-horizon.net ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id e6sm6443087eds.20.2018.04.24.10.47.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 10:47:04 -0700 (PDT) From: Bryan O'Donoghue To: u-boot@lists.denx.de, sbabic@denx.de, fabio.estevam@nxp.com, breno.lima@nxp.com Date: Tue, 24 Apr 2018 18:46:42 +0100 Message-Id: <20180424174647.11840-14-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424174647.11840-1-bryan.odonoghue@linaro.org> References: <20180424174647.11840-1-bryan.odonoghue@linaro.org> Subject: [U-Boot] [PATCH v4 13/18] warp7: select uuid partition based on rootpart 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: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Assigning the UUID discovery path to a tweakable environment variable means that later steps in the boot process - particularly a boot script can change the target root partition of a particular Linux boot. Retargeting the rootfs is an important feature when doing ping/pong upgrades allowing a boot script to select ping or pong as necessary without reprogramming the bootloader. Signed-off-by: Bryan O'Donoghue Tested-by: Breno Lima Reviewed-by: Fabio Estevam --- include/configs/warp7.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/configs/warp7.h b/include/configs/warp7.h index a92e6758bf..f2ee09b831 100644 --- a/include/configs/warp7.h +++ b/include/configs/warp7.h @@ -45,7 +45,8 @@ "ip_dyn=yes\0" \ "mmcdev="__stringify(CONFIG_SYS_MMC_ENV_DEV)"\0" \ "mmcpart=" __stringify(CONFIG_SYS_MMC_IMG_LOAD_PART) "\0" \ - "finduuid=part uuid mmc 0:2 uuid\0" \ + "rootpart=" __stringify(CONFIG_WARP7_ROOT_PART) "\0" \ + "finduuid=part uuid mmc 0:${rootpart} uuid\0" \ "mmcargs=setenv bootargs console=${console},${baudrate} " \ "root=PARTUUID=${uuid} rootwait rw\0" \ "loadbootscript=" \