Hi,

The automatic mount of the ROMFS assumes that it is stored at a predefined location in the board config, that it will be mounted at /etc, and that it is mounted for the goal of using rc scripts, which may not be the case at all.

I have a changes in my local apps directory that decouples things and makes it much easier to use, that can be turned in a patch for the apps repository.

I have time for this if another developer is interested.

I suggest that Mark contacts me in direct email (or on list) so we can share this, test it, and contribute it to upstream nuttx-apps. It is not done yet because I dont keep in sync with upstream apps very often, so it has to be done first.

Sebastien


Le 02/07/2023 à 21:27, Gregory Nutt a écrit :
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







Reply via email to