RPMSG on a Toradex Apalis iMX8

Hi @Juli7478,

I tested the overlay on my side with TorizonCore 5 and it worked for me. Could you please double-check how you’re loading it?

If you want to try mine, here is the DTBO file (it’s going to be available for 3 months): Download - Toradex File Sharing Platform

Here I copied this file to /boot/ostree/<hash>/dtb/overlays and then edited the /boot/ostree/<hash>/dtb/overlays.txt file to include the name of this overlay, apalis-imx8_hmp_overlay.dtbo.

Next, I’ve compiled and loaded the M4 binary called rpmsg_lite_str_echo_rtos_m40.bin inside the multicore example folder.

For more information on how to load your binary, please check these guides:

After rebooting and M4 successfully running, I can see these messages on dmesg:

torizon@apalis-imx8-07204567:~$ dmesg | grep rpmsg
[    0.082549] imx rpmsg driver is registered.
[    2.392342] imx-rpmsg 90000000.rpmsg0: assigned reserved memory node vdevbuffer
[    2.392820] virtio_rpmsg_bus virtio0: rpmsg host is online
[    2.393239] virtio_rpmsg_bus virtio1: rpmsg host is online
[    2.393429] virtio_rpmsg_bus virtio1: creating channel rpmsg-virtual-tty-channel addr 0x1e
[    2.393565] imx-rpmsg 90100000.rpmsg1: assigned reserved memory node vdevbuffer
[    2.422026] virtio_rpmsg_bus virtio2: rpmsg host is online
[    2.452446] virtio_rpmsg_bus virtio3: rpmsg host is online

After loading the driver, I can see the channel has been created and I can send messages and check the echo back:

torizon@apalis-imx8-07204567:~$ sudo modprobe imx_rpmsg_tty
Password: 
torizon@apalis-imx8-07204567:~$ dmesg | grep rpmsg
[    0.082549] imx rpmsg driver is registered.
[    2.392342] imx-rpmsg 90000000.rpmsg0: assigned reserved memory node vdevbuffer
[    2.392820] virtio_rpmsg_bus virtio0: rpmsg host is online
[    2.393239] virtio_rpmsg_bus virtio1: rpmsg host is online
[    2.393429] virtio_rpmsg_bus virtio1: creating channel rpmsg-virtual-tty-channel addr 0x1e
[    2.393565] imx-rpmsg 90100000.rpmsg1: assigned reserved memory node vdevbuffer
[    2.422026] virtio_rpmsg_bus virtio2: rpmsg host is online
[    2.452446] virtio_rpmsg_bus virtio3: rpmsg host is online
[   80.633880] imx_rpmsg_tty virtio1.rpmsg-virtual-tty-channel.-1.30: new channel: 0x400 -> 0x1e!
[   80.634086] Install rpmsg tty driver!
torizon@apalis-imx8-07204567:~$ ls /dev/ | grep -i rpmsg
ttyRPMSG30
torizon@apalis-imx8-07204567:~$ cat /dev/ttyRPMSG30 &
[1] 1500
torizon@apalis-imx8-07204567:~$ echo Toradex > /dev/ttyRPMSG30 
torizon@apalis-imx8-07204567:~$ Toradex

Toradex

Let me know if you have any questions or need help.

Best Regards,
Hiago.