Showing results for 
Show  only  | Search instead for 
Did you mean: 
Registered: ‎03-12-2018

Libmetal demo (R5) from SDK and remoteproc not running correctly on ZCU102



I am trying to run the libmetal demo from the SDK using remoteproc on the ZCU102. I have loaded the r5_libmetal_demo.elf generated by the SDK using the r5 remoteproc driver.


I am able to see the output, stating that the R5 was powered up, but I cannot see the output from the client side:


remoteproc remoteproc0: powering up ff9a0100.zynqmp_r5_rproc
remoteproc remoteproc0: Booting fw image r5_libmetal_demo.elf, size 543368
zynqmp_r5_remoteproc ff9a0100.zynqmp_r5_rproc: RPU boot from TCM.


SERVER> registering: 0, name=ff340000.ipi

SERVER> registering: 1, name=3ed80000.shm

SERVER> registering: 2, name=ff110000.ttc

SERVER> ====== libmetal demo: shared memory ======

SERVER> io mapped to = 213E4, shm_dev->name = 3ed80000.shm

SERVER> Wait for shared memory demo to start.


The demo stopped in "Wait for shared memory demo to start.", which is a while testing the shm_io in the shmem_demod.c file:


while (metal_io_read32(shm_io, SHM_DEMO_CNTRL_OFFSET) != DEMO_STATUS_START); 


Why is this happening? Should I configure anything else or load a specific driver?


The ff340000 region is in the device tree file, so as 3ed80000:


shm0: shm@0 {
   compatible = "shm_uio";
   reg = <0x0 0x3ed80000 0x0 0x80000>;


ipi0: ipi@0 {
  compatible = "ipi_uio";
  reg = <0x0 0xff340000 0x0 0x1000>;
   interrupt-parent = <&gic>;
   interrupts = <0 29 4>;


The following drivers are loaded:


zynqmp_r5_remoteproc 16384 0
uio_pdrv_genirq 16384 0





0 Kudos
0 Replies