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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
2,298件の閲覧回数
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,273件の閲覧回数
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,273件の閲覧回数
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,273件の閲覧回数
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,273件の閲覧回数
AdeAtWork
Contributor I

anyone ?

0 件の賞賛
返信
1,273件の閲覧回数
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,273件の閲覧回数
mrbmcg
Contributor I

 

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

0 件の賞賛
返信
1,274件の閲覧回数
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,273件の閲覧回数
AdeAtWork
Contributor I

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

My boss is now happy !

0 件の賞賛
返信