From patchwork Mon Apr 2 22:42:11 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: 132692 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp3103496ljb; Mon, 2 Apr 2018 15:50:33 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/vynGDnWpYRaBk9QnqurYOUZJg4ARnWAIM+J/yHc5Xco8CKKJ5RTzwyDX8r59p6Lx46M/R X-Received: by 10.80.189.193 with SMTP id z1mr13897417edh.119.1522709433631; Mon, 02 Apr 2018 15:50:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522709433; cv=none; d=google.com; s=arc-20160816; b=TDXDyNkWp0EegEzP6QF195SGa5Dn6vS9FkV8LH3Sl40YRYNrEzFHtJKaAPsMN8Xmyu hzC30MW9CPxA1cHNdMaWEk838UZO8VcJTl7LcvWsami6GiFlo4Kclu4vnmE21oC0NuM6 OA3qEpeKOCscwiZAMBvvKf/mcURKY/9tlYgpqi+FjWkVIHc7ZgWIcSjBzc2hdYqkCxvi cd/wxPbLrWmgbqdTz2R9nhbZASbgAjDqsUYlaAbN/vaIcy7rB+eJzf08uZNZVv7hWZD5 sBmKjALofkcxwFH3ACraHQvxYgu66KCEWSHqPbIPfh9rHFYC+rq5JSIKjmDg6v7vYJ2p EbSg== 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:cc:references:in-reply-to:message-id :date:to:from:dkim-signature:arc-authentication-results; bh=C9UYAeiTsC1Nw4oST2JOhhJIGOzkUXaiXPclmszO33c=; b=xn+wFL3BqU912QRv0gFR1wrNw1q0HlkBsAdMwWLdqlWMUKlytqUpwxiZojAucJPk+B syVeSeE2vmhbZMyTynd2ppsc069stPsrK11CGG63vpua3wkD8O0hGaYoI/J2wneU57i2 BFBnllvG4zIoAIftZH3T8nvKR+l5WlwqpJa1tyZYmRlrm+dyZggGv5XJAoGqeMkY2Z7z plqoT1F7MTeKzxnWNObAFuz3KkDdArpEeByGgnJSwo3y3fZATPV8mVYb9bDNMDZ6WaMs nSWW3eHwQhnkPJwKZJfC9ne3ac0a+eq6PgIVjyXxlT7bRdmPH3n0ah1rw/+d2O2cdZc4 xFVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=RLs5jwHT; 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 j20si1190236ede.348.2018.04.02.15.50.33; Mon, 02 Apr 2018 15:50:33 -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=RLs5jwHT; 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 2943BC21EC2; Mon, 2 Apr 2018 22:43:37 +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_H2, 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 4690EC21EB1; Mon, 2 Apr 2018 22:42:41 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id A8B3EC21EB1; Mon, 2 Apr 2018 22:42:36 +0000 (UTC) Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by lists.denx.de (Postfix) with ESMTPS id 8AA93C21E8A for ; Mon, 2 Apr 2018 22:42:32 +0000 (UTC) Received: by mail-wm0-f65.google.com with SMTP id x82so30477652wmg.1 for ; Mon, 02 Apr 2018 15:42:32 -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=KgrE6YnsKs+4xDftmSHKc3zTTtDMLVB3jc+2BUJ5WCU=; b=RLs5jwHTrd+p+8pxnHBmfk9IOC+1bOQhLy68ZvE9Sz0PxbHkHbB85O+6Ri0Hp0rbdG 6fJnZ0afbi4hJbdxCPYxfQPqHbjg1+Ezxs/lRR8Qipa9aO9zmkX0i1nuxr5DzGzRUy2n 5WVazC9/AVuAeaor7akryR7Rxhy9gt8ehvj3E= 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=KgrE6YnsKs+4xDftmSHKc3zTTtDMLVB3jc+2BUJ5WCU=; b=ACZCIHF+TP+nU7gTmyERq6ySu62AmEGtqJcEymMJMrMtoI5BapLJspG7wLrNqH/6iU u6PpDQYmNdro3+Vqqys2ei/GAIBrB1+1UifZ5JnBdU3ViojK+jFsW74tTlddjpcM77FL 35kf+l+0Kburpkm4H+Pe67hsN1EhOJm/CaesH8tKAEuC/eQvY2JJPoy7oYFNV1FP+/OQ KobiUuehWqiHD4zOuG9nQTI95F92UZKGcn6w4WUpCgrrT6sN19OZvyyvi5Of0Wbk9McS F8EUa7JsogALxcqbckdIH5USwQ2/8E0/tpV/0CruSooLNFBYAsQrvomCRUnDBnVYXWMd Nqeg== X-Gm-Message-State: AElRT7HAYJ3W9mO6yhvUJNCh7KQCCBQhc5OiCPfu54scS7jNKp5eEPJ7 xlPCwhz/eKYRbUyN6r8+XFBZCoGwKeI= X-Received: by 10.80.232.195 with SMTP id l3mr14092262edn.307.1522708951220; Mon, 02 Apr 2018 15:42:31 -0700 (PDT) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id s8sm842086edk.76.2018.04.02.15.42.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 02 Apr 2018 15:42:30 -0700 (PDT) From: Bryan O'Donoghue To: u-boot@lists.denx.de, fabio.estevam@nxp.com, sbabic@denx.de Date: Mon, 2 Apr 2018 23:42:11 +0100 Message-Id: <1522708936-7603-13-git-send-email-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522708936-7603-1-git-send-email-bryan.odonoghue@linaro.org> References: <1522708936-7603-1-git-send-email-bryan.odonoghue@linaro.org> Cc: breno.lima@nxp.com, rui.silva@linaro.org, paul.liu@linaro.org Subject: [U-Boot] [PATCH v2 12/17] 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 --- 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 344042c..54b3b31 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=" \