[PATCH 04/16] arm: stm32mp: detect U-Boot version used to save environment

Patrick DELAUNAY patrick.delaunay at st.com
Tue Apr 7 16:37:46 CEST 2020


Hi Patrice

> From: Patrice CHOTARD <patrice.chotard at st.com>
> Sent: mercredi 1 avril 2020 09:34
> 
> Hi Patrick
> 
> On 3/31/20 6:04 PM, Patrick Delaunay wrote:
> > Imply CONFIG_VERSION_VARIABLE for stm32mp1 target and test U-Boot
> > version ($env_ver) when the environment was saved for the last time
> > and to display warning trace.
> >
> > Signed-off-by: Patrick Delaunay <patrick.delaunay at st.com>
> > ---

[....]

> > diff --git a/include/configs/stm32mp1.h b/include/configs/stm32mp1.h
> > index 42717c167e..ae060fbc4b 100644
> > --- a/include/configs/stm32mp1.h
> > +++ b/include/configs/stm32mp1.h
> > @@ -222,9 +222,14 @@
> >  	"splashimage=0xc4300000\0"  \
> >  	"ramdisk_addr_r=0xc4400000\0" \
> >  	"altbootcmd=run bootcmd\0" \
> > -	"env_default=1\0" \
> > -	"env_check=if test $env_default -eq 1;"\
> > -		" then env set env_default 0;env save;fi\0" \
> > +	"env_check=" \
> > +		"env exists env_ver || env set env_ver ${ver};" \
> > +		"if env info -p -d -q; then env save; fi;" \
> 
> Is option "-q" exist ? i can't find anything about it into source code
> 
> 

Introduced in 
[v3,1/7] cmd: env: add option for quiet output on env info

http://patchwork.ozlabs.org/patch/1236816/

I forget to indicate dependency.

PAtrick


More information about the U-Boot mailing list