mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* Read out version of barebox
@ 2011-06-08  9:49 Tim Sander
  2011-06-10  7:09 ` Sascha Hauer
  0 siblings, 1 reply; 3+ messages in thread
From: Tim Sander @ 2011-06-08  9:49 UTC (permalink / raw)
  To: barebox

Hi

I'd like to read out the version string of barebox out of flash. Any idea how 
to do this?

Best regards
Tim

Hottinger Baldwin Messtechnik GmbH, Im Tiefen See 45, 64293 Darmstadt, Germany | www.hbm.com 

Registered as GmbH (German limited liability corporation) in the commercial register at the local court of Darmstadt, HRB 1147  
Company domiciled in Darmstadt | CEO: Andreas Huellhorst | Chairman of the board: James Charles Webster

Als Gesellschaft mit beschraenkter Haftung eingetragen im Handelsregister des Amtsgerichts Darmstadt unter HRB 1147 
Sitz der Gesellschaft: Darmstadt | Geschaeftsfuehrung: Andreas Huellhorst | Aufsichtsratsvorsitzender: James Charles Webster

The information in this email is confidential. It is intended solely for the addressee. If you are not the intended recipient, please let me know and delete this email.

Die in dieser E-Mail enthaltene Information ist vertraulich und lediglich fur den Empfaenger bestimmt. Sollten Sie nicht der eigentliche Empfaenger sein, informieren Sie mich bitte kurz und loeschen diese E-Mail.


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: Read out version of barebox
  2011-06-08  9:49 Read out version of barebox Tim Sander
@ 2011-06-10  7:09 ` Sascha Hauer
  2011-06-10  7:27   ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 1 reply; 3+ messages in thread
From: Sascha Hauer @ 2011-06-10  7:09 UTC (permalink / raw)
  To: Tim Sander; +Cc: barebox

Hi Tim,

On Wed, Jun 08, 2011 at 11:49:40AM +0200, Tim Sander wrote:
> Hi
> 
> I'd like to read out the version string of barebox out of flash. Any idea how 
> to do this?

Short answer: No.

We recently added a magic value to the barebox binary which adds at
least a 'barebox' string so that you can at least recognize that
there is a barebox in flash. I couldn't convince the linker though
to add the version string at some fixed location.

(Note this is all Arm specific atm)

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: Read out version of barebox
  2011-06-10  7:09 ` Sascha Hauer
@ 2011-06-10  7:27   ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 0 replies; 3+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2011-06-10  7:27 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: barebox, Tim Sander

On 09:09 Fri 10 Jun     , Sascha Hauer wrote:
> Hi Tim,
> 
> On Wed, Jun 08, 2011 at 11:49:40AM +0200, Tim Sander wrote:
> > Hi
> > 
> > I'd like to read out the version string of barebox out of flash. Any idea how 
> > to do this?
> 
> Short answer: No.
> 
> We recently added a magic value to the barebox binary which adds at
> least a 'barebox' string so that you can at least recognize that
> there is a barebox in flash. I couldn't convince the linker though
> to add the version string at some fixed location.
> 
> (Note this is all Arm specific atm)
IIRC we can do so via --build-id

but we need to update the lds to .note.*
or more precisely .note.gnu.build-id

Best Regards,
J.

_______________________________________________
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:[~2011-06-10  7:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-08  9:49 Read out version of barebox Tim Sander
2011-06-10  7:09 ` Sascha Hauer
2011-06-10  7:27   ` 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