Locating syntax error in dts/dtsi files
Sachin Kamat
sachin.kamat at linaro.org
Thu Mar 21 19:12:40 EST 2013
Hi,
I was wondering if there is any way to locate the syntax error in
included .dtsi files (other than manually inspecting them).
In certain cases dtc only points at the line which includes the dtsi
file inside the dts file as the location of syntax (parsing error) and
does not pinpoint the line number inside the .dtsi file.
For e.g.
When a terminating brace and semicolon "};" was missing in
arch/arm/boot/dts/exynos4.dtsi, dtc gave the following error when I
did 'make dtbs'
Error: arch/arm/boot/dts/exynos4210-pinctrl.dtsi:17.1-2 syntax error
FATAL ERROR: Unable to parse input tree
make[1]: *** [arch/arm/boot/dts/exynos4210-origen.dtb] Error 1
make: *** [dtbs] Error 2
In this case it doesn't even tell the actual file that has a problem.
--
With warm regards,
Sachin
More information about the devicetree-discuss
mailing list