From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] extracting u-boot version from Linux
Date: Fri, 19 Feb 2010 09:50:43 +0100 [thread overview]
Message-ID: <20100219085043.2665DE75F36@gemini.denx.de> (raw)
In-Reply-To: <821B2170E9E7F04FA38DF7EC21DE487119EF645A@VCAEXCH01.hq.corp.viasat.com>
Dear "Parks, Derek",
In message <821B2170E9E7F04FA38DF7EC21DE487119EF645A@VCAEXCH01.hq.corp.viasat.com> you wrote:
>
> I have an c++ application that needs to display various versions of
> system components; u-boot, kernel, O/S flavor, hardware and software
> versions. I'm struggling with getting the u-boot version and ask for
> your help. My ideal situation is to have U-boot report (somehow) to
> Linux it's version number and have Linux store it in environment
> variables. Any thoughts?
When CONFIG_VERSION_VARIABLE is set in your board config file, then
U-Boot will set the "ver" envrionment variable to the current version
ID string. If you run "saveenv" at least once, then you can read this
string from the U-Boot environment under Linux, using the fw_getenv
tool / function provided in tools/env/ .
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Everyting looks interesting until you do it. Then you find it's just
another job. - Terry Pratchett, _Moving Pictures_
next prev parent reply other threads:[~2010-02-19 8:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-18 23:47 [U-Boot] extracting u-boot version from Linux Parks, Derek
2010-02-19 8:50 ` Wolfgang Denk [this message]
2010-02-19 20:23 ` Michael Zaidman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100219085043.2665DE75F36@gemini.denx.de \
--to=wd@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox