This readme is about the OpenAMP echo_test demo. The echo_test is about one processor sends message to the other one, and the other one echo back the message. The processor which sends the message will verify the echo message.
For now, it implements Linux sends the message, and the baremetal echos back.
Option WITH_ECHO_TEST
is to control if the application will be built. By default this option is ON
when WITH_APPS
is on.
Here is an example:
$ cmake ../open-amp -DCMAKE_TOOLCHAIN_FILE=zynq7_generic -DWITH_OBSOLETE=on -DWITH_APPS=ON
You will need to manually compile the following kernel modules with your Linux kernel (Please refer to Linux kernel documents for how to add kernel module):
obsolete/apps/echo_test/system/linux/kernelspace/rpmsg_user_dev_driver
if you want to run the echo_test app in Linux user space.obsolete/system/linux/kernelspace/rpmsg_echo_test_kern_app
if you want to run the echo_test app in Linux kernel space.obsolete/apps/echo_test/system/linux/userspace/echo_test
into your Linux OS.echo_test
executable to the firmware of your Linux OS.After Linux boots,
rpmsg_echo_test_kern_app
module. You will see the kernel application send the message to remote and the remote reply back and the kernel application will verify the result.rpmsg_user_dev_driver
module.**************************************** Please enter command and press enter key **************************************** 1 - Send data to remote core, retrieve the echo and validate its integrity .. 2 - Quit this application .. CMD>
1
to send packages.2
to exit the application.After you run the demo, you will need to unload the kernel modules.
rpmsg_user_dev_driver
module.rpmsg_echo_test_kern_app
module.