Compiling custom dtb from dts

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

Compiling custom dtb from dts

1,552件の閲覧回数
vladimirovseych
Contributor III

Hello, Dear Community!

I'm trying to make my own device tree for custom board on imx287. I'm doing it according to this instruction: Device Tree — Wiren Board

But I catched errors, e.g.

root@vladimir-Ubuntu:/home/vladimir/Downloads/mydts/my# cat .TESTimx287.dtb.dts.tmp | grep -v "^#" | dtc -I dts -O dtb -o TESTimx287.dtb

Error: <stdin>:37.28-29 syntax error

FATAL ERROR: Unable to parse input tree

Has anybody some ideas? Maybe there are other ways to compile .dtb?

Thank you!

ラベル(2)
タグ(4)
0 件の賞賛
2 返答(返信)

655件の閲覧回数
art
NXP Employee
NXP Employee

Try to refer to the following documents:

https://www.kernel.org/doc/Documentation/devicetree/booting-without-of.txt

https://community.freescale.com/docs/DOC-104818

http://cache.nxp.com/files/32bit/doc/app_note/AN5125.pdf?fsrch=1&sr=1&pageNum=1

Hope they will be helpful.


Have a great day,
Artur

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛

655件の閲覧回数
angelo_d
Senior Contributor I

Hi,

likely you already solved, just check line 37

Typical errors in dts are :

- syntax errors as missing ";" at end of a block / line

- wrong entry name reference

See also

linx/Documentation/devicetree/bindings

and better, since the above could miss some info, check similar example boards

in arch/arm/boot/dts folder

Regards

angelo

0 件の賞賛