RE: [EXT] Re: RPMsg FS on NuttX and Linux
Hi Bowen, It seems that the attachment didn’t come through. Could you send them again? For us it is sufficient that Linux can host the server side. The goal is to supply some storage space to Nuttx and our system (i.MX95) does not have any physical storage attached to the NuttX core. Kind regards, Andre From: Bowen Wang Sent: Thursday, 27 June 2024 11:26 To: dev@nuttx.apache.org Subject: Re: [EXT] Re: RPMsg FS on NuttX and Linux Caution: This is an external email. Please take care when clicking links or opening attachments. When in doubt, report the message using the 'Report this email' button Hi Andre, The attachment is the patch for rpmsgfs, we only implement the rpmsgfs server side in linux for now, rpmsgfs client side in linux is still under development. So we can access the Linux‘s file system in NuttX, but in Linux, we can't mount the Vela's file system. Kind regards, Wang Bowen Andre Heinemans mailto:andre.heinem...@nxp.com>> 于2024年6月27日周四 17:12写道: Hi Bowen, I am using 6.6.3. But it would be okay for me if I receive the patches for version 5.15. I will try to adapt them. Thanks in advance! Kind regards, Andre -Original Message- From: Bowen Wang mailto:bowenwa...@gmail.com>> Sent: Thursday, 27 June 2024 03:46 To: dev@nuttx.apache.org<mailto:dev@nuttx.apache.org> Subject: [EXT] Re: RPMsg FS on NuttX and Linux Caution: This is an external email. Please take care when clicking links or opening attachments. When in doubt, report the message using the 'Report this email' button Hi, Andre Which Linux version are you using? We have adapted RPMSGFS on 5.4 and 5.15. We are not sure if it meets your requirements. Kind regards, Wang Bowen Xiang Xiao mailto:xiaoxiang781...@gmail.com>> 于2024年6月25日周二 22:47写道: > 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 > mailto:andre.heinem...@nxp.com>> > 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 > > >
RE: [EXT] Re: RPMsg FS on NuttX and Linux
Hi Bowen, I am using 6.6.3. But it would be okay for me if I receive the patches for version 5.15. I will try to adapt them. Thanks in advance! Kind regards, Andre -Original Message- From: Bowen Wang Sent: Thursday, 27 June 2024 03:46 To: dev@nuttx.apache.org Subject: [EXT] Re: RPMsg FS on NuttX and Linux Caution: This is an external email. Please take care when clicking links or opening attachments. When in doubt, report the message using the 'Report this email' button Hi, Andre Which Linux version are you using? We have adapted RPMSGFS on 5.4 and 5.15. We are not sure if it meets your requirements. Kind regards, Wang Bowen Xiang Xiao 于2024年6月25日周二 22:47写道: > 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 > > >
RPMsg FS on NuttX and Linux
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: [EXT] Re: uart rpmsg driver compatibility
Thanks! I got it to work on the imx8mp. Do you know if there are any plans to upstream this driver to mainline linux? Kind regards, Andre From: Bowen Wang Sent: Tuesday, 12 March 2024 05:36 To: dev@nuttx.apache.org Subject: [EXT] Re: uart rpmsg driver compatibility Hi, The attachments are the rpmsg-tty patches based on linux LTS 5.15. If you have any problems, feel free to contact me. Regards, Bowen Wang Xiang Xiao <mailto:xiaoxiang781...@gmail.com> 于2024年3月11日周一 23:43写道: On Mon, Mar 11, 2024 at 11:13 PM Andre Heinemans <mailto:andre.heinem...@nxp.com> wrote: > Hi, > > Does the NuttX uart_rpmsg.c driver have a Linux counterpart to interact > with? Yes, the old version is here: https://lore.kernel.org/lkml/CAH2Cfb87Wacgsh=xz9h9kgwygbkxnbdbcdj4w3ups2likbt...@mail.gmail.com/ > I want to achieve a virtual uart connection through rpmsg on an imx8mp > between NuttX (m7) and Linux (a53). > The tty_rpmsg.c driver in mainline linux does not seem compatible as it > read and writes the raw data directly from the rpmsg buffers. The mainline version comes from ST developer, which lacks of the flow control and very easy to lose the data with the fast transaction. > Whereas the NuttX driver uses a struct ‘uart_rpmsg_write_s’ which contains > the raw data in one of its fields. > > We renewed the rpmsg tty driver on top of Linux 5.14 recently, which works perfectly with the NuttX mainline rpmsg_uart driver. Bowen could share the implementation tomorrow. > Kind regards, > Andre >
uart rpmsg driver compatibility
Hi, Does the NuttX uart_rpmsg.c driver have a Linux counterpart to interact with? I want to achieve a virtual uart connection through rpmsg on an imx8mp between NuttX (m7) and Linux (a53). The tty_rpmsg.c driver in mainline linux does not seem compatible as it read and writes the raw data directly from the rpmsg buffers. Whereas the NuttX driver uses a struct ‘uart_rpmsg_write_s’ which contains the raw data in one of its fields. Kind regards, Andre