From patchwork Tue Dec 18 03:08:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 154037 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp3207899ljp; Mon, 17 Dec 2018 19:09:36 -0800 (PST) X-Google-Smtp-Source: AFSGD/WU8yFbg2F9YaCfC9gcfB7UgXtbViQztorqrTQgNCPQ/ITSHpVrXvD0G5sJAqyFX8TvuF6P X-Received: by 2002:a17:906:1102:: with SMTP id h2-v6mr2908822eja.18.1545102576064; Mon, 17 Dec 2018 19:09:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545102576; cv=none; d=google.com; s=arc-20160816; b=vkqyriTJpxF+neglB+X3zJ4psSGZj+lzddRRHKhtfXd+xkw8y7Ry4FN+ZzzHrIIEYT Wvz/ieJlJ8Z5RqXiOZNSqsTkIjhV3TyDwmvv0jfBNlaO9IxeHTAiXFTvMT8qE6WED/1p xBad7xCdnYFO2QNDBjhyRw0f6kNGdu1OXjp4Fnvm+XMTuGz+2HyJUWyGww03EY8IaJok 5WbgzvM0vkiZ7DQFelGezOBxRu0LlI6GDnq0K33PsI+99amQjmQ1yk+9b8sLWPJPoRYl fJfWpjfWAzDArXRebSoFhghFaiFJ28vzUfc5O16TR/ui1DeUE0O6qDp9RlA6MCC1gGjP Qc7w== 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:message-id:date:to:from :dkim-signature; bh=5IEqpB2xnHoQPkVI8ZhT51cWHFBpjno0HWnjm5gCXSs=; b=wJasPImswHES/tODMQu3+MqjDzfIIZ8piBnNeIZIM0XSfKOh5ME+9CexGVPBbuAMCz tuUv0wBPe+SXSNIUnzgJW9DIDMj4Q1HDArcXon+RSeNAgwh7MiR6V08VoSwVaW0YHvEh 7/QPGBLOw+7qN6e8WqpXiptD1IB9k3Tt0XejGw6DG1w7m4PBSR+mkuTsn4ga7hIa8c8z tCTYgnlJ3ychoXfDs9qKCOjxGxKPKPmubwu8mWDziHNYo2AKVJijn3yKZnLk268YPVjs HT07Cje+pTZUqp1YL8n6knDlwsPEl+Qv82WpM54nTyoY5RQr/Na83GY4d02dL8NqtB67 +xpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=OkwpMP99; 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 q19-v6si1217372ejt.57.2018.12.17.19.09.35; Mon, 17 Dec 2018 19:09:36 -0800 (PST) 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=OkwpMP99; 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 5F2B6C21E60; Tue, 18 Dec 2018 03:09:34 +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_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 07EFCC21E60; Tue, 18 Dec 2018 03:09:32 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 74234C21E60; Tue, 18 Dec 2018 03:09:31 +0000 (UTC) Received: from mail-pf1-f195.google.com (mail-pf1-f195.google.com [209.85.210.195]) by lists.denx.de (Postfix) with ESMTPS id C4C3CC21DFA for ; Tue, 18 Dec 2018 03:09:30 +0000 (UTC) Received: by mail-pf1-f195.google.com with SMTP id b7so7380558pfi.8 for ; Mon, 17 Dec 2018 19:09:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=TWO0GI5Qx7Qg57WcTz+VSLuBw/gWh265wHaIiSpADSI=; b=OkwpMP99CwgCo/hjqn47+etugkp3zUIRZIDmvJufzwWuIjRngBZ9Ioj3MVnT+LwInD 00GfqmfHMDVqe+sBNq+qIIOitbQHsYgSFrr+a0d0K7bux8MtjU7bMn/zZ3Xs1g8coGs1 3lhWAhFJMYXbn9n3bxB9F0gKcFDSJVxET5Uq4= 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; bh=TWO0GI5Qx7Qg57WcTz+VSLuBw/gWh265wHaIiSpADSI=; b=kghWAbAoxoWbMlQrM9qARBrkj6xTitMtcttW7rBPwWOz67XVPA3bP6JYlC7joFAp3W rB4hvYqHAHAjK3xd+ayVwyydTvbb2vXwH+dzaNAHeHDBxG2Uhbrioie4CRmhNRMrEZJe thOwaY7M3lrqRjIsmYlxp/ThIje2E/KMgKXcZR0fIJB3WRB8zzhTvHYTNwkNEe8XUV/y qfFsUWcyr8lSy1KTSLYSsXLtykTti8AAudvWhYomB33OUaUR3gkwArEH2P8JMzglRMl/ kTYKPnnZjGaAemZKQLtooE0r5zpCmb7IB9L5unAw31ccEoyqLonNkApt7gpHVac30ZQs yt3A== X-Gm-Message-State: AA+aEWYbEQLfMdles3UsJHZMSibskoNPFG+nq/TSdR2vEX0rw7+cAK1T sPCV21KLEJb5NJGDeRUDAdm6ig== X-Received: by 2002:a62:670f:: with SMTP id b15mr15041514pfc.212.1545102569179; Mon, 17 Dec 2018 19:09:29 -0800 (PST) Received: from localhost.localdomain (61-216-91-114.HINET-IP.hinet.net. [61.216.91.114]) by smtp.gmail.com with ESMTPSA id b2sm26213022pfm.3.2018.12.17.19.09.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 17 Dec 2018 19:09:27 -0800 (PST) From: Shawn Guo To: Tom Rini Date: Tue, 18 Dec 2018 11:08:18 +0800 Message-Id: <20181218030818.10272-1-shawn.guo@linaro.org> X-Mailer: git-send-email 2.18.0 Cc: Alex Elder , u-boot@lists.denx.de Subject: [U-Boot] [PATCH] poplar: save environment at a different offset 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" From: Alex Elder Change CONFIG_ENV_OFFSET for Poplar to be 1MB further into the eMMC than before. This puts it immediately prior to the space we are reserving offset 0x200000-0x400000 for UEFI to save its persistent data. Define CONFIG_ENV_SIZE as a product of env_mmc_nblks and the sector size, like CONFIG_ENV_OFFSET is. Signed-off-by: Alex Elder Signed-off-by: Shawn Guo --- include/configs/poplar.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/configs/poplar.h b/include/configs/poplar.h index 0a126002d7f9..6b93b76ab9ba 100644 --- a/include/configs/poplar.h +++ b/include/configs/poplar.h @@ -44,7 +44,7 @@ #define CONFIG_EXTRA_ENV_SETTINGS \ "loader_mmc_blknum=0x0\0" \ "loader_mmc_nblks=0x780\0" \ - "env_mmc_blknum=0x780\0" \ + "env_mmc_blknum=0xf80\0" \ "env_mmc_nblks=0x80\0" \ "kernel_addr_r=0x30000000\0" \ "pxefile_addr_r=0x32000000\0" \ @@ -57,8 +57,8 @@ /* Command line configuration */ #define CONFIG_SYS_MMC_ENV_DEV 0 -#define CONFIG_ENV_OFFSET (0x780 * 512) /* env_mmc_blknum */ -#define CONFIG_ENV_SIZE 0x10000 /* env_mmc_nblks bytes */ +#define CONFIG_ENV_OFFSET (0xf80 * 512) /* env_mmc_blknum bytes */ +#define CONFIG_ENV_SIZE (0x80 * 512) /* env_mmc_nblks bytes */ /* Monitor Command Prompt */ #define CONFIG_SYS_CBSIZE 512