RPMsg FS on NuttX and Linux

2024-06-25 Thread Andre Heinemans
Hi,

I am searching for a solution to share a disk or directory on a Linux host and 
make it accessible in NuttX through RPMsg. It looks like CONFIG_FS_RPMSGFS is 
the feature I need. According to this NuttX channel video 
(https://www.youtube.com/watch?v=-YLAQlJR1vA)  various RPMsg services in Nuttx 
are supported in Linux including RPMsg FS.

So, I tried setting this up but couldn’t find the correct linux module that is 
able to interact with this service.

When I try to mount a directory with
nsh> mount -t rpmsgfs -o cpu=netcore,fs=/mnt /mnt

Some interaction happens. See linux dmesg log:
[   61.086471] virtio_rpmsg_bus virtio0: creating channel rpmsgfs-0x2000c1c8 
addr 0x401

But it seems no linux driver is listening to that channel. When I try to access 
the mounted directory in NuttX then nsh freezes.

What do I need to do on Linux to support this service? Do I maybe need a patch 
or a different fork?

Kind regards,
Andre


Re: RPMsg FS on NuttX and Linux

2024-06-25 Thread Xiang Xiao
rpmsg_fs isn't upstreamed to the Linux community yet. Bowen could give you
a patch to try.

On Tue, Jun 25, 2024 at 8:44 PM Andre Heinemans 
wrote:

> Hi,
>
> I am searching for a solution to share a disk or directory on a Linux host
> and make it accessible in NuttX through RPMsg. It looks like
> CONFIG_FS_RPMSGFS is the feature I need. According to this NuttX channel
> video (https://www.youtube.com/watch?v=-YLAQlJR1vA)  various RPMsg
> services in Nuttx are supported in Linux including RPMsg FS.
>
> So, I tried setting this up but couldn’t find the correct linux module
> that is able to interact with this service.
>
> When I try to mount a directory with
> nsh> mount -t rpmsgfs -o cpu=netcore,fs=/mnt /mnt
>
> Some interaction happens. See linux dmesg log:
> [   61.086471] virtio_rpmsg_bus virtio0: creating channel
> rpmsgfs-0x2000c1c8 addr 0x401
>
> But it seems no linux driver is listening to that channel. When I try to
> access the mounted directory in NuttX then nsh freezes.
>
> What do I need to do on Linux to support this service? Do I maybe need a
> patch or a different fork?
>
> Kind regards,
> Andre
>