[U-Boot-Users] Using 'ver' env var
Ulf Samuelsson
ulf at atmel.com
Tue Aug 14 16:40:31 CEST 2007
tis 2007-08-14 klockan 15:39 +0200 skrev Wolfgang Denk:
> In message <007401c7de59$7124a0f0$dcc4af0a at atmel.com> you wrote:
> >
> >
> > This requires that the user can write the current version to "ver"
> > from a command.
> This will not work. No matter what the user sets "ver" to, it ill be
> overwritten when U-Boot boots.
>
If such a command exist, You can read the version from
your bootcmd, and send it as a parameter.
Yet another alternative:
A command "sync_version"
1) checks if "ver" and 'version' are identical
2) sets "ver" to version, if not the same.
3) saves the environment
With this, the user can select if/when to sync
Ideally this should be in a script "reboot_cmd" which
gets executed at every reboot before anything else
is executed.
Is there such a facility?
> Best regards,
>
> Wolfgang Denk
>
More information about the U-Boot
mailing list