mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* Determining barebox version from linux
@ 2010-12-23  0:03 Marc Reilly
  2010-12-23  6:18 ` Baruch Siach
  0 siblings, 1 reply; 3+ messages in thread
From: Marc Reilly @ 2010-12-23  0:03 UTC (permalink / raw)
  To: barebox

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-12-23  7:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-23  0:03 Determining barebox version from linux Marc Reilly
2010-12-23  6:18 ` Baruch Siach
2010-12-23  7:07   ` Jean-Christophe PLAGNIOL-VILLARD

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox