public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] U-Boot version string in kernel/userspace
Date: Tue, 22 Jan 2008 07:44:30 +0100	[thread overview]
Message-ID: <20080122064430.817562430C@gemini.denx.de> (raw)
In-Reply-To: Your message of "Mon, 21 Jan 2008 15:59:00 CST." <479515A4.3080103@freescale.com>

In message <479515A4.3080103@freescale.com> you wrote:
>
> > Waht's the best way to get the U-Boot version string (the one returned 
> > by U-Boot cmd "version") from userspace?
> > Arg passed to the kernel?
> > U-Boot env variables and use fw_getenv?
> 
> U-Boot disappears when the kernel loads, so the only cross-platform option is to 
> pass a command-line parameter to the kernel.  Such a change would probably not 
> be accepted into the mainline, however.

First, reading the kernel command line can be done in user space - no
need to change the kernel to do that.

Second, using the  command  line  is  not  the  only  way  to  access
envrionment  data.  Assuming  the  environment is stored in flash (or
similar), you can of course read (and write) it from Linux, too.

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
...when fits of creativity run strong, more than  one  programmer  or
writer  has  been  known to abandon the desktop for the more spacious
floor.                                             - Fred Brooks, Jr.

  reply	other threads:[~2008-01-22  6:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-21 16:21 [U-Boot-Users] U-Boot version string in kernel/userspace Gregoire Banderet
2008-01-21 21:59 ` Timur Tabi
2008-01-22  6:44   ` Wolfgang Denk [this message]
2008-01-21 22:14 ` Ben Warren
2008-01-22 11:53 ` Andreas Schweigstill
2008-01-22 13:47   ` Wolfgang Denk
2008-01-22 20:52     ` Robert Schwebel

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=20080122064430.817562430C@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