From patchwork Fri Apr 13 15:31:16 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: 133394 Delivered-To: patch@linaro.org Received: by 10.46.84.18 with SMTP id i18csp852684ljb; Fri, 13 Apr 2018 08:37:58 -0700 (PDT) X-Google-Smtp-Source: AIpwx48nnNOC94r0wo9jYBgyNRaVo1Euj/nB5I0ghlNKE+T6ct+3AQvHELBBKpHubHcQmNr8IYzh X-Received: by 10.80.183.65 with SMTP id g59mr21029545ede.129.1523633878508; Fri, 13 Apr 2018 08:37:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523633878; cv=none; d=google.com; s=arc-20160816; b=gbSBwpHweyvYQYxComGtzoiu1Ho2gRLyIh/AemYM6iVPyBBUOLHKPM46W1PvCUZxsn 97bqgNbdyG+SfWq7NL2kZvvoHK0kuXdFUreISpEHD9s3AKQVnFS9FeZ11dImxdYlMHuW 4M9cynVKmY2LL9yNEn2bccMKRRV8m3CxVTJfl/2EoYQF0KjsAIWTgy+7HbEvA70qEnmF LNUkRACBn3IgB9vPjhA6Q3mCfSYtZhg4r/gSl7ZDDgqZ2+8Ray0hi/H+FqjUFyKXkfos pyM0K29lnZjKClfA4bf4BOGjtaGyPoikC95JGmqN/H4rkSDTl984Sqxe24vUHI7iyW9P vQUQ== 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=h8uFLodEutZcH9/CvQXB7a0R+r7QYHhjlczIhVnlMmHxX/U7WmkUKyZjbh1TPdI3ap HMI+HX/DPmn/0J+bLSlg7wiLZKneO3e0RmT7IPgwtM3KyAi5N0uyZeRRwwr5vwLFfM2x F76JkBmL5P+8XInYKZLsLa15LEaq7+Av6X982wNRyuQU77c9k9XZu9Yb/RRtqOTyXyLL NrSBHKmVDKgvxi/XbcM78fHH4c1bSloPIZ3vRUfk6f0bgo1znpRwugSfbG/wvHhIF04g pt+h0ASXmSbeB0gF8SiyBvtO1eymqTLkgvfWHdsn+QWwr7f3VWctOe/Sp7kpu/0ck8vl g7/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=HRo4g0Lr; 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 j4si2498740edj.1.2018.04.13.08.37.58; Fri, 13 Apr 2018 08:37:58 -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=HRo4g0Lr; 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 1B0CFC21D56; Fri, 13 Apr 2018 15:35:50 +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_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 CED73C21E73; Fri, 13 Apr 2018 15:32:33 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 33869C21E02; Fri, 13 Apr 2018 15:31:41 +0000 (UTC) Received: from mail-wr0-f193.google.com (mail-wr0-f193.google.com [209.85.128.193]) by lists.denx.de (Postfix) with ESMTPS id 38EFDC21D74 for ; Fri, 13 Apr 2018 15:31:37 +0000 (UTC) Received: by mail-wr0-f193.google.com with SMTP id u46so9164516wrc.11 for ; Fri, 13 Apr 2018 08:31:37 -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=HRo4g0LrkkRbV7J5iWXVI8J4CziPa7hitCsaQaUlNrnFH3oS7f77oApR38PQl2G6DU 1rQ4y2WsKGDY6w5rWBeiGVaihja4QmyYJuJCdxWebZ4MvzojYEKU9JAtE+2LNh87EQo3 9e/hKdK8Me0bSjBwLJi0fe0WMbmpBUk1hv4y0= 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=FIeNOXxaKfdxW3BQHSMSFAcvPNoYa+0zQTxEtt4nh74MnxXPAcJ8fA2fqV36j+oiZB /EBt10McGPL5O9Wo2ib9rw4Ib5j9K+Ry2dfagUy0BIhO2b/NCZwnuXJIzdamoNPFOJ9g XtKP1zKxhXY/1h5Y6yoZ/S6/rZk/M2w2ZaVh4e4vt1b4mT1oEIRU+Nqyi/MN890mxni4 EW9s1SM7k2Q24iyvNUiUfylHdAWyw49YE3fOZ+rDL8Fdaeqzl+MRe67IHjHM8ybrPRZg XGYDpeofVw1JNyCyXJ12KwMbOORxSFd9xHYOt5rYHj+VqtUCfOWvXaX/XdHr/ycQ8oAS klRQ== X-Gm-Message-State: ALQs6tBiT/9Swle3kFF9vMKpkdsEtSJMsUzzxgh1Ri4tqb3koVHVc7o5 q/WQTxarDDhiPY/G+3Xmgvk+YaJnzoA= X-Received: by 10.80.165.28 with SMTP id y28mr21032224edb.105.1523633496694; Fri, 13 Apr 2018 08:31:36 -0700 (PDT) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id x35sm3516008edx.86.2018.04.13.08.31.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 13 Apr 2018 08:31:36 -0700 (PDT) From: Bryan O'Donoghue To: u-boot@lists.denx.de, fabio.estevam@nxp.com, sbabic@denx.de Date: Fri, 13 Apr 2018 16:31:16 +0100 Message-Id: <1523633481-20914-13-git-send-email-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1523633481-20914-1-git-send-email-bryan.odonoghue@linaro.org> References: <1523633481-20914-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 v3 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=" \