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: 897989 X-Patchwork-Delegate: sbabic@denx.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="HRo4g0Lr"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 40N24S1Pn2z9s16 for ; Sat, 14 Apr 2018 01:38:48 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id C3FD9C21DB5; Fri, 13 Apr 2018 15:35:51 +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-Google-Smtp-Source: AIpwx49jRYhEZtKV6H5StSaXVxMyH6fEaCCws9yimbRUU2w8il8Ym2kPKR5bq3CopLJBzIyD025Rzw== 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=" \