# Where do I put my new dts?

**URL:** <https://forums.digi.com/t/where-do-i-put-my-new-dts/23152>\
**Category:** Linux\
**Tags:** embedded, bitbake, device-tree, yocto\
**Created:** [July 14, 2022, 4:11pm UTC](https://forums.digi.com/t/where-do-i-put-my-new-dts/23152 "2022-07-14T16:11:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![electron](https://avatars.discourse-cdn.com/v4/letter/e/ce73a5/32.png) [@electron](https://forums.digi.com/u/electron)\
**Post date:** [July 14, 2022, 4:11pm UTC](https://forums.digi.com/t/where-do-i-put-my-new-dts/23152/1 "2022-07-14T16:11:24Z")

</div>

Hi,

I followed [https://www.digi.com/resources/documentation/digidocs/embedded/dey/3.2/cc8mmini/yocto\_t\_install-dey](https://www.digi.com/resources/documentation/digidocs/embedded/dey/3.2/cc8mmini/yocto_t_install-dey)  
but after  
repo init -u [https://github.com/digi-embedded/dey-manifest.git](https://github.com/digi-embedded/dey-manifest.git) -b refs/tags/3.2-r3.1  
I don’t find any dts files in the sources/ diorectory. I’m working with a ccimx6ulstarter and have an upgraded dts file. Where do I copy it to make sure it gets built along with bitbake core-image-base?

---

<div class="post-metadata">

**Author:** ![LeonidM](https://avatars.discourse-cdn.com/v4/letter/l/d26b3c/32.png) [@LeonidM](https://forums.digi.com/u/LeonidM)\
**Post date:** [July 17, 2022, 9:49pm UTC](https://forums.digi.com/t/where-do-i-put-my-new-dts/23152/2 "2022-07-17T21:49:03Z")

</div>

build new workspace project first with default device tree, then modify it in tmp folder, aka:  
vi ~/workspace/ccimx8x-sbc-pro/tmp/work-shared/ccimx8x-sbc-pro/kernel-source/arch/arm64/boot/dts/digi/ccimx8qxp-sbc-pro-wb.dts

Replace ccimx8x with the correct platform you are using  
something like arch/arm/boot/dts/imx6ul-ccimx6ulstarter-id129.dts

---

<div class="post-metadata">

**Author:** ![electron](https://avatars.discourse-cdn.com/v4/letter/e/ce73a5/32.png) [@electron](https://forums.digi.com/u/electron)\
**Post date:** [July 22, 2022, 9:10am UTC](https://forums.digi.com/t/where-do-i-put-my-new-dts/23152/3 "2022-07-22T09:10:37Z")

</div>

Thank you for this Leonid, I will try it out. But I’m still wondering where the original dts in this directory is sourced from as the tmp/ dir just gets created during the bitbake operation.

---

<div class="post-metadata">

**Author:** ![LeonidM](https://avatars.discourse-cdn.com/v4/letter/l/d26b3c/32.png) [@LeonidM](https://forums.digi.com/u/LeonidM)\
**Post date:** [July 22, 2022, 9:55am UTC](https://forums.digi.com/t/where-do-i-put-my-new-dts/23152/4 "2022-07-22T09:55:05Z")

</div>

original dts get pulled from the GitHub:  
[https://github.com/digi-embedded/linux/tree/v5.4/dey-3.2/maint/arch/arm/boot/dts](https://github.com/digi-embedded/linux/tree/v5.4/dey-3.2/maint/arch/arm/boot/dts)

[https://www.digi.com/resources/documentation/digidocs/embedded/dey/3.2/cc6ul/bsp\_r\_device-tree-files\_6ul](https://www.digi.com/resources/documentation/digidocs/embedded/dey/3.2/cc6ul/bsp_r_device-tree-files_6ul)  
Also in your original email you mention documentation for cc8m mini, but saying you are using cc6ul:  
[https://www.digi.com/resources/documentation/digidocs/embedded/dey/3.2/cc8mmini/yocto\_t\_install-dey](https://www.digi.com/resources/documentation/digidocs/embedded/dey/3.2/cc8mmini/yocto_t_install-dey)

---

<div class="post-metadata">

**Author:** ![electron](https://avatars.discourse-cdn.com/v4/letter/e/ce73a5/32.png) [@electron](https://forums.digi.com/u/electron)\
**Post date:** [August 22, 2022, 9:38am UTC](https://forums.digi.com/t/where-do-i-put-my-new-dts/23152/5 "2022-08-22T09:38:42Z")

</div>

Yes, in fact the link to ccimx8x-sbc-pro was wrong, I’m using ccimx6ulstarter.  
So, as suggested, I copied the modified dts and modified the original imx6ul-ccimx6ulstarter-id129.dts. I then went back and executed bitbake core-image-base again but it seemed like it didn’t pick up the change.  
So, to confirm I renamed tmp/deploy/ to tmp/deploy~/ and also renamed sstate-cache/ to sstate-cache~/ but re-invocation of bitbake core-image-base still seemed to re-use some of the cached files from the previous build. How do I get the new dts in the tmp/ compiled now?

Thanks!

---

<div class="post-metadata">

**Author:** ![LeonidM](https://avatars.discourse-cdn.com/v4/letter/l/d26b3c/32.png) [@LeonidM](https://forums.digi.com/u/LeonidM)\
**Post date:** [August 22, 2022, 10:40am UTC](https://forums.digi.com/t/where-do-i-put-my-new-dts/23152/6 "2022-08-22T10:40:59Z")

</div>

\>So, as suggested, I copied the modified dts and modified the original imx6ul-ccimx6ulstarter-id129.dts. I then went back and executed bitbake core-image-base again but it seemed like it didn’t pick up the change.

Yes, this is not enough. after modifying the device tree, go back to the workspace folder and do:  
bitbake -c compile -f linux-dey  
bitbake -C compile virtual/kernel  
bitbake dey-image-qt
