I have a situation in which same device trees are used with different kernels. Can the device trees be build only once and used with all kernels?

The reason I ask this is because I found the device tree compiler having a separate repository that the kernel. Also the explanation from this answer doesn't relate device tree compilation directly to a kernel version.

  • Vague. Device Tree could refer to Repository Source Code or The Structure Describing System Hardware. Here, the user meant Structure Describing System Hardware. – Tyler Maginnis Oct 3 '14 at 12:18
  • 1
    @TylerMaginnis Uh? No, “device tree” in a Linux kernel context is a structure describing hardware. A source code tree would not be called “device tree” but “kernel source code” or just possibly “driver (source) tree”. – Gilles 'SO- stop being evil' Oct 3 '14 at 23:22
  • The reference to compiler in this question mislead me to answer this in the context of kernel driver tree. I believe the answer here is that each Kernel you compile can only have one device tree. So you can build it twice (the device tree) in two different Kernels. – Tyler Maginnis Oct 3 '14 at 23:37
  • 1
    @TylerMaginnis I'm pretty sure the OP is asking whether or not a dtb compiled for, say, 3.14 could be used for a 3.16 kernel. And I'm 95% sure the answer is yes, but I'm not positive. – Tony Arkles Feb 20 '15 at 16:52

After being in a situation where this could be tested I've witnessed that you can't use a device tree compiled for kernel 3.10 on kernel 3.14. and vice versa.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.