How to compile and create Device tree file(.dtb) alone

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to compile and create Device tree file(.dtb) alone

3,837 Views
anandhakumarm
Contributor III

Hi all,

Im using LS2085A board and im using yocto sdk, does anyone how to compile this dtb file alone, since it is taking too much time to compile in bitbake fsl-image-minimal.. so i just want to know how to compile the dtb file alone. pls share some idea..

Labels (1)
0 Kudos
1 Reply

1,294 Views
bpe
NXP Employee
NXP Employee

If you have the Device Tree compiler installed on your Linux host:

dtc -I dts -O dtb <your_dts_file> > <your_dt_file>

If you do not have dtc on your host machine,  first bitbake dtc-native,

find the binaries under <your_sdk_dir>/tmp/work/i686/dtc-native/<dtc_version>/image/

and copy where appropriate on your host (typically /usr/bin/).

You may also need to specify where to locate include files with -i option.


Have a great day,
Platon

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

0 Kudos