Re: RPMsg FS on NuttX and Linux

2024-06-26 Thread Bowen Wang
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
> >
>


Re: Installing apps dynamically in runtime

2024-06-26 Thread Gábor Kiss-Vámosi
Thank you Alan! We are on it and will report back soon.

Alan C. Assis  ezt írta (időpont: 2024. jún. 21., P,
17:57):

> Hi Gábor,
>
> I created a video tutorial explaining how to do that:
>
> https://www.youtube.com/watch?v=oL6KAgkTb8M
>
> At that time NuttX had support only for ELF executable, now it also has
> support for ELF libraries (work done by WildernessLabs and improved by
> Xiaomi).
>
> About the idea of a NuttX distribution that you commented at NuttX Int.
> Workshop, I investigated a little bit about package management tools that
> could be used on NuttX.
>
> Unfortunately ipkg/opkg are GPL so we cannot use it for commercial
> products. There is the pkgin from NetBSD that is almost what we need, but
> it uses SQLite and although we have SQLite integrated in our apps/ I think
> it is too big for some low end microcontrollers.
>
> I think we will need to implement it ourselves, looking at pkgin I see it
> is not so complicated to implement and we need something simpler.
>
> Best Regards,
>
> Alan
>
> On Fri, Jun 21, 2024 at 6:50 AM Gábor Kiss-Vámosi 
> wrote:
>
> > Hi,
> >
> > A smartwatch manufacturer company wants to dynamically add/remove apps at
> > runtime on their MCU based devices . Similarly to how it works on
> > smartphones.
> >
> > Example: The user wants to extend the smartwatch with an Alarm clock app.
> > On Linux we just needed to copy the binary to the watch and it could be
> > launched with any number of instances. With NuttX can we  extend the
> > application which is already flashed? We can assume that all the required
> > libraries (UI, communication, drivers etc) are already there and there
> is a
> > stable ABI.
> >
>