cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor
Visitor
1,112 Views
Registered: ‎03-12-2018

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

Hello,

 

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:

 

...

reserved-memory {
   #address-cells = <2>;
   #size-cells = <2>;
   ranges;
   rproc_0_reserved: rproc@3ed000000 {
      no-map;
      reg = <0x0 0x3ed00000 0x0 0x1000000>;
   };
}; 

...

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:

 

virtio_rpmsg_bus 20480 0
rpmsg_user_dev_driver 16384 0
rpmsg_core 16384 2 rpmsg_user_dev_driver,virtio_rpmsg_bus
zynqmp_r5_remoteproc 16384 0
uio_pdrv_genirq 16384 0

 

Best

Giovani

0 Kudos
1 Reply
Highlighted
Moderator
Moderator
1,076 Views
Registered: ‎05-10-2017

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

Can you  provide the commands that you used ?

You need to load the rpu firmware and then start the apu linux application.

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos