building with ltib -c and get syntax error in dts file

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

building with ltib -c and get syntax error in dts file

跳至解决方案
2,296 次查看
AdeAtWork
Contributor I

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

标签 (1)
0 项奖励
回复
1 解答
1,271 次查看
mrbmcg
Contributor I

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)

在原帖中查看解决方案

0 项奖励
回复
7 回复数
1,271 次查看
Dana_Wang
Contributor I

Thank you (Both of you:smileyhappy:) 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!”

0 项奖励
回复
1,271 次查看
J2MEJediMaster
Specialist I

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

 

 

0 项奖励
回复
1,271 次查看
AdeAtWork
Contributor I

anyone ?

0 项奖励
回复
1,271 次查看
AdeAtWork
Contributor I

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.

0 项奖励
回复
1,271 次查看
mrbmcg
Contributor I

 

I get the exact same error......Did you ever fix it?

0 项奖励
回复
1,272 次查看
mrbmcg
Contributor I

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)

0 项奖励
回复
1,271 次查看
AdeAtWork
Contributor I

Thanks for that !!!!  I waited a long time for an answer !

My boss is now happy !

0 项奖励
回复