public inbox for ecos-devel@sourceware.org
 help / color / mirror / Atom feed
From: "H Hartley Sweeten" <hartleys@visionengravers.com>
To: "Eric Bresie" <ebresie@gmail.com>, 	<ecos-devel@ecos.sourceware.org>
Subject: RE: Querying Loader from Kernel
Date: Wed, 01 Jul 2009 16:55:00 -0000	[thread overview]
Message-ID: <BD79186B4FD85F4B8E60E381CAEE190901A137DF@mi8nycmail19.Mi8.com> (raw)
In-Reply-To: <113b56700906291200n4e3ca671s63462d29b31e5821@mail.gmail.com>

On Monday, June 29, 2009 12:00 PM, Eric Bresie wrote:
> Is it possible to query info from the loader (Redboot) from the
> loaded kernel?
>
> I'd like to have Redboot version indicated in syslog or something
> to confirm version details at both loader and kernel level.
>
> With dmesg I see some indication of the mtd partitions but nothing
> else beyond that.
>
> Any ideas?

I'm not sure you can query the info from the kernel but maybe from
userspace.

You can use the fconfig utility to parse the mtd partition that
contains your Redboot config.  Create an alias in Redboot that has
the version information you need.  For example I set a serial number
on each of my boards as:

alias/SNUM: 0x27260017

Then use fconfig to read it:

/ #fconfig -r -d /dev/mtd3 -n alias/SNUM
0x27260017
/ #

Regards,
Hartley

  reply	other threads:[~2009-07-01 16:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-29 19:00 Eric Bresie
2009-07-01 16:55 ` H Hartley Sweeten [this message]
2009-07-01 17:06   ` Gary Thomas
2009-07-01 17:17     ` H Hartley Sweeten

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=BD79186B4FD85F4B8E60E381CAEE190901A137DF@mi8nycmail19.Mi8.com \
    --to=hartleys@visionengravers.com \
    --cc=ebresie@gmail.com \
    --cc=ecos-devel@ecos.sourceware.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).