Skip to main content
Visitor II
July 7, 2025
Question

Device tree overlay does not get applied

  • July 7, 2025
  • 3 replies
  • 340 views

I want to support a couple of display panels/LCDs so I tried modifying the uboot so it loads the desired device tree overlay according to the state of the input pins (digital). However, when I'm testing it, it does not get applied.

I already spent a couple of days trying to figure this one out but I did not get any luck so I tried testing this concept with RaspberryPi and it works.

Do I just need to set CONFIG_OF_LIBFDT_OVERLAY to the defconfig make this one work?

    This topic has been closed for replies.

    3 replies

    Visitor II
    November 12, 2025

    I'm interested in this topic as well

    jpcarlosAuthor
    Visitor II
    November 12, 2025

    I found a work around. In my linux_stm32mp_%.append I prepend my DTS to STM32MP_KERNEL_DEVICETREE and append my configs to KERNEL_CONFIG_FRAGMENTS. However, this is not ideal as you will end up having multiple full DTBs (~140KB each).

    Visitor II
    November 12, 2025

    Ah, got you, thank you for sharing information.
    I'm mostly interested in it, so I can update Device Tree at runtime.