[PATCH v2] env: mmc: Add support for redundant env in both eMMC boot partitions
Marek Vasut
marex at denx.de
Mon Oct 18 13:47:12 CEST 2021
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/
More information about the U-Boot
mailing list