How to get the U-boot version string from with Linux?
Hi,
Is there a way to get the U-boot version string from with Linux? Can the version string be passed or stored so that an application running under Linux can read it?
Best regards,
Robert McCullough
------------------------------
Software Engineer
Promess Incorporated
11429 E. Grand River
Brighton, MI. 48116
Phone: 810-229-9334 Fax: 810-229-8125 Email: rob at promessdev.com URL: www.promessinc.com <http://www.promessinc.com/>
"Get your facts first and then you can distort them as much as you
wish." --- Mark Twain
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20050510/8e290106/attachment.htm
Dear Robert,
nice to meet you again here on the mailing list!
Quoted 2 lines · In message <[email protected]> you wrote:
Is there a way to get the U-boot version string from with Linux?
Yes.
Quoted 2 lines
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
Signature · 4 lines
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.