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: 894401 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="RLs5jwHT"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 40FSCD3qc6z9s1r for ; Tue, 3 Apr 2018 08:51:52 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 2F80BC21DF3; Mon, 2 Apr 2018 22:43:38 +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-Google-Smtp-Source: AIpwx4/8k1aMbKE8j7Tfe6l76thMdjW5fPIMUB4i0lsOWdzeBb1bg/f+XEE3zoSKOa6zD6ASyKP3fA== 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=" \