1

I have a very basic question about the Linux Device Tre I'm trying to build a device tree coming from an existing project, the device tree compiler just refuses like this:

Error: fsl-imx8mq-var-dart-common.dtsi:722.18-19 syntax error
FATAL ERROR: Unable to parse input tree

It's quite clear that I'm stumbling into some kind of syntax error, but I'm puzzled by the numbers reported, i expected 722 to be the line number, but it seems not the case.

What is the meaning of those number? I could not find a way to make dtc more verbose.

(I'm not adding the device tree yet since it's 2000 lines)

Thanks in advance

EDIT: the dt is here https://pastebin.com/dWF8fV32[][1]

  • Yes, its line number. Are your line endings correct? – stark Oct 02 '20 at 18:08
  • See also: https://stackoverflow.com/q/50658326/1216776 – stark Oct 02 '20 at 18:13
  • Thanks, i tested it by adding some errors on other lines, but i probably misjudged the results... Is there any way to make the output more verbose? Or any other tool that can help me in the debugging beside dtc? – Marco.Venturini Oct 02 '20 at 21:27
  • Post the block of lines leading up to 722. Make sure you cut and paste, not retype. – stark Oct 02 '20 at 23:12
  • Forget about it... i tough the "#" were comments and the stripped device tree is missing a lot of stuff... I think my question makes a lot less sense now, thanks for your time – Marco.Venturini Oct 05 '20 at 08:12

0 Answers0