Rbf with overlay


#1

I am using the Linux Xfce Desktop (kernel 4.1.33-ltsi-altera) image from terasic for my de10 board. I’m trying to load rbf over overlay. I followed the method in the below forum.


. but i’m getting the following error

@socfpga:~# echo load_rbf.dtbo > /config/device-tree/overlays/test/path
[ 6126.498665] OF: overlay: of_build_overlay_info() failed for tree@/
[ 6126.504860] create_overlay: Failed to create overlay (err=-19)
-sh: echo: write error: No such device

my overlay file contents
/dts-v1/ /plugin/;
/ {
fragment@0 {
target-path = “/soc/base-fpga-region”;
#address-cells = <1>;
#size-cells = <1>;
overlay {
firmware-name = “de10_soc.rbf”;
#address-cells = <1>;
#size-cells = <1>;
};
};
};

Any idea why the overlay is not loading?Do we have to build the kernel from source to add the overlay?I checked the kernel source available on git. It has the parent node as below

arch/arm/boot/dts/socfpga.dtsi
base_fpga_region: base-fpga-region {
compatible = “fpga-region”;
fpga-mgr = <&fpgamgr0>;

                    #address-cells = <0x1>;
                    #size-cells = <0x1>;
            };

#2

Hi, this issue is resolved by adding following change in
arch/arm/boot/dts/socfpga.dtsi

base_fpga_region: base-fpga-region {
compatible = “fpga-region”;
fpga-mgr = <&fpgamgr0>;
fpga-bridges = <&fpga_bridge0>;

                    #address-cells = <0x1>;
                    #size-cells = <0x1>;
            };

modifying