U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: Jaehoon Chung <jh80.chung@samsung.com>, u-boot@lists.denx.de
Cc: Fabio Estevam <festevam@gmail.com>, Peng Fan <peng.fan@nxp.com>,
	Stefano Babic <sbabic@denx.de>
Subject: Re: [PATCH v2] env: mmc: Add support for redundant env in both eMMC boot partitions
Date: Mon, 18 Oct 2021 13:47:12 +0200	[thread overview]
Message-ID: <89eb4efe-f184-9798-a242-63a56cd3cfda@denx.de> (raw)
In-Reply-To: <359049b1-b526-3907-d28e-1e3877338ae2@samsung.com>

On 10/18/21 4:02 AM, Jaehoon Chung wrote:
> Hi Marek,

Hi,

> On 10/18/21 2:23 AM, Marek Vasut wrote:
>> Currently the MMC environment driver supports storing redundant environment
>> only in one eMMC partition at different offsets. This is sub-optimal, since
>> if this one boot partition is erased, both copies of environment are lost.
>> Since the eMMC has two boot partitions, add support for storing one copy of
>> environment in each of the two boot partitions.
>>
>> To enable this functionality, select CONFIG_SYS_REDUNDAND_ENVIRONMENT to
>> indicate redundant environment should be used. Set CONFIG_SYS_MMC_ENV_PART
>> to 1 to indicate environment should be stored in eMMC boot partition. Set
>> CONFIG_ENV_OFFSET equal to CONFIG_ENV_OFFSET_REDUND, and both to the offset
>> from start of eMMC boot partition where the environment should be located.
> 
> Is there any patch before apply this? When I had been trying to test this, I can't apply this from patchwork.

Uh, pick this one fix, I missed it in this v2 resend:
https://patchwork.ozlabs.org/project/uboot/patch/20211006162954.63596-1-marex@denx.de/

  reply	other threads:[~2021-10-18 12:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20211017172349epcas1p28338a2f2ab71f10a96dcf31b9be73fd3@epcas1p2.samsung.com>
2021-10-17 17:23 ` [PATCH v2] env: mmc: Add support for redundant env in both eMMC boot partitions Marek Vasut
2021-10-18  2:02   ` Jaehoon Chung
2021-10-18 11:47     ` Marek Vasut [this message]
2021-10-26 13:34   ` Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=89eb4efe-f184-9798-a242-63a56cd3cfda@denx.de \
    --to=marex@denx.de \
    --cc=festevam@gmail.com \
    --cc=jh80.chung@samsung.com \
    --cc=peng.fan@nxp.com \
    --cc=sbabic@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox