CV-Bowen opened a new pull request, #4081:
URL: https://github.com/apache/nuttx-apps/pull/4081

   ## Summary
   
   Add `examples/rpmsgchar`, a test program for the rpmsg char driver added
   in apache/nuttx#{nuttxpr}:
   
   - `-t echo`: creates an endpoint through the rpmsg device
     (`/dev/rpmsg/<cpu>`), opens `/dev/rpmsg-<name>` and checks 1000 round
     trips of 12 bytes against an echo service on the peer.
   - `-t destroy`: creates 100 endpoints, does one round trip on each, then
     releases them.
   
   The same source also builds for Linux (`<linux/rpmsg.h>`), so it can test
   a NuttX peer from a Linux host.
   
   Depends on apache/nuttx#{nuttxpr}.
   
   ## Impact
   
   New example, `CONFIG_EXAMPLES_RPMSGCHAR` (depends on `RPMSG_CHAR`),
   default n. No other change.
   
   ## Testing
   
   Host: Ubuntu 22.04.5 LTS x86_64, QEMU version 10.2.1, sim: cc (Ubuntu 
13.1.0-8ubuntu1~22.04) 13.1.0, qemu-armv8a: aarch64-none-elf-gcc (Arm GNU 
Toolchain 12.2.Rel1 (Build arm-12.24)) 12.2.1 20221205
   
   Built with CMake and make on sim:rpserver with `CONFIG_RPMSG_CHAR` and
   `CONFIG_EXAMPLES_RPMSGCHAR`, no warning.
   
   Run on qemu-armv8a:rpserver + rpproxy (rptun ivshmem) against a
   test-only echo server on the proxy; the full setup and logs are in
   apache/nuttx#{nuttxpr}:
   
   | command on the server | result (3 runs) |
   |---|---|
   | `rpmsgchar -t echo -c /dev/rpmsg/proxy -n t0` | `Finish the echo test` |
   | `rpmsgchar -t destroy -c /dev/rpmsg/proxy -n d` | `End the destroy test` |
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to