I am trying to get RPMsg working on a iMX8MP with the Yahlia carrier board using TorizonCore 6.2, however no matter what documentation I follow I can’t seem to get it working properly.
The example.dts does not work in its current form, only if I remove the &rpmsg {} block it seems to build and then I can successfully see the dummy test device in the /sys folder.
running sudo modprobe imx-rpmsg-tty gives me nothing.
When I check the driver logs it does seem like the driver is available:
To be able to use the Cortex-M, the proper device tree overlay should be enabled in TorizonCore.
This is verdin-imx8mp_hmp_overlay.dtbo and, as you can read here it has been added to the iMX8M-Plus builds recently.
TorizonCore 6.2 doesn’t have that device tree, and I suggest you to use the last montly 6.3.0-devel-202305+build.7.container.
Please, do not forget to run the commands suggested here otherwise you won’t be able to boot TorizonCore.
The Cortex-M usage has become a quite popular topics in the last few months. If you search on the community, you can find some useful topics.
Please, refer only to recent topics, and not to old ones, since the HMP support has been increaded a lot in the last few weeks.
Thank you! I have managed to deploy the 6.3.0 image with the verdin-imx8mp_hmp_overlay.dtbo overlay successfully. However I am now still at a loss on how to enable rpmsg properly.
Thank you for that thread! I finally got it working now.
Specifically it was important to disable UART4 in the device tree overlay since the example rpmsg_lite_str_echo uses that one by default instead of UART2 where I was looking at.