[U-Boot-Users] 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@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

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
participants (2)
-
Robert McCullough
-
Wolfgang Denk