Compiling custom dtb from dts

cancel
Showing results for 
Search instead for 
Did you mean: 

Compiling custom dtb from dts

1,119 Views
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!

Labels (2)
0 Kudos
2 Replies

222 Views
art
NXP TechSupport
NXP TechSupport

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 Kudos

222 Views
spectrum
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 Kudos