All of lore.kernel.org
 help / color / mirror / Atom feed
From: Quentin Schulz <quentin.schulz@cherry.de>
To: Mircea Carausu <mcarausu@gmail.com>, u-boot@lists.denx.de
Subject: Re: How to avoid the need to run 'env default' command on modified env variable
Date: Mon, 11 Aug 2025 18:00:04 +0200	[thread overview]
Message-ID: <112df3eb-96b0-47bd-8fdf-258e25bfb390@cherry.de> (raw)
In-Reply-To: <CAMFYzVwEtRBndhOaog8wStZeBTZvei_gdZ8=6xM2y1=SU5R1cg@mail.gmail.com>

Hi Mirceam

On 8/11/25 6:30 AM, Mircea Carausu wrote:
> [You don't often get email from mcarausu@gmail.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
> 
> Hi All,
> apologies in advance if my question is trivial:
> 
> I am changing some critical variables in the read-only / compiled-in
> section of u-boot env variables via CFG_EXTRA_ENV_SETTINGS in
> include/configs/<my_board.h>
> All I want is to have them take effect automatically (i.e. without having
> the need to stop in u-boot console and issue the env default command).
> I see the new values if I use the env default command.
> Since I am applying the new config via a RAUC bundle and some systems are
> using automated testing it is not practical to issue env default on each
> board.
> Is there a way of telling u-boot to load / use the read-only / built-in
> values instead of the ones stored in env storage?

Build U-Boot without external environment support?

E.g. with only ENV_IS_NOWHERE?

You can also entirely and permanently erase the stored environment with 
`env erase` if you have CONFIG_CMD_ERASEENV enabled.

If that's not fitting your use-case can you provide more information please?

Cheers,
Quentin

  reply	other threads:[~2025-08-11 16:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-11  4:30 How to avoid the need to run 'env default' command on modified env variable Mircea Carausu
2025-08-11 16:00 ` Quentin Schulz [this message]
2025-08-11 16:46   ` Mircea Carausu
2025-08-12 19:24     ` Rasmus Villemoes

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=112df3eb-96b0-47bd-8fdf-258e25bfb390@cherry.de \
    --to=quentin.schulz@cherry.de \
    --cc=mcarausu@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.