Skip to contentSkip to conversation

version control for dts/dtb?

DISCUSSION marty 3 participants 3 messages Jun 16, 2007 – Jun 22, 2007

lore
Share & tools
lore

marty

author
#0 lore raw

Is there a wy to figure out the version of the dtb file I'm using?
At a minimum, it would be useful to have a node with the conversion time stuck somewhere...

I ran dtc to convert binary to source, but that isn't necessarily what I wanted to look at -- just a single date code would be sufficient...

marty

#1 lore raw
Quoted 9 lines · marty

Is there a wy to figure out the version of the dtb file I'm using? At a minimum, it would be useful to have a node with the conversion time stuck somewhere...

I ran dtc to convert binary to source, but that isn't necessarily what I wanted to look at -- just a single date
code would be sufficient...

marty

There is currently no direct version stamp in the DTS or DTB files. You may be able to derive some knowledge by running a DTB file through the DTC with the input file as "dtb" and looking at an output file of DTS, though. That is, "-I dtb -O dts" and looking at it.

HTH,
jdl

#2 lore raw

I made a node "revision" which was tied into rcs...

...

        compatible =3D "mpc74xx";
        revision =3D "$Revision: 1.7 $";
        #address-cells =3D <1>;
        #size-cells =3D <1>;
        linux,phandle =3D <100>;

...

This seems to do what I wanted, I can then see in /proc/device-tree what dts I'm running...

marty

Quoted 40 lines

-----Original Message-----
From:=20 [email protected]=20 [mailto:linuxppc-embedded-bounces+martin.leisner=3Dxerox.com@ozl abs.org] On Behalf Of Jon Loeliger
Sent: Friday, June 22, 2007 1:25 PM
To: marty
Cc: [email protected]
Subject: Re: version control for dts/dtb?
=20

Quoted 2 lines · marty

Is there a wy to figure out the version of the dtb file I'm using? At a minimum, it would be useful to have a node with the=20

conversion time=20

Quoted 3 lines

stuck somewhere...
=20
I ran dtc to convert binary to source, but that isn't=20

necessarily what I=20

Quoted 4 lines

wanted to look at -- just a single date
code would be sufficient...
=20
marty

=20
=20
There is currently no direct version stamp in the DTS or DTB files. You may be able to derive some knowledge by running a DTB file through the DTC with the input file as "dtb" and looking at an output file of DTS, though. That is, "-I dtb -O dts" and looking at it.
=20
HTH,
jdl
=20
=20
_______________________________________________
Linuxppc-embedded mailing list [email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
=20