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, the ROMFS filesystem is mounted at /etc/ automatically by
NSH based on NSH configuration settings.
In the KERNEL build mode, all apps are built as executable ELF files in
an a bin/ directory (but no file system is created). A directory like
that populated with ELF executables could be provided on any media for a
target file system.
On 7/2/2023 1: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