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

Wolfgang Denk wd at denx.de
Mon Aug 13 22:05:06 CEST 2007


In message <5CBE65F7D9232C47861CB09B0954861C66A911 at 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




More information about the U-Boot mailing list