How to build device tree changes?

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

How to build device tree changes?

Jump to solution
1,325 Views
chillinwithscb
Contributor III

IMX8M Nano

Yocto build setup from NXP

I want to build a modified device tree for the imx8m nano. I understand the syntax of device tree source files (.dts, dtsi), but I don't know how to get the yocto build to update the DTB: imx8mn-evk.dtb.

I modified imx8mn-evk.dts and built, but my changes do not seem to affect the build. As a test I simply typed garbage into the file and even renamed the file. I expected the build to fail, but no it doesn't. Thing is there's many copies of this file in my build tree. I picked the one under nano/tmp/work-shared/imx8mn-lpddr4-evk/kernel-source/arch/arm64/boot/dts/freescale/ where nano is my build dir. I realize that the files under tmp are only quasi-source files. They come from somewhere else. Maybe modifying them under tmp does not automatically cause the build to see the change. Or I have modified the wrong copy of the file. Or I selected the wrong target to build. I did "bitbake core-image-minimal" thinking that would be good.

IDK whether this is a general yocto issue or something particular to the IMX yocto build. FYI Yocto makes little sense to me in general.

How do I get the yocto build to build changes to the device tree?

Tags (3)
0 Kudos
Reply
1 Solution
1,305 Views
Chavira
NXP TechSupport
NXP TechSupport
0 Kudos
Reply
2 Replies
1,306 Views
Chavira
NXP TechSupport
NXP TechSupport
0 Kudos
Reply
1,291 Views
chillinwithscb
Contributor III

The info in the link How-to-compile-Linux-Kernel-Image-and-device-tree-using-Yocto is good. I actually had already found that info in NXP docs. But it's spread across two docs. The linked article is a more concise and direct description of the steps. 

That said, it was not clear to me from the NXP docs or the article _why_ I'd want to use a standalone build or why it so very complicated to setup. But, I see the value of the standalone build now. And I was able to build an updated DTB.

Thanks.

0 Kudos
Reply