How to compile the Device Tree Source Code

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

How to compile the Device Tree Source Code

6,216 次查看
adityanagal
Contributor III

Hi ,

I am working over IMX6 quad based target board , How to compile the Device Tree Source code . Which compiler to use ,

as per my understanding , device tree has the system hardware information  and has the hardware dependent code . How to compile this.  Kindly suggest.

Regards,

Aditya Nagal

0 项奖励
回复
2 回复数

3,181 次查看
Carlos_Musich
NXP Employee
NXP Employee

Hi Adytia,

- If you are building an image using Yocto the default image must provide the dtb files.

- If you want to build a specific file you can use the following commands

$ cd <build dir>/tmp/workshared/<machine>/kernel-source/
$ export ARCH=arm
$ export CROSS_COMPILE=arm-linux-gnueabihf-
$ make imx_v7_defconfig
$ make file_name.dtb

- Or

$ cd <build dir>/tmp/workshared/<machine>/kernel-source/
$ ./scripts/dtc/dtc -I dts -O dtb -o ./file_name.dtb <path>/file-name.dts

Please note that dts is the file with the hardware description in code while dtb is the compiled binary file.

Something similar is odne in chapter 6 here: https://community.nxp.com/docs/DOC-332807 


Regards,
Carlos

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

0 项奖励
回复

2,685 次查看
VinithNama
Contributor III

The Above Linux script is throwing errror  make:*** No rule to make target 'imx_v7_deconfig'. stop

0 项奖励
回复