Re: Simulator, NOR flash file system, MTD

2023-01-29 Thread Alexander Oryshchenko
Hi, Ken, Thanks a lot! -Alexander сб, 28 січ. 2023, 19:18 користувач Ken Pettit пише: > 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

Re: Simulator, NOR flash file system, MTD

2023-01-28 Thread Alan C. Assis
Thank you very much Ken! Alexander, if you got it working and want to help others, please write a guide/tutorial to be included on our Documentation/ It will help others! BR, Alan On 1/28/23, Ken Pettit wrote: > Hi Alexander, > > Great! I hope it works for you. > > It has been many years sin

Re: Simulator, NOR flash file system, MTD

2023-01-28 Thread Ken Pettit
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 imple

Re: Simulator, NOR flash file system, MTD

2023-01-28 Thread Alexander Oryshchenko
Hi Xiang Xiao, Thank you! I've missed 1, didn't notice that we have simulators for a few NOR FLASHs. It is RAM based, but it may be a good point for me to start. -Alexander On Fri, Jan 27, 2023 at 9:47 PM Xiang Xiao wrote: > You can try the follow config directly: > 1.spi flash simulator + sma

Re: Simulator, NOR flash file system, MTD

2023-01-28 Thread Alexander Oryshchenko
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 wrote: > Hey Guys, > > Yes, I had SmartFS r

Re: Simulator, NOR flash file system, MTD

2023-01-27 Thread Ken Pettit
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 wan

Re: Simulator, NOR flash file system, MTD

2023-01-27 Thread Xiang Xiao
You can try the follow config directly: 1.spi flash simulator + smartfs: https://github.com/apache/nuttx/blob/master/arch/sim/src/sim/sim_initialize.c#L59-L225 2.ram mtd + :smartfs/littlefs/nxffs: https://github.com/apache/nuttx/blob/master/boards/sim/sim/sim/src/sim_bringup.c#L157-L238 On Sat, J

Re: Simulator, NOR flash file system, MTD

2023-01-27 Thread Alan C. Assis
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 wrote: > What is the easiest way to use NOR- FFS (SmartFs, Spiffs, LittleFs...) over > host's file? > May be somebody knows NO

Simulator, NOR flash file system, MTD

2023-01-27 Thread Alexander Oryshchenko
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?