Read out version of barebox

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Fri Jun 10 03:27:29 EDT 2011


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.



More information about the barebox mailing list