<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/env, branch v2026.04-rc2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<entry>
<title>env: Add single to redundant environment upgrade path</title>
<updated>2026-01-07T18:31:26+00:00</updated>
<author>
<name>Marek Vasut</name>
<email>marek.vasut+renesas@mailbox.org</email>
</author>
<published>2025-12-23T14:31:11+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=1f131385810fddaeea23c5cf0269497d7e637534'/>
<id>1f131385810fddaeea23c5cf0269497d7e637534</id>
<content type='text'>
Add support for converting single-copy environment to redundant environment.
In case CRC checks on both redundant environment copies fail, try one more
CRC check on the primary environment copy and treat it as single environment.
If that check does pass, rewrite the single-copy environment into redundant
environment format, indicate the environment is valid, and import that as
usual primary copy of redundant environment. Follow up 'env save' will then
store two environment copies and the system will continue to operate as
regular redundant environment system.

Add test which validates this upgrade path. The test starts with spi.bin
which is pre-populated as single-copy environment and then upgrades that
environment to dual-copy environment.

Signed-off-by: Marek Vasut &lt;marek.vasut+renesas@mailbox.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add support for converting single-copy environment to redundant environment.
In case CRC checks on both redundant environment copies fail, try one more
CRC check on the primary environment copy and treat it as single environment.
If that check does pass, rewrite the single-copy environment into redundant
environment format, indicate the environment is valid, and import that as
usual primary copy of redundant environment. Follow up 'env save' will then
store two environment copies and the system will continue to operate as
regular redundant environment system.

Add test which validates this upgrade path. The test starts with spi.bin
which is pre-populated as single-copy environment and then upgrades that
environment to dual-copy environment.

Signed-off-by: Marek Vasut &lt;marek.vasut+renesas@mailbox.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>env: fat, ubi: Fix gd-&gt;env_valid for the first write</title>
<updated>2025-10-24T19:47:50+00:00</updated>
<author>
<name>Tom Rini</name>
<email>trini@konsulko.com</email>
</author>
<published>2025-10-21T20:37:01+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=cf262e16080abcd587f47d0bbc8fa84558abcf89'/>
<id>cf262e16080abcd587f47d0bbc8fa84558abcf89</id>
<content type='text'>
As resolved and explained in detail in commit e589d5822cac ("env: spi:
Fix gd-&gt;env_valid for the first write") and archived discussion there is
a corner case where we don't do the right thing with redundant
environments. This same exact check was present in the mmc code and
resolved with commit 813a0df27a8a ("env: Invert gd-&gt;env_valid for
env_mmc_save") and in the discussion of that patch, I noted that both
fat and ubi (and at the time, sf) were doing the same thing. Take the
time now to correct fat and ubi environment.

Signed-off-by: Tom Rini &lt;trini@konsulko.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As resolved and explained in detail in commit e589d5822cac ("env: spi:
Fix gd-&gt;env_valid for the first write") and archived discussion there is
a corner case where we don't do the right thing with redundant
environments. This same exact check was present in the mmc code and
resolved with commit 813a0df27a8a ("env: Invert gd-&gt;env_valid for
env_mmc_save") and in the discussion of that patch, I noted that both
fat and ubi (and at the time, sf) were doing the same thing. Take the
time now to correct fat and ubi environment.

Signed-off-by: Tom Rini &lt;trini@konsulko.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>env: Invert gd-&gt;env_valid for env_mmc_save</title>
<updated>2025-10-21T19:18:46+00:00</updated>
<author>
<name>Jasper Orschulko</name>
<email>jasper@fancydomain.eu</email>
</author>
<published>2024-05-10T11:38:34+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=813a0df27a8af587bd25a6a4719f68066b370091'/>
<id>813a0df27a8af587bd25a6a4719f68066b370091</id>
<content type='text'>
The A/B update strategy of the env's has a gap in the first 2 calls of saveenv.
The env's are stored twice on the first memory area if:
gd-&gt;env_valid == ENV_INVALID.

u-boot=&gt; saveenv
Saving Environment to MMC... Writing to MMC(1)... OK
u-boot=&gt; saveenv
Saving Environment to MMC... Writing to MMC(1)... OK  &lt;-- !!!
u-boot=&gt; saveenv
Saving Environment to MMC... Writing to redundant MMC(1)... OK
u-boot=&gt; saveenv
Saving Environment to MMC... Writing to MMC(1)... OK

This is the same issue as resolved in commit e589d5822cac ("env: spi:
Fix gd-&gt;env_valid for the first write")

Signed-off-by: Michael Glembotzki &lt;Michael.Glembotzki@iris-sensing.com&gt;
Signed-off-by: Jasper Orschulko &lt;jasper@fancydomain.eu&gt;
Signed-off-by: Michael Heimpold &lt;mhei@heimpold.de&gt;
[trini: Amend the commit message]
---
Changes in v2:
- Rebase to current master
- Amend the commit message to reference the SPI version of this fix,
  which had significant follow-up discussion.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The A/B update strategy of the env's has a gap in the first 2 calls of saveenv.
The env's are stored twice on the first memory area if:
gd-&gt;env_valid == ENV_INVALID.

u-boot=&gt; saveenv
Saving Environment to MMC... Writing to MMC(1)... OK
u-boot=&gt; saveenv
Saving Environment to MMC... Writing to MMC(1)... OK  &lt;-- !!!
u-boot=&gt; saveenv
Saving Environment to MMC... Writing to redundant MMC(1)... OK
u-boot=&gt; saveenv
Saving Environment to MMC... Writing to MMC(1)... OK

This is the same issue as resolved in commit e589d5822cac ("env: spi:
Fix gd-&gt;env_valid for the first write")

Signed-off-by: Michael Glembotzki &lt;Michael.Glembotzki@iris-sensing.com&gt;
Signed-off-by: Jasper Orschulko &lt;jasper@fancydomain.eu&gt;
Signed-off-by: Michael Heimpold &lt;mhei@heimpold.de&gt;
[trini: Amend the commit message]
---
Changes in v2:
- Rebase to current master
- Amend the commit message to reference the SPI version of this fix,
  which had significant follow-up discussion.
</pre>
</div>
</content>
</entry>
<entry>
<title>env: Kconfig: disable external env in secure os boot</title>
<updated>2025-10-16T21:02:14+00:00</updated>
<author>
<name>Anshul Dalal</name>
<email>anshuld@ti.com</email>
</author>
<published>2025-10-09T12:34:34+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=1e470ddd0743bbd1f229421e11e9ad2093f7fd20'/>
<id>1e470ddd0743bbd1f229421e11e9ad2093f7fd20</id>
<content type='text'>
Falcon mode uses falcon_image_file from the env during mmc fs boot, but
external env can be compromised. Therefore disable access to external
env by setting SPL_ENV_IS_NOWHERE when SPL_OS_BOOT_SECURE is set.

Signed-off-by: Anshul Dalal &lt;anshuld@ti.com&gt;
Reviewed-by: Tom Rini &lt;trini@konsulko.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Falcon mode uses falcon_image_file from the env during mmc fs boot, but
external env can be compromised. Therefore disable access to external
env by setting SPL_ENV_IS_NOWHERE when SPL_OS_BOOT_SECURE is set.

Signed-off-by: Anshul Dalal &lt;anshuld@ti.com&gt;
Reviewed-by: Tom Rini &lt;trini@konsulko.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'next'</title>
<updated>2025-10-06T19:20:24+00:00</updated>
<author>
<name>Tom Rini</name>
<email>trini@konsulko.com</email>
</author>
<published>2025-10-06T19:20:24+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=0eaa4b337336dbbe93395d1f2ccc18937eaafea2'/>
<id>0eaa4b337336dbbe93395d1f2ccc18937eaafea2</id>
<content type='text'>
Merge the outstanding changes from the 'next' branch to master.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Merge the outstanding changes from the 'next' branch to master.
</pre>
</div>
</content>
</entry>
<entry>
<title>env: fix typo in multiple Kconfig descriptions</title>
<updated>2025-10-04T18:15:57+00:00</updated>
<author>
<name>Thomas Bonnefille</name>
<email>thomas.bonnefille@bootlin.com</email>
</author>
<published>2025-09-24T19:21:51+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=3bbaa9dca65f7133ed54102126861ff4037d88cd'/>
<id>3bbaa9dca65f7133ed54102126861ff4037d88cd</id>
<content type='text'>
%s/environemt/environment

Signed-off-by: Thomas Bonnefille &lt;thomas.bonnefille@bootlin.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
%s/environemt/environment

Signed-off-by: Thomas Bonnefille &lt;thomas.bonnefille@bootlin.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>env: spi: Fix gd-&gt;env_valid for the first write</title>
<updated>2025-10-02T17:32:34+00:00</updated>
<author>
<name>Michal Simek</name>
<email>michal.simek@amd.com</email>
</author>
<published>2025-09-22T16:03:39+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=e589d5822cac10915ec04e8d9044d2460aec8924'/>
<id>e589d5822cac10915ec04e8d9044d2460aec8924</id>
<content type='text'>
When both SPI environment locations are invalid (gd-&gt;env_valid ==
ENV_INVALID), the first call to saveenv writes to the primary location and
sets the active flag. However, the logic for updating gd-&gt;env_valid
incorrectly sets it to ENV_REDUND, which does not match the actual location
written. This causes the first two writes to target the same location, and
alternation only begins after the second write.

Update the logic to alternate gd-&gt;env_valid based on whether the last write
was to the primary or redundant location, ensuring the first write sets
ENV_VALID and subsequent writes alternate as expected. This aligns
env_valid with the actual storage location and fixes the alternation
sequence from the first write.

With this change, the "Valid environment" printout correctly reflects the
active location after each save, and the alternation between primary and
redundant locations works as intended from the start.

Signed-off-by: Michal Simek &lt;michal.simek@amd.com&gt;
Reviewed-by: Marek Vasut &lt;marek.vasut@mailbox.org&gt;
Acked-by: E Shattow &lt;e@freeshell.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When both SPI environment locations are invalid (gd-&gt;env_valid ==
ENV_INVALID), the first call to saveenv writes to the primary location and
sets the active flag. However, the logic for updating gd-&gt;env_valid
incorrectly sets it to ENV_REDUND, which does not match the actual location
written. This causes the first two writes to target the same location, and
alternation only begins after the second write.

Update the logic to alternate gd-&gt;env_valid based on whether the last write
was to the primary or redundant location, ensuring the first write sets
ENV_VALID and subsequent writes alternate as expected. This aligns
env_valid with the actual storage location and fixes the alternation
sequence from the first write.

With this change, the "Valid environment" printout correctly reflects the
active location after each save, and the alternation between primary and
redundant locations works as intended from the start.

Signed-off-by: Michal Simek &lt;michal.simek@amd.com&gt;
Reviewed-by: Marek Vasut &lt;marek.vasut@mailbox.org&gt;
Acked-by: E Shattow &lt;e@freeshell.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge tag 'v2025.10-rc5' into next</title>
<updated>2025-09-23T14:24:59+00:00</updated>
<author>
<name>Tom Rini</name>
<email>trini@konsulko.com</email>
</author>
<published>2025-09-23T14:24:59+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=b82a1fa7ddc7f3be2f3b75898d5dc44c34420bdd'/>
<id>b82a1fa7ddc7f3be2f3b75898d5dc44c34420bdd</id>
<content type='text'>
Prepare v2025.10-rc5
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Prepare v2025.10-rc5
</pre>
</div>
</content>
</entry>
<entry>
<title>env: fix config dependency for ENV_OFFSET_REDUND_RELATIVE_END</title>
<updated>2025-09-11T15:59:47+00:00</updated>
<author>
<name>Heiko Thiery</name>
<email>heiko.thiery@gmail.com</email>
</author>
<published>2025-09-11T09:32:24+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=fd7510e516b519864680c4a56bc14dabdc91607f'/>
<id>fd7510e516b519864680c4a56bc14dabdc91607f</id>
<content type='text'>
Since commit 5fb88fa725 "env: Rename SYS_REDUNDAND_ENVIRONMENT to ENV_REDUNDANT"
the option SYS_REDUNDAND_ENVIRONMENT is no longer available and should be
renamed to ENV_REDUNDANT.

Fixes: 95f03ee65c0e ("env: mmc: fix offsets relative to the end of the partition")
Signed-off-by: Heiko Thiery &lt;heiko.thiery@gmail.com&gt;
Reviewed-by: Marek Vasut &lt;marek.vasut+renesas@mailbox.org&gt;
Reviewed-by: Tom Rini &lt;trini@konsulko.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since commit 5fb88fa725 "env: Rename SYS_REDUNDAND_ENVIRONMENT to ENV_REDUNDANT"
the option SYS_REDUNDAND_ENVIRONMENT is no longer available and should be
renamed to ENV_REDUNDANT.

Fixes: 95f03ee65c0e ("env: mmc: fix offsets relative to the end of the partition")
Signed-off-by: Heiko Thiery &lt;heiko.thiery@gmail.com&gt;
Reviewed-by: Marek Vasut &lt;marek.vasut+renesas@mailbox.org&gt;
Reviewed-by: Tom Rini &lt;trini@konsulko.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge tag 'v2025.10-rc3' into next</title>
<updated>2025-08-25T19:28:49+00:00</updated>
<author>
<name>Tom Rini</name>
<email>trini@konsulko.com</email>
</author>
<published>2025-08-25T19:28:49+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=fceb37d802b65beb4713f17e9167e7ecc4dbbe67'/>
<id>fceb37d802b65beb4713f17e9167e7ecc4dbbe67</id>
<content type='text'>
Prepare v2025.10-rc3
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Prepare v2025.10-rc3
</pre>
</div>
</content>
</entry>
</feed>
