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
possibly not impossible) to guarantee the image falls on erase page
boundries within the compiled image.
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.
Ken
On 7/2/23 12:03 PM, Mark Stevens wrote:
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_initialize.S file and I have added simple entries to this file.
What I would like to do is add several files, all less than 1K to the file
system.
I was hoping this could be done outside of the main NuttX tree (prefereably in
my application directory).
Is this achievable?
Regards,
Mark
_____________________________
Blog: blog.thepcsite.co.uk
Twitter: @nevynuk