public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] Using 'ver' env var
@ 2007-08-13 19:55 Zach Sadecki
  2007-08-13 20:05 ` Wolfgang Denk
  0 siblings, 1 reply; 19+ messages in thread
From: Zach Sadecki @ 2007-08-13 19:55 UTC (permalink / raw)
  To: u-boot

I would like to be able to identify the u-boot version from linux.  At
first this seemed straight-forward, simply enable
CONFIG_VERSION_VARIABLE and use fw_printenv in linux.

This, of course, doesn't work, as 'ver' is not saveenv'ed and
fw_printenv just pulls the info from flash (or whereever).  Writing a
routine in the board init file (last_stage_init) doesn't help, as 'ver'
is set after that is run and therefore the stored version string is the
old one (if an update occurs).

So this is a 2 part question...  What good is the 'ver' env var?  It's
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?

Thanks,
  Zach

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2007-08-14 19:12 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-13 19:55 [U-Boot-Users] Using 'ver' env var Zach Sadecki
2007-08-13 20:05 ` Wolfgang Denk
2007-08-13 20:26   ` Zach Sadecki
2007-08-13 20:45     ` Wolfgang Denk
2007-08-13 21:41     ` Ulf Samuelsson
2007-08-13 21:25       ` Zach Sadecki
2007-08-13 22:07         ` [U-Boot-Users] PATCH: save 'ver' env var on update Zach Sadecki
2007-08-14  0:10           ` Zach Sadecki
2007-08-14  0:18             ` Wolfgang Denk
2007-08-14  0:13           ` Wolfgang Denk
2007-08-14  0:11         ` [U-Boot-Users] Using 'ver' env var Wolfgang Denk
2007-08-14  5:02           ` Ulf Samuelsson
2007-08-14 13:39             ` Wolfgang Denk
2007-08-14 14:40               ` Ulf Samuelsson
2007-08-14 15:23                 ` Wolfgang Denk
2007-08-14 18:18                   ` Ulf Samuelsson
2007-08-14 18:55                     ` Rune Torgersen
2007-08-14 19:03                     ` Wolfgang Denk
2007-08-14 19:12                       ` Zach Sadecki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox