Building a flash filesystem image
If your application requires a writable filesystem and you have flash memory devices on your embedded system, you can use a QNX OS flash filesystem driver to provide a POSIX-compatible filesystem.
Combining files into a flash filesystem can simplify copies onto your target system. Instead of copying each file individually, once you have used mkefs to build the filesystem, you need only one instruction to move the image over, instead of for example, a script that must name every file and its path.
- Create a flash filesystem image file on the host system, then write the image
into the flash on the target (see
Making flash filesystems
). - Run the flash filesystem driver for your target system, then copy files into the flash filesystem on the target (see the note below).
In this section we describe how to use the mkefs (for make embedded filesystem) utility and a buildfile to create a flash filesystem image file (.efs). After you have built the flash filesystem image, you can combine this image with the bootable OS image into a single image, which you can then copy onto your target system.
Making flash filesystems
If you change the size or the configuration of the flash on your target (number of parts, size of parts, type of parts, interleave, etc.) you need to remake your flash filesystem.
- Go to your BSP's directory.
- In the command line, type make.
Combined IPL-IFS imagesin the USing QNX BSPs chapter).