The dtc compiler allows compilation of DTS overlay files which fail when applied with FDT_ERR_NOTFOUND. I discovered this issue first with a Raspberry Pi overlay and reported the issue with instructions to reproduce in issue https://github.com/raspberrypi/firmware/issues/1718.
It only fails when the overlay is compiled with --symbols as the issue appears to be with overlay symbols which have stale phandle references after the original node phandle is overwritten by the overlay.
A minimal example to reproduce is:
File base.dts:
/dts-v1/;
/ {
soc {
minibt: bluetooth {
compatible = "brcm,bcm43438-bt";
max-speed = <0x70800>;
status = "disabled";
};
};
};
The
dtc
compiler allows compilation of DTS overlay files which fail when applied withFDT_ERR_NOTFOUND
. I discovered this issue first with a Raspberry Pi overlay and reported the issue with instructions to reproduce in issue https://github.com/raspberrypi/firmware/issues/1718.It only fails when the overlay is compiled with
--symbols
as the issue appears to be with overlay symbols which have stale phandle references after the original node phandle is overwritten by the overlay.A minimal example to reproduce is:
File
base.dts
:File
blah.dts
: