From: Marc Reilly <marc@cpdesign.com.au>
To: barebox@lists.infradead.org
Subject: Determining barebox version from linux
Date: Thu, 23 Dec 2010 11:03:31 +1100 [thread overview]
Message-ID: <201012231103.31335.marc@cpdesign.com.au> (raw)
Hi,
I want to be able to determine what version of barebox I have on my NOR flash,
after booting into linux.
The easiest way I thought of is something like:
cat /dev/mtd0 | grep "barebox 2010"
Another way to do this is to have the version_string (or other version info)
at a fixed location in the barebox image. This feels like a overly rigid
solution, and may be a pain to put into the build system.
Does anybody else accomplish this in a better way? (I don't want to pass the
barebox version as an arg when booting the kernel - I'd rather it be more
"standalone").
Cheers
Marc
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next reply other threads:[~2010-12-23 0:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-23 0:03 Marc Reilly [this message]
2010-12-23 6:18 ` Baruch Siach
2010-12-23 7:07 ` Jean-Christophe PLAGNIOL-VILLARD
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=201012231103.31335.marc@cpdesign.com.au \
--to=marc@cpdesign.com.au \
--cc=barebox@lists.infradead.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