Skip to content

arm: mvebu: Espressobin: Set default env values at runtime

Andre Heider u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 3 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 3 patches the cover letter announces are in this archive.

Reviews trailers per patch

PatchAndre Heider
SeriesA-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] arm: mvebu: Espressobin: Set default env values at runtime
Quoted 54 lines · Stefan Roese
Quoted 53 lines · Andre Heider
Quoted 51 lines · Stefan Roese

Hi Pali,
Hi Andre,

Quoted 40 lines · Pali Roh?r

Hello!

Quoted 18 lines · On Tuesday 12 January 2021 09:18:44 Andre Heider wrote:

Hi Pali,

Quoted 5 lines · Pali Roh?r

Hello Stefan and Andre!

Could you please look at this patch series and tell me what do you think
about it? If it is fine or needs to take different approach?

I like the idea very much, and I bet there're quite some boards which could
make good use of "immutable envvars".

The obvious review point is the filler thing and its dependency on DEFAULT_ENV_IS_RW, which probably won't win a beauty contest :) Maybe a
nicer integration would help in getting it merged?

Quoted 8 lines

I don't think it would take too much effort, first thing that comes to mind:
- board provides list of immutable vars
- env_set_default() backs up these vars
- env_set_default() imports default_environment
- env_set_default() imports backup on top

The last step should be easy, see env_set_default_vars().

This could probably work for $ethNaddr variables.

But there is still an issue how to handle $fdtfile. There is basically default value for this variable, but value itself cannot be determined at compile time, only at runtime. And for it variable flags do not help,
we just need an mechanism how to set default variable values not only at
compile time but also runtime.

Quoted 3 lines

That is why I chosen for now solution with modifying default_environment[] array as it solve issue for both $fdtfile and $ethNaddr variables.

So what is the outcome of this discussion? Andre, do you see any hindering points in this patch series, apart from it not winning a "beauty contest"? ;)

Quoted 5 lines
Quoted 2 lines

Hehe, nope, only aesthetic concerns, no hinderung points to block this going in.

I see. Then if appropriate, please send any matching tag(s) to these patches.

I didn't test it, so this set is at least:

Thanks,
Andre