'issue with compiling device tree overlay
Hello i am currently working with the beaglebone black and i am trying to compile a device tree overlay which is used to allocate memory, however i am getting several warnings from the device tree compiler that preventing the compiler from producing a working dtbo file. My kernel version is 4.19.94-ti-r42 and i am running the Debian 10 buster distro. The dts file is shown below:
/dts-v1/;
/plugin/;
/* Reserve 256kB DDR memory for the ping/pong buffers */
/{
__overlay__ {
reserved-memory {
#address-cells = <1>;
#size-cells = <1>;
ranges;
pruadc_reserved: pruadc_reserved@0x9ffc0000 {
reg = <0x9ffc0000 0x00040000>;
no-map;
status = "okay";
};
};
};
};
I then compile the dts file with command below:
dtc -W no-unit_address_vs_reg -O dtb -o shared_ddr.dtbo -b 0 -@ shared_ddr.dts
After compiling a dtbo file is produced but several warnings are shown, the dtbo file is not functional. The warnings are shown below:
shared_ddr.dtbo: Warning (ranges_format): /__overlay__/reserved-memory:ranges: empty "ranges" property but its #address-cells (1) differs from /__overlay__ (2)
shared_ddr.dtbo: Warning (avoid_default_addr_size): /__overlay__/reserved-memory: Relying on default #address-cells value
shared_ddr.dtbo: Warning (avoid_default_addr_size): /__overlay__/reserved-memory: Relying on default #size-cells value
shared_ddr.dtbo: Warning (avoid_unnecessary_addr_size): Failed prerequisite 'avoid_default_addr_size'
shared_ddr.dtbo: Warning (unique_unit_address): Failed prerequisite 'avoid_default_addr_size'
Any help with fixing these warnings will be greatly appreciated, thank you. If any other info is needed let me know.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
