[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Ltib] Re: DTC - Fatal Error: Couldn't read input tree
From: |
David Gibson |
Subject: |
[Ltib] Re: DTC - Fatal Error: Couldn't read input tree |
Date: |
Wed, 6 Jun 2007 20:05:05 +1000 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
On Tue, Jun 05, 2007 at 11:16:35AM -0700, Mark Lacas wrote:
> Hello,
> I'm trying to use dtc to compile a device tree for my powerpc
> project and failing, no matter what I try.
>
> I have downloaded several different versions of the dtc program but
> they all fail the same.
>
> dtc also fails with any of the Freescale dts files that are included
> with ltib, so I don't think it's my particular file.
>
> It complains about line 10, so I removed the comment at the top that
> ends on line 10. . .it then complains about line 1.
>
> I'm hoping someone will have some insight as to how I should
> proceed. My project is behind schedule and due tomorrow. So close
> to the finish line and getting dtc working will get me across.
Ran your attached tree through dtc and quickly found the problem -
your .dts file has DOS-style newlines (\r\n) rather than UNIX style
(just \n). The dtc lexer was brokenly not considering carriage return
to be whitespace.
I'll send a patch to Jon tomorrow to fix that, in the meantime you
could convert the linefeed style as a workaround.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson