using ltib -c to build and get the following error:
Error:: ......mpc8313erdb.dts 12:0 - 1:0 syntax error
FATAL ERROR: unable to parse input tree
It doesn't give any clues as to what the error is. As the dts file is supplied by freescale its hard to work out what I should do.
thanks
Solved! Go to Solution.
Ok, managed to sort this.
Apparently the .dts files for the mpc8313erdb are in dts-v0 format. The vrsion of the DTC (Device Tree Compiler) I have installed does not support this format any longer.
To fix it I downloaded the source and built it, which includes a utility called convert-dtsv0
>git clone http://git.jdl.com/software/dtc.git
>cd dtc
>make
This should build the convert-dtsv0 utiltity
Copy it to your /usr/local/bin directory (or wherever you think is suitable in your PATH)
>cd /ltib-mpc8313erdb-20081222/config/platform/mpc8313erdb/dts/
(or wherever you have the BSP installed)
>convert-dtsv0 mpc8313erdb.dts
>convert-dtsv0 mpc8313erdb-revc-tsec1-marvell.dts
>convert-dtsv0 mpc8313erdb-usb-internal-client.dts
This will produce three files of the same names, but with the extension .dtsv1
You will need to delete or rename the original files to something else (I renamed them with an extra .orig extension), then rename the .dtsv1 files to .dts
The build should now work. (hopefully)
Thank you (Both of you) every much!
I also meet the same problem. Your idea do help me.
I solve my problem by following the steps below:
Download the source file of DTC (http://git.jdl.com/software/)
>tar –zxvf dtc-v1.2.0.tgz
>cd dtc-v1.2.0
>make
This should build the version1.2.0 DCT
Now copy the “dct” executable file to “/opt/freescale/ltib/usr/bin/” directory and simply overwrite the old one.
>./ltib
And I was told “Build succeded!”
When a forum posting solves your problem, please use either the problem solved feature or the kudo feature (if the post has already been flagged as a solution). I make a point of looking at the posts with large kudo numbers to see if there is a major problem that needs to be fed back to the engineers and fixed.
---Tom
anyone ?
The dts file looks fine as well. In fact I can delete all its contents and just leave an open and close brace in it and it still complains about a syntax error on the first line.
I get the exact same error......Did you ever fix it?
Ok, managed to sort this.
Apparently the .dts files for the mpc8313erdb are in dts-v0 format. The vrsion of the DTC (Device Tree Compiler) I have installed does not support this format any longer.
To fix it I downloaded the source and built it, which includes a utility called convert-dtsv0
>git clone http://git.jdl.com/software/dtc.git
>cd dtc
>make
This should build the convert-dtsv0 utiltity
Copy it to your /usr/local/bin directory (or wherever you think is suitable in your PATH)
>cd /ltib-mpc8313erdb-20081222/config/platform/mpc8313erdb/dts/
(or wherever you have the BSP installed)
>convert-dtsv0 mpc8313erdb.dts
>convert-dtsv0 mpc8313erdb-revc-tsec1-marvell.dts
>convert-dtsv0 mpc8313erdb-usb-internal-client.dts
This will produce three files of the same names, but with the extension .dtsv1
You will need to delete or rename the original files to something else (I renamed them with an extra .orig extension), then rename the .dtsv1 files to .dts
The build should now work. (hopefully)
Thanks for that !!!! I waited a long time for an answer !
My boss is now happy !