From: "Markus Klotzbücher" <mk@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Reading out version_string from a binary
Date: Tue, 21 Nov 2006 15:11:57 +0100 [thread overview]
Message-ID: <877ixoubwy.fsf@denx.de> (raw)
In-Reply-To: <20061121130236.GC3803@igloo.df.lth.se> (Fredrik Roubert's message of "Tue, 21 Nov 2006 14:02:36 +0100")
Hi Frederik,
Fredrik Roubert <fredrik.roubert@barco.com> writes:
> I use U-Boot (1.1.4) on a custom PowerPC (MPC8347) based board, and from
> my application I need to read out the value of version_string from the
> U-Boot binary, for logging. I've written some code that does this (see
> attached sample program), but would like some comments if someone has
> suggestions on how to do it more robust.
...
> Does anyone have ideas about a better way to do this?
If it doesn't have to be in C you could do something like
$ strings < u-boot.bin | grep "U-Boot \([0-9]\.\)\{2\}[0-9]-"
VU-Boot 1.1.6-g13e2fe54 (Nov 21 2006 - 11:37:26)
Regards
Markus Klotzbuecher
next prev parent reply other threads:[~2006-11-21 14:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-21 13:02 [U-Boot-Users] Reading out version_string from a binary Fredrik Roubert
2006-11-21 14:11 ` Markus Klotzbücher [this message]
2006-11-21 14:47 ` Wolfgang Denk
2006-11-21 16:18 ` Fredrik Roubert
2006-11-21 17:58 ` Wolfgang Denk
2006-11-21 18:33 ` Jerry Van Baren
2006-11-22 4:10 ` Frank
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=877ixoubwy.fsf@denx.de \
--to=mk@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.