Re: Prebuilt SmartFS file system (Pico)

2023-07-02 Thread Mark Stevens
I’m just after a read-only file system. I am basically trying to add some preconfigured files to the system and then give the user the ability to select a file from a list. Long term I’m thinking about uploading of files but not at the moment. Regards, Mark _ Blog:

Re: Prebuilt SmartFS file system (Pico)

2023-07-02 Thread Gregory Nutt
But it would be possible to create a pre-build SmartFS image using the FUSE filesystem under Linux, and then include that image as a binary blob into your application ... you would just have to ensure all the MTD access and alignment are taken care of. Your FUSE filesystem has been lost in

Re: Prebuilt SmartFS file system (Pico)

2023-07-02 Thread Gregory Nutt
There are  several examples using a ROMFS file system in apps/ and nuttx/boards/.  There is one at nuttx/boards/sim/sim/sim/src/etctmp with build logic that generates nuttx/boards/sim/sim/sim/src/etctmp.c. Normally, you would probably have to mount the filesystem yourself, but in this case, th

Re: Prebuilt SmartFS file system (Pico)

2023-07-02 Thread Kenneth Pettit
Hi Mark, Do you need the FS to be writeable?  If not, then a ROMFS is probably a better choice.  If you need a writable FS, then adding a SmartFS to the compiled image would be difficult ... the SMART and MTD layers need to erase on page boundries, and I think it would be challenging (though

Prebuilt SmartFS file system (Pico)

2023-07-02 Thread Mark Stevens
I am looking at adding a small file system to my application and I would like to add a number of files to the image as part of the build. I have configured the build using the raspberrypi-pico-w:nsh-flash configuration and I think I have figured out how t add files by editing the rp2040_flash_i