cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ariels
Observer
Observer
504 Views
Registered: ‎02-16-2019

zynq_remoteproc invalid address

b"H

Hi all,

I'm trying to work with remoteproc on zynq7000 in our custom board which has 512M RAM.

I've looked in many posts and also this one:

https://forums.xilinx.com/t5/OpenAMP/UG1186-2019-OpenAMP-failure-on-Zynq7000/m-p/1093588#M1168 

after powerup  I insmod the ko's :  virtio.ko,virtion_ring.ko,remoteproc.ko and zynq_remoteproc.ko

but i get "zynq_remoteproc SlaveBMA91: invalid address "

i already added to the dts of the kernel :

SlaveBMA91 {
    	compatible = "xlnx,zynq_remoteproc";
    	vring0 = <15>;
    	vring1 = <14>;
        firmware="firmware";
    	memory-region = <&rproc_0_reserved>, <&rproc_0_dma>;
    	status="okay";
};
	
reserved-memory {
    	#address-cells = <1>;
    	#size-cells = <1>;
    	ranges;
    	rproc_0_reserved: rproc@1e000000 {
        	no-map;
        	reg = <0x1e000000 0x400000>;
    	};
    	rproc_0_dma: rproc@1e800000 {
        	no-map;
        	compatible = "shared-dma-pool";
        	reg = <0x1e800000 0x100000>;
    	};
 };
}

and also to the uboot the same reserved memory (so it won't put there the ramdisk nor devicetree).

made some other tries but always the same invalid address.

what's the problem ?

thanks in advance

Ariel

 

 

0 Kudos
2 Replies
jovitac
Moderator
Moderator
473 Views
Registered: ‎05-10-2017

Which version of the tools are you using? Can you post your boot log as well?

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
ariels
Observer
Observer
447 Views
Registered: ‎02-16-2019

b"H

Hi,

I'm working with xilinx-v2015.3 (supporting backward HW project). 

it uses linux 4.0.0

I am not using petalinux ( doing all the linux stuff by myself (u-boot,kernel,dts,ramdisk).

i masked the line of the "memory-region = <&rproc_0)reserved..."

and wrote instead reg = <0x1e000000 0x400000>;

and no more invalid address 

i get:

remoteproc0: 1e000000.SlaveBMA91 is available
remoteproc0: Note: remoteproc is still under development and considered experimental.
remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
remoteproc0: Direct firmware load for firmware failed with error -2
remoteproc0: failed to load firmware

i do not see remoteproc in the sys/class. how come?

thanks in advance

Ariel

0 Kudos