From: Wolfgang Denk Date: Wed, 11 May 2005 00:11:38 +0200 Subject: [U-Boot-Users] How to get the U-boot version string from with Linux? In-Reply-To: Your message of "Tue, 10 May 2005 15:29:21 EDT." Message-ID: <20050510221143.B4268C1512@atlas.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Robert, nice to meet you again here on the mailing list! In message 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.