[U-Boot-Users] How to get the U-boot version string from with Linux?
Wolfgang Denk
wd at denx.de
Wed May 11 00:11:38 CEST 2005
Dear Robert,
nice to meet you again here on the mailing list!
In message <E1DVbQ7-0003Yf-9J at sc8-sf-mx2.sourceforge.net> you wrote:
>
> Is there a way to get the U-boot version string from with Linux?
Yes.
> Can the version string be passed or stored so that an application running
> under Linux can read it?
Yes. Enable the CONFIG_VERSION_VARIABLE option in your baord config
file (include/configs/atc.h); then there will find an environment
variable "ver" holding the version string. Make sure to run "saveenv"
in U-Boot at least once so that this automatic variable gets stored
in flash, too.
Under Linux, you can then use the code from tools/env/ to access the
U-Boot envrionment and read that variable.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The Wright Bothers weren't the first to fly. They were just the first
not to crash.
More information about the U-Boot
mailing list