On Tue, Jul 25, 2023 at 10:48 PM Ed Sutter <edsutte...@gmail.com> wrote:

> Xiang,
> Thanks for your responses.
> I'm still trying to get my head around OpenAMP, RPMSG and RPTUN.
>
> I see RPMSG mentioned almost everywhere OpenAMP is discussed; however, no
> mention of RPTUN.  Is RPTUN something unique to Nuttx or is it actually
> part of OpenAMP?
>
>
Yes, RPTUN is specific to NuttX, which include:

   1. Implement remoteproc_ops and image_store_ops
   2. Add new API to bind rpmsg device and driver

 Basically, RRPTUN converts OpenAMP porting interface to match NuttX driver
model(e.g. file base) and provides the stock implementation.

I've already got M7-A53 communication hacked-in-but-working using NXP's
> RPMSG-lite.  I believe all I need beyond what I have is to make the
> interface look like a bi-directional serial port in Nuttx,


rpmsg serial driver is based on OpenAMP rpmsg API plus the extension from
RPTUN. Since it provides the standard serial driver interface, you can use
it directly to access nsh on remote core.


> so I'm not sure I need RPTUN.
>
>
Yes, you need implement  rptun_ops for OpenAMP integration.


> Or maybe I'm just not getting it and RPTUN is a layer below RPMSG???
>

RPTUN is a bridge between rpmsg/remoteproc and nuttx.


> Ed

Reply via email to