[U-Boot-Users] Using 'ver' env var

Wolfgang Denk
2007-08-13T20:05:06Z

In message <5CBE65F7D9232C47861CB09B0954861C66A911@MAIL.infinitychannel.local> you wrote:
>
> This, of course, doesn't work, as 'ver' is not saveenv'ed and

What makes you think so? saveenv does not do any filtering to exclude
any variable, so of course it gets saved, too.

> So this is a 2 part question... What good is the 'ver' env var? It's

To print the U-Boot version without need to reset the board.

> apparently only useful in u-boot itself and u-boot already has a
> 'version' command that gives you the same info. And second, I'm sure
> I'm not the first person to want to see u-boot version in linux, so how
> have other accomplished this?

Just read the "ver" variable.

Best regards,

Wolfgang Denk

--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Es ist nicht genug zu wissen, man mu? auch anwenden; es ist nicht ge-
nug zu wollen, man mu? auch tun. -- Goethe, Maximen und Reflexionen