Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MIME_HTML_ONLY,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 64ED6C48BC2 for ; Wed, 23 Jun 2021 20:06:02 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C15AB60232 for ; Wed, 23 Jun 2021 20:06:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C15AB60232 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.ibm.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4G9Dm91XHZz306b for ; Thu, 24 Jun 2021 06:06:01 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=KUGUrCSP; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=linux.ibm.com (client-ip=148.163.156.1; helo=mx0a-001b2d01.pphosted.com; envelope-from=anoo@linux.ibm.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=KUGUrCSP; dkim-atps=neutral Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4G9Dlh0dmTz2yhr for ; Thu, 24 Jun 2021 06:05:35 +1000 (AEST) Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 15NK3XkR151985; Wed, 23 Jun 2021 16:05:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=subject : mime-version : content-type : from : in-reply-to : date : cc : content-transfer-encoding : message-id : references : to; s=pp1; bh=G6W3krsqcu0bQCcADDgWY0kLkhRtGgNfVTTIKY0S24Y=; b=KUGUrCSPzUBcX/ClbTf5TTDJ8tyBDAD1Zj2gqCOx2dLgtEUR3HShn3dKfyBki6fskIUL ekyaDmQgt/IYTrP8FTsY0quwUixl3YrofVDGLfW9GOJfbsX5cUR5IrfmQcQhHPvWykCE WqNozoZT5a+Z9HmjZ31ea6zzRMbuXiVV3CftuLMDFCo9VH0jVCZupVzXb2Cr+kHilzX0 qgNe5BUgnJE8uA9XrIhPoYYf91ca78thl6Y4cUY/oE2uoH5pDmwjC8N8p/Wv512HL/ck dmjqjIVWm7moD1kX7EwmeLAuyevWFVmDdhy3OGAC8Oztd1SHpXW5rvFEUaps3GBqXmJ7 gQ== Received: from ppma01wdc.us.ibm.com (fd.55.37a9.ip4.static.sl-reverse.com [169.55.85.253]) by mx0a-001b2d01.pphosted.com with ESMTP id 39cb4kgyau-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 23 Jun 2021 16:05:31 -0400 Received: from pps.filterd (ppma01wdc.us.ibm.com [127.0.0.1]) by ppma01wdc.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 15NK22RH003627; Wed, 23 Jun 2021 20:05:30 GMT Received: from b01cxnp22033.gho.pok.ibm.com (b01cxnp22033.gho.pok.ibm.com [9.57.198.23]) by ppma01wdc.us.ibm.com with ESMTP id 3998793549-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 23 Jun 2021 20:05:30 +0000 Received: from b01ledav001.gho.pok.ibm.com (b01ledav001.gho.pok.ibm.com [9.57.199.106]) by b01cxnp22033.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 15NK5Uua20054418 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 23 Jun 2021 20:05:30 GMT Received: from b01ledav001.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0203628060; Wed, 23 Jun 2021 20:05:30 +0000 (GMT) Received: from b01ledav001.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8C2C228058; Wed, 23 Jun 2021 20:05:29 +0000 (GMT) Received: from smtpclient.apple (unknown [9.65.249.20]) by b01ledav001.gho.pok.ibm.com (Postfix) with ESMTPS; Wed, 23 Jun 2021 20:05:29 +0000 (GMT) Subject: Re: [PATCH u-boot v2019.04-aspeed-openbmc] configs: aspeed-common: Add redundant env for mmc Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.100.0.2.22\)) Content-Type: text/html; charset=us-ascii X-Apple-Auto-Saved: 1 X-Apple-Mail-Remote-Attachments: YES From: Adriana Kobylak X-Apple-Base-Url: x-msg://5/ In-Reply-To: X-Apple-Windows-Friendly: 1 Date: Wed, 23 Jun 2021 15:05:14 -0500 X-Apple-Mail-Signature: SKIP_SIGNATURE Content-Transfer-Encoding: quoted-printable Message-Id: References: <20210618151436.2266046-1-anoo@linux.ibm.com> X-Uniform-Type-Identifier: com.apple.mail-draft To: Joel Stanley X-Mailer: Apple Mail (2.3654.100.0.2.22) X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: eaJ1XjVlMk7fqqfGevOFGNht8HUcoQkJ X-Proofpoint-GUID: eaJ1XjVlMk7fqqfGevOFGNht8HUcoQkJ X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-06-23_12:2021-06-23, 2021-06-23 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 adultscore=0 impostorscore=0 mlxscore=0 mlxlogscore=999 priorityscore=1501 bulkscore=0 phishscore=0 clxscore=1015 spamscore=0 suspectscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104190000 definitions=main-2106230117 X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: OpenBMC Maillist , Adriana Kobylak , Eddie James Errors-To: openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Sender: "openbmc"

On Jun = 22, 2021, at 7:55 AM, Joel Stanley <joel@jms.id.au> wrote:

On Fri, 18 Jun 2021 at 15:14, Adriana Kobylak <anoo@linux.ibm.com> wrote:

From: Adriana Kobylak = <anoo@us.ibm.com>

If the = env is in MMC, specify the location of the redundant environment.
Per the ast2600_openbmc_spl_emmc_defconfig, the environment = is located
at byte offset 0x5000 in the user data = partition, and is sized at
0x10000. The redundant = environment follows it immediately and is the
same = size.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Signed-off-by: = Adriana Kobylak <anoo@us.ibm.com>
---
include/configs/aspeed-common.h | 1 +
1 file = changed, 1 insertion(+)

diff --git = a/include/configs/aspeed-common.h b/include/configs/aspeed-common.h
index 8f404570b1..59449d36d0 100644
--- = a/include/configs/aspeed-common.h
+++ = b/include/configs/aspeed-common.h
@@ -83,6 +83,7 @@
#ifdef CONFIG_ENV_IS_IN_MMC
#define = CONFIG_SYS_MMC_ENV_DEV =         0
#define = CONFIG_SYS_MMC_ENV_PART =             &n= bsp;  0
+#define CONFIG_ENV_OFFSET_REDUND =       0x15000
Would it make more sense to write it like this:

#define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + = CONFIG_ENV_SIZE)

Yeah good point. Just sent a v2 with that = change.



#endif

#endif /* __ASPEED_COMMON_CONFIG_H */
--
2.25.1

=