Skip to contentSkip to conversation

Read out version of barebox

DISCUSSION Tim Sander 3 participants 3 messages Jun 8, 2011 – Jun 10, 2011

lore
Share & tools
lore

Tim Sander

author
#0 lore raw

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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#1 lore raw

Hi Tim,

Quoted 4 lines · Tim Sander

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

Signature · 9 lines
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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#2 lore raw
Quoted 8 lines · Sascha Hauer

Hi Tim,

Quoted 4 lines · Tim Sander

Hi

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

Quoted 8 lines

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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox