This buildfile starts up the flash filesystem on an x86 board.
[virtual=x86_64,bios +compress] .bootstrap = { startup-x86 PATH=/proc/boot:/bin procnto } [+script] .script = { devc-con -e -n5 & reopen /dev/con1 devf-abc123 -r -b3 -m2 -u2 -t4 & waitfor /fs0p0 [+session] TERM=qansi PATH=/proc/boot:/bin esh & } [type=link] /tmp=/dev/shmem [type=link] /bin=/fs0p0/bin [type=link] /etc=/fs0p0/etc libc.so libgcc_s.so.1 ldqnx-64.so.2 libsocket.so devf-abc123 devc-con esh
The bootstrap inline file (e.g., .bootstrap) specifies the startup program (startup-x86) and the kernel (procnto). Notice that we set the PATH environment variable to point to both /proc/boot and /bin. The /bin directory is a link (created with the [type=link]) to the flash filesystem's /fs0p0/bin path.
In the script inline file (e.g., .script), we start the console driver with five consoles, reopen standard input, output, and error for /dev/con1, and start the flash filesystem driver devf-abc123. The command-line options we use are:
The devf-abc123 will automatically mount the flash partition as /fs0p0. Notice the process manager symbolic links we created at the bottom of the buildfile:
[type=link] /bin=/fs0p0/bin [type=link] /etc=/fs0p0/etc
These symbolic links give us /bin and /etc from the flash filesystem.
For more information, see devf-generic in the QNX Neutrino Utilities Reference.