From: "Kumar, Udit" <u-kumar1@ti.com>
To: Tom Rini <trini@konsulko.com>
Cc: Anurag Dutta <a-dutta@ti.com>, <afd@ti.com>,
<u-boot@lists.denx.de>, <a-chavda@ti.com>, <nm@ti.com>,
<u-kumar1@ti.com>
Subject: Re: [PATCH 0/2] Remove "saveenv" functionality from am57xx evms
Date: Wed, 19 Feb 2025 10:33:26 +0530 [thread overview]
Message-ID: <14701984-073f-4976-b0c2-e2c42dadadd8@ti.com> (raw)
In-Reply-To: <20250210144311.GE1233568@bill-the-cat>
On 2/10/2025 8:13 PM, Tom Rini wrote:
> On Mon, Feb 10, 2025 at 09:55:22AM +0530, Kumar, Udit wrote:
>> Hi Tom
>>
>> On 2/9/2025 10:50 PM, Tom Rini wrote:
>>> On Sat, Feb 08, 2025 at 10:09:36AM +0530, Anurag Dutta wrote:
>>>
>>>> Previously saved environment introduce discrepancies and may lead to
>>>> incompatibilities without default settings. This series removes the saved
>>>> environment functionality on am57xx evms so that the default configuration
>>>> is always loaded
>>>>
>>>> Test result: https://gist.github.com/anuragdutta731/b253ddb0a5538ab6588a3535d7bbecf7
>>>>
>>>> Anurag Dutta (2):
>>>> configs: am57xx_hs: Remove saved environments
>>>> configs: am57xx: Remove saved environments
>>>>
>>>> configs/am57xx_evm_defconfig | 4 +---
>>>> configs/am57xx_hs_evm_defconfig | 4 +---
>>>> 2 files changed, 2 insertions(+), 6 deletions(-)
>>> I'm not sure what this is intended to solve. A persistent environment
>>> can be reset to the defaults with "env default -f -a" and telling users
>>> to do this when needed when upgrading is a long standing practice.
>> There are few inconsistencies in development flow with saved env.
>>
>> There we revert already for k3 platforms. Please see
>>
>> https://github.com/u-boot/u-boot/commit/a5e8678e0a32f85ad012aea7641e9534ada5c0fe
> I did miss that one at the time, yeah. I do think this is the wrong
> direction because custom designs tend to copy the ref platform and
> making each of them pick the right long term likely to not be
> overwritten location seems like more work than reminding developers to
> run "env default -f -a" when modifying the environment, or even just
> locally switching to ENV_IS_NOWHERE. I'm not nak'ing it but I would
> encourage everyone to re-think all of the use cases here and make sure
> that yes, really, this is the best option.
Likewise, I don't have strong opinion for either.
But I am slightly inclined towards ENV_IS_NOWHERE
How i see two environments development and production.
In development environment, boot should work out of box,
There are few non u-boot developer, using u-boot in their work flows,
they should know to run "env default -f -a" command when they do u-boot
update.
In production environment, u-boot is customized most of times, so env
option could be enabled at part of customization
PF, I see around 48 configs are on ENV_IS_NOWHERE
Thanks
>
next prev parent reply other threads:[~2025-02-19 5:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-08 4:39 [PATCH 0/2] Remove "saveenv" functionality from am57xx evms Anurag Dutta
2025-02-08 4:39 ` [PATCH 1/2] configs: am57xx_hs: Remove saved environments Anurag Dutta
2025-02-08 4:39 ` [PATCH 2/2] configs: am57xx: " Anurag Dutta
2025-02-09 17:20 ` [PATCH 0/2] Remove "saveenv" functionality from am57xx evms Tom Rini
2025-02-10 4:25 ` Kumar, Udit
2025-02-10 14:43 ` Tom Rini
2025-02-19 5:03 ` Kumar, Udit [this message]
2025-02-25 17:59 ` 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=14701984-073f-4976-b0c2-e2c42dadadd8@ti.com \
--to=u-kumar1@ti.com \
--cc=a-chavda@ti.com \
--cc=a-dutta@ti.com \
--cc=afd@ti.com \
--cc=nm@ti.com \
--cc=trini@konsulko.com \
--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