Change device tree with QCVS

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

Change device tree with QCVS

Jump to solution
1,121 Views
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

Labels (1)
0 Kudos
1 Solution
666 Views
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!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
2 Replies
667 Views
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 Kudos
666 Views
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 Kudos