From: Andreas Schweigstill <andreas@schweigstill.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] U-Boot version string in kernel/userspace
Date: Tue, 22 Jan 2008 12:53:59 +0100 [thread overview]
Message-ID: <4795D957.1070305@schweigstill.de> (raw)
In-Reply-To: <4794C6A6.8000401@ge.com>
Hello!
Gregoire Banderet schrieb:
> 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?
fw_getenv works fine for userspace programs. But I find it quite usefull
to forward U-Boot configuration parameters to Linux kernel space via
ATAGs, especially regarding different hardware versions and vice versa.
Accessing the data which has been provided by ATAGs can be very fast
because the ATAG data can be copied to global structures which can be
accessed by the kernel and also be kernel modules. Typical applications
are information about slightly different hardware versions, like GPIO
mapping or polarity.
With best regards
Andreas
--
Dipl.-Phys. Andreas Schweigstill
Schweigstill IT | Embedded Systems
Schauenburgerstra?e 116, D-24118 Kiel, Germany
Phone: (+49) 431 5606-435, Fax: (+49) 431 5606-436
Mobile: (+49) 171 6921973, Web: http://www.schweigstill.de/
next prev parent reply other threads:[~2008-01-22 11:53 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
2008-01-21 22:14 ` Ben Warren
2008-01-22 11:53 ` Andreas Schweigstill [this message]
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=4795D957.1070305@schweigstill.de \
--to=andreas@schweigstill.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