Hi @Dhruvit,
Many thanks for your answer.
These are the steps I do when it works:
- Linux boot
- I load and start the M4 program:
echo -n ~/ > /sys/module/firmware_class/parameters/path
echo -n linux_remote.elf > /sys/class/remoteproc/remoteproc0/firmware
echo start > /sys/class/remoteproc/remoteproc0/state
remoteproc remoteproc0: powering up imx-rproc
remoteproc remoteproc0: Booting fw image linux_remote_2_13.elf, size 3534088
remoteproc0#vdev0buffer: assigned reserved memory node vdevbuffer@78400000
virtio_rpmsg_bus virtio0: rpmsg host is online
remoteproc0#vdev0buffer: registered virtio0 (type 7)
remoteproc remoteproc0: remote processor imx-rproc is now up
virtio_rpmsg_bus virtio0: creating channel rpmsg-openamp-demo-channel addr 0x1e
- At the same time in the M4 terminal console there are the messages:
RPMSG Ping-Pong FreeRTOS RTOS API Demo...
RPMSG Share Base Addr is 0x78000000
Link is up!
Nameservice announce sent.
- At this time I load the ping pong module:
modprobe imx_rpmsg_pingpong
90:init
42:rpmsg_pingpong_probe
imx_rpmsg_pingpong virtio0.rpmsg-openamp-demo-channel.-1.30: new channel: 0x400 -> 0x1e!
get 1 (src: 0x1e)
get 3 (src: 0x1e)
get 5 (src: 0x1e)
[...]
get 99 (src: 0x1e)
get 101 (src: 0x1e)
imx_rpmsg_pingpong virtio0.rpmsg-openamp-demo-channel.-1.30: goodbye!
- In the corresponding M4 terminal console there are the messages:
Waiting for ping...
Sending pong...
Waiting for ping...
Sending pong...
Waiting for ping...
Sending pong...
[...]
Waiting for ping...
Sending pong...
Waiting for ping...
Sending pong...
Ping pong done, deinitializing...
Looping forever...
These are the steps I do when it doesn't work:
- Linux boot
- Using the IDE (Eclipse & J-Link) I load and start the M4 program
- These are the only messages displayed in the M4 terminal console:
RPMSG Ping-Pong FreeRTOS RTOS API Demo...
RPMSG Share Base Addr is 0x78000000
- Then I load the ping pong module and these are the only messages displayed in the linux console:
modprobe imx_rpmsg_pingpong
90:init
The M4 program is compiled using the MIMX8MM6xxxxx_cm4_ram.ld linker file.
Am I making some mistakes?
Many thanks
Biafra