From patchwork Fri Mar 30 14:18:40 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: 132617 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp3104205ljb; Fri, 30 Mar 2018 07:26:03 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/bdBGDm/+UQDsckDYlZXKxvt8LP7AHXdIPifHpmXtxoHWieO0hbXtjXynUdqlIY4bPzFBW X-Received: by 10.80.201.7 with SMTP id o7mr2035584edh.111.1522419963640; Fri, 30 Mar 2018 07:26:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522419963; cv=none; d=google.com; s=arc-20160816; b=kDhCWnT9lpLdiuR9FNoWidGRtXpVl9BPXSLsjsoRT8OCPQXDn8ah/HV7c2HNWGAzzq e1GD3wiCNLZ1b4hNpz2gvYCf+4sQGB4TizdAY7IM6woeoSwRAaHgBTrS47/5zkzNe6O6 2pkBAlGkosi1+uUUOhwFBJjMJEPKd9w3C+sLXLe3gMcE0vI2rEsERNMaADdVDsuri6aN FR5H+hRGMe9rk8T8vVi4/jmSTqberlDRaiaPwU0VcrOIAdPhnn28eAQsfqZapgp39nWr f1UrKQQ0m3rduAAPl1tcjiodNzxF2HxPI4vMI/R6owoyTfxK8J+NqaEy14A6i0J1ed19 mhdw== 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=IIdi4JLTUxJ3l7svuck5BKTAWDREgg+cHeWwf0SxUZ8=; b=bu02v9DkDTSEzaO49EtoWCP97gDtInB6fZ91KQ803qUocqXalrBZ4oexoiz1elOrVn sYGDJ+v66czalzzfthCFAm+yv1uw4LZHrFTlYJx4QNk6Mwgs9l5EEnwitQcsvNDNonWT Yriu/pYmJEsX5FrI/9jyxVf9zvQAXE9t1gVs/l1sYXOGtkvtVoKNjDUeC+svBUwaEov5 v1lGkoDDd2nEQE24Yivj07CJA/KuEU9/lniUkmCM4jOFAuxLS4gvqVcebmplUs8POY+r WudAQwEBeGRowiPamAnmaAoR1Q1gaD4fzdSjAIipWBpmrdmLKOS7C6kL7049UJfC16NA 7bkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=P5X18JVx; 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 32si4390588edf.507.2018.03.30.07.26.03; Fri, 30 Mar 2018 07:26:03 -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=P5X18JVx; 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 442B7C2223D; Fri, 30 Mar 2018 14:23:06 +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_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 47EEBC22257; Fri, 30 Mar 2018 14:20:13 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 67F88C22257; Fri, 30 Mar 2018 14:19:05 +0000 (UTC) Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by lists.denx.de (Postfix) with ESMTPS id 8DA8CC2223B for ; Fri, 30 Mar 2018 14:19:01 +0000 (UTC) Received: by mail-wm0-f67.google.com with SMTP id r82so17107111wme.0 for ; Fri, 30 Mar 2018 07:19:01 -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=NjxHK3OGsvwRFYTLMQTnpuSC4TAlbWIKSteigctFZZI=; b=P5X18JVxo/kbu0R0HKONFX/BcrKSGoVPOaLCfQWaSX5ksPdZ+t0gYmHW/HybGa9suv eXeTzunBeqRj9CBuA3I4JJ/TsomS8WXPqbMxUh8JaA9O4uM3y5A5ekgKR1Yh3IhJKCqj OG9mRSsFE7rT1OuIKxielxj9S7z7bOMsmrs9M= 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=NjxHK3OGsvwRFYTLMQTnpuSC4TAlbWIKSteigctFZZI=; b=MLG6sfqDBr4l4cY64aBitC/2Mmx9zeW7J4EUgtQ8F/AIGcgCbu4f/Rf55U+mtuVsEd lXEU8PeqQaqpK/HmuVPs767lkjBZqqojeQhbqLt2iRK4I2jnV6VBBfbel2no6Vc1mUUR VT3DvMd77yQO/hUDwQ5W5hKYFevzR1BQ6fRi/68Enz3+gLtBDO/mLXN5zBJ3dmKDXIJe m/5FEKeGSczWwVQra0CQOseClhKPBGuiWUrgJndLQLVcaSEO+nTpsBy+02pOWVRNrTLq Q5xMK2ftOTOH2nZC22Y0w5wka06uN4g4ulAmWKZNVxjwoDGSIilIGnzLIsm7U39JLmFP Tt2g== X-Gm-Message-State: AElRT7ERqkfNf1F7lDw0lGzArthfGaJLr86vd/NNjY8lwmCRYI5kMC+X a7EPYOPwsp/fmd2AyMLdhDZL0Lv5agU= X-Received: by 10.80.145.219 with SMTP id h27mr3168674eda.3.1522419540886; Fri, 30 Mar 2018 07:19:00 -0700 (PDT) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id d22sm5831758eda.31.2018.03.30.07.18.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 30 Mar 2018 07:19:00 -0700 (PDT) From: Bryan O'Donoghue To: u-boot@lists.denx.de, fabio.estevam@nxp.com Date: Fri, 30 Mar 2018 15:18:40 +0100 Message-Id: <1522419526-29494-13-git-send-email-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522419526-29494-1-git-send-email-bryan.odonoghue@linaro.org> References: <1522419526-29494-1-git-send-email-bryan.odonoghue@linaro.org> Cc: rui.silva@linaro.org, paul.liu@linaro.org Subject: [U-Boot] [PATCH 12/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 --- 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 a92e675..f2ee09b 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=" \