hi,
I have been interested in communicating between the a7 and the m4 of my imx7d-pico using RPmsg for a long time.
Today I found that this tutorial: https://www.youtube.com/watch?v=4zMyjaEgj2U&t=1182s
I don’t use mainline linux. I stay using kernel 5.6.xx with libgpiod 1.5
Using libgpiod I want to press a controlled button on a7 and flash an LED (which is waiting for this command) on m4
I was checking the issue link below and I have 2 questions below:
How can I adapt this project: https://hub.mender.io/t/technexion-pico-pi-imx7/136/61
to the nxp forum project (link above) for me to get the following files: mu.c, imx_rpmsg.c, imx_rpmsg_tty.c and/or imx_rpmsg_tty.ko
What is the best way to do RPmsg communication between a7 and m4 using Yocto on a7?
Solved! Go to Solution.
https://www.youtube.com/watch?v=NFyEJXIpq4E
Solved
https://www.youtube.com/watch?v=NFyEJXIpq4E
Solved
Hi NEUBER
one can look at rpmsg description and sources in NXP documentation:
sect.2.8 Remote Processor Messaging, sect.2.8.3 Source Code
and documentation included in FreeRTOS_BSP_iMX7D
Unfortunately mainline linux is not supported by nxp, issue may be posted on meta-fsl-arm mailing list
https://lists.yoctoproject.org/g/meta-freescale
Best regards
igor
hi @igorpadykov
In this video: https://mail.google.com/mail/u/0/?tab=rm&ogbl#all/FMfcgzGkZsrTzPBfwTMTnDdMWlJRQlCW
at 23 minutes and 17 seconds, Diego Suero uses the following files:
../arch/arm/mach-imx/mu.c
../drivers/rpmsg/imx_rpmsg.c
../drivers/rpmsg/imx_rpmsg_tty.c
What are the equivalent files (on mainline linux, one of them seems to be: ../drivers/remoteproc/imx_rproc.c)
so that I can implement RPmsg on mainline linux correctly?
Or is the approach to mainline linux (RPmsg) in imx7d-pico different?
seems Fabio already answered you
Best regards
igor
@igorpadykov I have a last question for you. Fabio strangely stopped answering my last questions, including this one below:
root@imx7d-pico:/sys/class/remoteproc# ls
root@imx7d-pico:/sys/class/remoteproc# pwd
/sys/class/remoteproc
root@imx7d-pico:/sys/class/remoteproc# ls
root@imx7d-pico:/sys/class/remoteproc#
What do I have to do to show devices in this directory there?
empty /sys/class/remoteproc means a) driver is not loaded, b) driver failed to probe, c) driver is not present in kernel, d) driver is disabled by kernel config, e) etc etc
@kef2 I need a more accurate definition that revolves around two factors at most responsible for the absence in the directory.
pwd
/sys/class/remoteproc
root@imx7d-pico:/sys/class/remoteproc# ls
root@imx7d-pico:/sys/class/remoteproc# lsmod
Module Size Used by
root@imx7d-pico:/sys/class/remoteproc#
dmesg command results:
https://gist.github.com/neuberfran/a626ca6eb502ee27be6fd7dda000684a