Sorry, you need to enable JavaScript to visit this website.

Error DTS file with xillinux

Unsolved
3 posts / 0 new
Ascherit's picture
Ascherit
Junior(0)
Error DTS file with xillinux

Hi everybody,

I'am trying to ad I2C to xillinux so I follow the tuto find here http://www.arbot.cz/post/2012/11/14/PS-I2C-in-Xillinux.aspx and posted by Vatu.I'm blocked when I have to modify my dts file because this error happen :

$dtc -I dts -O dtb -o devicetree.dts devicetree.dtb
DTC: dts->dtb on file "devicetree.dtb"
devicetree.dtb:1 syntax error
FATAL ERROR: Unable to parse input tree

I didn't understand why this error happens ...
So can I take the dts give with ZedBoard_OOB_Design and just add it
i2c0: i2c @ e0004000
{
compatible = "xlnx, PS7-i2c-1.00.a";
reg = <0x1000 0xE0004000>;
interrupts = <0 25 0>;
interrupt-parent = <1>;
bus-id = <0>;
input-clk = <111111111>;
i2c-clk = <100000>;
# address-cells = <1>;
# size-cells = <0>;
};
Or this dts file was different of xillinux dts file ?

Did someone already get this error and know how to fix it ?
thank you for your help

m.russell's picture
m.russell
Junior(0)
Arguments the wrong way around

Hi

You have the arguments the wrong way around. The way you have it at the moment it's trying to read the dtb file as a dts, hence it cannot parse it correctly.

If you are trying to compile a .dts file use this:

dtc -I dts -O dtb -o devicetree.dtb devicetree.dts

Alternatively if you are trying to decompile a .dtb file use this:

dtc -I dtb -O dts -o devicetree.dts devicetree.dtb

Matthew

Ascherit's picture
Ascherit
Junior(0)
I'm stupid

Really thank you man.
I'm stupid to don't see this one.