From: Detlev Zundel <dzu@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] u-boot version
Date: Tue, 19 May 2009 16:40:10 +0200 [thread overview]
Message-ID: <m2ljot5f79.fsf@ohwell.denx.de> (raw)
In-Reply-To: <OF32C48B7F.83862CEB-ON652575BB.00500EF2-652575BB.004FCDC1@lntemsys.com> (Deepak Gopalakrishnan's message of "Tue, 19 May 2009 20:11:38 +0530")
Hi Deepak,
> Sorry for not being clear the first time around. My objective is to write a
> program with which i will be able to access the u-boot version.
Form Linux that is I guess. If you have CONFIG_VERSION_VARIABLE defined
in your U-Boot configuration, then according to README (see,
documentation can help sometimes):
- U-Boot Version:
CONFIG_VERSION_VARIABLE
If this variable is defined, an environment variable
named "ver" is created by U-Boot showing the U-Boot
version as printed by the "version" command.
This variable is readonly.
This variable will also end up in the saved environment, (after at least
one saveenv), so you could use the "standard" fw_printenv tools in
tools/env/.
> Also i would like to add a new parameter to the bootstrap which would
> specify the bootstrap version.(which i want to according to changes i
> make to bootstrap)
You;d have to define what "a bootstrap" is for you.
> i assume that for this i will have to write a version string to the nand flash
> and then try to access it for the linux kernel....but thats just an idea...have
> no clue how to....
Well if "bootstrap" is e.g. a combination of a U-Boot version + a way to
boot Linux, you could simply pass an linux commandline option which is
not evaluated by the kernel itself, say "bootstrap=..". In Linux you
can use /proc/cmdline to read the command line and find your switch,
voila.
Cheers
Detlev
--
Q: Does that mean we also shouldn't be using IRQF_SAMPLE_RANDOM on
interrupt [sources]?
A: Yes. The flag needs to be taken out and shot.
-- Matt Mackall <1239116251.14392.133.camel@calx>
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de
next prev parent reply other threads:[~2009-05-19 14:40 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-15 18:32 [U-Boot-Users] Add a new command to U-Boot Carlos Filipe Silva
2005-11-15 18:55 ` Cliff Brake
2009-05-07 13:35 ` [U-Boot] " Deepak Gopalakrishnan
2009-05-07 13:40 ` Jerry Van Baren
2009-05-07 13:59 ` Deepak Gopalakrishnan
2009-05-07 15:21 ` Subodh Nijsure
2009-05-08 13:21 ` Deepak Gopalakrishnan
2009-05-08 13:20 ` Jerry Van Baren
2009-05-11 5:32 ` [U-Boot] Uboot reloaction scheme Deepak Gopalakrishnan
2009-05-11 8:16 ` [U-Boot] Add a new command to U-Boot Drasko DRASKOVIC
2009-05-11 14:12 ` [U-Boot] uboot relocate_code() function Deepak Gopalakrishnan
2009-05-11 14:19 ` Liu Dave-R63238
2009-05-11 15:52 ` Timur Tabi
2009-05-11 18:22 ` Scott Wood
2009-05-12 13:47 ` [U-Boot] start.s file Deepak Gopalakrishnan
2009-05-12 14:30 ` Detlev Zundel
2009-05-18 13:18 ` [U-Boot] u-boot version Deepak Gopalakrishnan
2009-05-18 13:16 ` Wolfgang Denk
2009-05-19 9:29 ` Deepak Gopalakrishnan
2009-05-19 14:14 ` Detlev Zundel
2009-05-19 14:41 ` Deepak Gopalakrishnan
2009-05-19 14:40 ` Detlev Zundel [this message]
2009-05-20 4:28 ` Deepak Gopalakrishnan
2009-05-19 11:17 ` [U-Boot] U-boot common/environment.c Deepak Gopalakrishnan
2009-05-19 14:34 ` Detlev Zundel
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=m2ljot5f79.fsf@ohwell.denx.de \
--to=dzu@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