Hi, Ken,

Thanks a lot!

-Alexander

сб, 28 січ. 2023, 19:18 користувач Ken Pettit <petti...@gmail.com> пише:

> Hi Alexander,
>
> Great!  I hope it works for you.
>
> It has been many years since I wrote the Linux FUSE filesystem for
> SmartFS, but I believe HostFS + file_there + filemtd + SmartFS is
> exactly how I tested it.  Use that setup to create the host file, then
> use that file to test the Linux FUSE implementation of SmartFS.  In
> fact, I'm pretty sure that was exactly why I wrote the filemtd
> implementation to begin with.
>
> Ken
>
> On 1/28/23 2:25 AM, Alexander Oryshchenko wrote:
> > Hi Alan, Ken!
> >
> > Thanks!
> > Looks that HostFS + file_there + filemtd + ... may do what I need.
> > In general I need to have file on the host which is organized like NOR
> > FLASH (256b write pages, 4k erase).
> >
> > -Alexander
> >
> >
> > On Fri, Jan 27, 2023 at 9:58 PM Ken Pettit <petti...@gmail.com> wrote:
> >
> >> Hey Guys,
> >>
> >> Yes, I had SmartFS running in the simulator at one point, but it was
> >> backed by a big char array.  But I'm trying to understand the use case
> >> ... are you jsut looking for a file system in the simulator to use for
> >> testing an application?  Are you looking for host backed because you
> >> want data to be persistent in the simulator from run to run?  Do you
> >> specifically want to test out NOR flash access type access?  On the
> >> host, does the data need to be in a single file or can it just be in a
> >> directory?
> >>
> >> Because I also wrote a full FS (HostFS) that gives a host backed
> >> filesystem in NuttX, but it works by publishing a host directory to
> >> NuttX, and doesn't really simulate Flash / NOR.  So it depends if you
> >> are specifically looking to implement it as a pseudo NOR flash, if you
> >> are wanting the FS to end up in a single file on the host that looks
> >> like a NOR device, etc.
> >>
> >> If you specifically want NOR simulation that ends up in a single Host
> >> file, then you could probably setup HostFS and then setup SmartFS (or
> >> LittleFs, etc.) to work with an MTD device that is backed by  file MTD
> >> with the file residing in the HostFS mount.
> >>
> >> Also note that if you follow that approach and use SmartFS, I also wrote
> >> a FUSE filesystem for Linux that allows it to natively mount a SmartFS
> >> filesystem contained in a file.
> >>
> >> Ken
> >>
> >> On 1/27/23 11:55 AM, Alan C. Assis wrote:
> >>> Hi Alexander,
> >>>
> >>> Some time ago Ken Pettit wrote a SmartFS simulator.
> >>>
> >>> If I'm not wrong it could be used with NuttX SIM(ulator).
> >>>
> >>> BR,
> >>>
> >>> Alan
> >>>
> >>> On 1/27/23, Alexander Oryshchenko <a.oryshche...@gmail.com> wrote:
> >>>> What is the easiest way to use NOR- FFS (SmartFs, Spiffs, LittleFs...)
> >> over
> >>>> host's file?
> >>>> May be somebody knows NOR FLASH simulator for Linux?
> >>>> Any other way?
> >>>>
> >>
>
>

Reply via email to