cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
jackfrye11
Explorer
Explorer
1,609 Views
Registered: ‎10-19-2017

PetaLinux Included Device Tree Build Fail

Jump to solution

I am trying to build a device tree blob. The device tree source code is included in the PetaLinux kernel source code which I have downloaded from the repository and the exact file I am trying to build is https://github.com/Xilinx/linux-xlnx/blob/master/arch/arm/boot/dts/zynq-zc706.dts

 

I run the command from inside the linux-xlnx device tree folder where the file is located:

 

$ ../../../../../dtc-1.4.5/dtc -O dtb -o ../../../../../project10242017p1e2016.4/petaproject/images/linux/basic-tree.dtb zynq-zc706.dts
Error: zynq-zc706.dts:15.1-9 syntax error
FATAL ERROR: Unable to parse input tree

 

If you look at the file on Github or in a file editor, it looks as though it sees the "#include" on line 15 as invalid syntax. Is my compiler out of date? The file zynq-7000.dtsi is in that directory, so that should not be the issue.

0 Kudos
1 Solution

Accepted Solutions
jackfrye11
Explorer
Explorer
2,262 Views
Registered: ‎10-19-2017

#include "zynq-7000.dtsi" line 15

 

should be

 

/include/ "zynq-7000.dtsi"

 

Their syntax of the default device trees included in their Petalinux repository looks like it has issues.

View solution in original post

0 Kudos
1 Reply
jackfrye11
Explorer
Explorer
2,263 Views
Registered: ‎10-19-2017

#include "zynq-7000.dtsi" line 15

 

should be

 

/include/ "zynq-7000.dtsi"

 

Their syntax of the default device trees included in their Petalinux repository looks like it has issues.

View solution in original post

0 Kudos