* Locating syntax error in dts/dtsi files
@ 2013-03-21 8:12 Sachin Kamat
[not found] ` <CAK9yfHzSiXk+4XqpEdmGhdD+pWcv8O_NCNRbNTv9tGNntFWdvg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Sachin Kamat @ 2013-03-21 8:12 UTC (permalink / raw)
To: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ; +Cc: Rob Herring
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Locating syntax error in dts/dtsi files
[not found] ` <CAK9yfHzSiXk+4XqpEdmGhdD+pWcv8O_NCNRbNTv9tGNntFWdvg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2013-04-15 12:59 ` Grant Likely
0 siblings, 0 replies; 2+ messages in thread
From: Grant Likely @ 2013-04-15 12:59 UTC (permalink / raw)
To: Sachin Kamat, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ; +Cc: Rob Herring
On Thu, 21 Mar 2013 13:42:40 +0530, Sachin Kamat <sachin.kamat-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> wrote:
> 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.
Unfortunately, not currently. There needs to be some work on the tools
to get this working.
g.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-04-15 12:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-21 8:12 Locating syntax error in dts/dtsi files Sachin Kamat
[not found] ` <CAK9yfHzSiXk+4XqpEdmGhdD+pWcv8O_NCNRbNTv9tGNntFWdvg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-04-15 12:59 ` Grant Likely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).