The source files are organized as follows:
The following pathnames apply to the flash filesystems:
Pathname | Description |
---|---|
${QNX_TARGET}/usr/include/sys | Header file f3s_mtd.h. |
${QNX_TARGET}/usr/include/fs | Header files f3s_api.h, f3s_socket.h, and f3s_flash.h. |
${QNX_TARGET}/${PROCESSOR}/lib | Libraries for flash filesystem and flash services. |
bsp_working_dir/src/hardware/flash/boards | Source code for socket services. |
bsp_working_dir/src/hardware/flash/mtd-flash | Source code for flash services as well as for probe routine and helper functions. |
Before you modify any source, you should:
For example, to create a driver called myboard based on the 800FADS board example, you would:
cd bsp_working_dir/hardware/flash/boards mkdir myboard cp -cRv 800fads myboard cd myboard make clean
The copy command (cp) specifies a recursive copy (the -R option). This will copy all files from the specified source directory including the subdirectory indicating which CPU this driver should be built for. In our example above, the 800fads directory has a ppc subdirectory — this will cause the new driver (myboard in our example) to be built for the PowerPC.