Change device tree with QCVS

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

Change device tree with QCVS

跳至解决方案
1,774 次查看
manoloruiz
Contributor III

Hi,

I am using QCVS to make some changes in the device tree file. However,  I do not know which file I should open. I find the next path:

./build_t2080rdb_release/tmp/work/t2080rdb-fsl-linux/linux-qoriq/3.12-r0/packages-split/kernel-dev/usr/src/kernel/arch/powerpc/boot/dts/t2080rdb.dts

./build_t2080rdb_release/tmp/work/t2080rdb-fsl-linux/linux-qoriq/3.12-r0/image/usr/src/kernel/arch/powerpc/boot/dts/t2080rdb.dts

./build_t2080rdb_release/tmp/work/t2080rdb-fsl-linux/linux-qoriq/3.12-r0/git/arch/powerpc/boot/dts/t2080rdb.dts

./build_t2080rdb_release/tmp/work/t2080rdb-fsl-linux/linux-qoriq/3.12-r0/package/usr/src/kernel/arch/powerpc/boot/dts/t2080rdb.dts

./build_t2080rdb_release/tmp/work/t2080rdb-fsl-linux/linux-qoriq/3.12-r0/sysroot-destdir/usr/src/kernel/arch/powerpc/boot/dts/t2080rdb.dts

./build_t2080rdb_release/tmp/sysroots/t2080rdb/usr/src/kernel/arch/powerpc/boot/dts/t2080rdb.dts

Once  I select one, what I should do to perform the change?

BR

标签 (1)
0 项奖励
回复
1 解答
1,319 次查看
bpe
NXP Employee
NXP Employee

You should alter

../tmp/work/t2080rdb-fsl-linux/linux-qoriq/3.12-r0/git/arch/powerpc/boot/dts/t2080rdb.dts

After you are done with your modifications, rebuild the kernel with

'bitbake linux-qoriq' or rebuild just DTB by invoking dtc directly,

see man dtc for details.

Note that if you perform 'bitbalke -c clean' or 'bitbake -c cleansstate' your changes

will be lost. To avoid this, save your DTB to a separate file and

add it to KERNEL_DEVICETREE in /sources/meta-freescale/conf/machine/<your_board>.conf

More details can be found here:

https://freescale.sdlproducts.com/LiveContent/content/en-US/QorIQ_SDK_1.9/GUID-8C4D9C9C-BC81-488D-B2...

https://freescale.sdlproducts.com/LiveContent/content/en-US/QorIQ_SDK_1.9/GUID-FC862E7B-3601-482D-93...


Have a great day,
Platon

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

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,320 次查看
bpe
NXP Employee
NXP Employee

You should alter

../tmp/work/t2080rdb-fsl-linux/linux-qoriq/3.12-r0/git/arch/powerpc/boot/dts/t2080rdb.dts

After you are done with your modifications, rebuild the kernel with

'bitbake linux-qoriq' or rebuild just DTB by invoking dtc directly,

see man dtc for details.

Note that if you perform 'bitbalke -c clean' or 'bitbake -c cleansstate' your changes

will be lost. To avoid this, save your DTB to a separate file and

add it to KERNEL_DEVICETREE in /sources/meta-freescale/conf/machine/<your_board>.conf

More details can be found here:

https://freescale.sdlproducts.com/LiveContent/content/en-US/QorIQ_SDK_1.9/GUID-8C4D9C9C-BC81-488D-B2...

https://freescale.sdlproducts.com/LiveContent/content/en-US/QorIQ_SDK_1.9/GUID-FC862E7B-3601-482D-93...


Have a great day,
Platon

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

0 项奖励
回复
1,319 次查看
addiyi
NXP Employee
NXP Employee

In QCVS, create a project for your target and select Device Tree  Editor as component. You can import a .dts file using Wizard. After customization, you have to build the .dts file using dtc for the target.

Adrian

0 项奖励
回复