
11 May
2005
11 May
'05
12:11 a.m.
Dear Robert,
nice to meet you again here on the mailing list!
In message E1DVbQ7-0003Yf-9J@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@denx.de
The Wright Bothers weren't the first to fly. They were just the first
not to crash.