Of the device tree binary format endianness on little-endian platform

Jon Loeliger jdl at freescale.com
Thu Feb 19 05:45:29 EST 2009


Mitch Bradley wrote:

> 
> I can't speak for flattened device trees specifically, but IEEE1275 
> (Open Firmware) specifies that integers are encoded in property values 
> in big-endian byte order.  The model is serialization/deserialization, 
> rather than overlaying a C struct on top of the data.


The FDT adopted the same big-endian serialize/deserialize approach.

To be honest, I don't know what motivated the big-endian choice
(Network order, PPC, 1275, One True Format, etc.)  Doesn't matter.

jdl





More information about the devicetree-discuss mailing list