Skip to content

Commit

Permalink
examples: Zephyr: update rpmsg-multi-service readme
Browse files Browse the repository at this point in the history
Update information around the rpmsg-utils. Add information to check if
the tools is already install or not on the target device.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
  • Loading branch information
arnopo authored and wmamills committed Jun 30, 2024
1 parent 97ca192 commit ae8046b
Showing 1 changed file with 24 additions and 14 deletions.
38 changes: 24 additions & 14 deletions examples/zephyr/rpmsg_multi_services/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -237,26 +237,36 @@ Demo

1. Prerequisite

Due to a limitation in the rpmsg protocol, the zephyr does not know the existence of the
/dev/ttyRPMG0 until the Linux sends it a first message. Creating a new channel before this first one
is well establish leads to bad endpoints association. To avoid this, just send a message on
/dev/ttyRPMSG0
* Due to a limitation in the rpmsg protocol, the zephyr does not know the existence of the
/dev/ttyRPMG0 until the Linux sends it a first message. Creating a new channel before this first one
is well establish leads to bad endpoints association. To avoid this, just send a message on
/dev/ttyRPMSG0

.. code-block:: console
.. code-block:: console
root@linuxshell: cat /dev/ttyRPMSG0 &
root@linuxshell: echo "Hello Zephyr" >/dev/ttyRPMSG0
TTY 0: Hello Zephyr
root@linuxshell: cat /dev/ttyRPMSG0 &
root@linuxshell: echo "Hello Zephyr" >/dev/ttyRPMSG0
TTY 0: Hello Zephyr
Download `rpmsg-utils <https://github.com/OpenAMP/openamp-system-reference/tree/main/examples/linux/rpmsg-utils>`_
tools relying on the /dev/rpmsg_ctrl, and compile it in an arm environment
using make instruction and install it on target.
* Check if the rpmsg-utils tools are installed on your platform.

optional: enable rpmsg bus trace to observe RPmsg in kernel trace:
.. code-block:: console
.. code-block:: console
root@linuxshell: rpmsg_ping
* If the rpmsg_ping application does not exist:

* Download `rpmsg-utils <https://github.com/OpenAMP/openamp-system-reference/tree/main/examples/linux/rpmsg-utils>`_
tools
* Cross-compile it and install it on the target device.


* optional: enable rpmsg bus trace to observe RPmsg in kernel trace:

.. code-block:: console
root@linuxshell: echo -n 'file virtio_rpmsg_bus.c +p' > /sys/kernel/debug/dynamic_debug/control
root@linuxshell: echo -n 'file virtio_rpmsg_bus.c +p' > /sys/kernel/debug/dynamic_debug/control
2. create a new TTY channel

Expand Down

0 comments on commit ae8046b

Please sign in to comment.