summaryrefslogtreecommitdiff
path: root/nuttx/examples/nsh/README.txt
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-03-08 00:27:35 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-03-08 00:27:35 +0000
commit8f66f424602e26f0a43a62beaa3c2aec7775c890 (patch)
tree28249f121ebc9fd071e24222304b4c0770b6fd86 /nuttx/examples/nsh/README.txt
parentddd126cb2969bec42a4430b7d8fcdd45de4a42c1 (diff)
downloadpx4-nuttx-8f66f424602e26f0a43a62beaa3c2aec7775c890.tar.gz
px4-nuttx-8f66f424602e26f0a43a62beaa3c2aec7775c890.tar.bz2
px4-nuttx-8f66f424602e26f0a43a62beaa3c2aec7775c890.zip
Add support for platoform specific ROMFS startup files
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3350 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples/nsh/README.txt')
-rw-r--r--nuttx/examples/nsh/README.txt25
1 files changed, 18 insertions, 7 deletions
diff --git a/nuttx/examples/nsh/README.txt b/nuttx/examples/nsh/README.txt
index ee3a42de2..ab44cbaeb 100644
--- a/nuttx/examples/nsh/README.txt
+++ b/nuttx/examples/nsh/README.txt
@@ -159,15 +159,16 @@ Modifying the ROMFS Image
-------------------------
The contents of the /etc directory are retained in the file
-examples/nsh/nsh_romfsimg.h. In order to modify the start-up
-behavior, there are three things to study:
+examples/nsh/nsh_romfsimg.h (OR, if CONFIG_EXAMPLES_NSH_ARCHROMFS
+is defined, include/arch/board/rcs.template). In order to modify
+the start-up behavior, there are three things to study:
1. Configuration Options.
The additional CONFIG_EXAMPLES_NSH_ROMFSETC configuration options
discussed in the final section of this README.
-2. mkromfsimg.sh Script.
- The script examples/nsh/mkromfsimg.sh creates nsh_romfsimg.h.
+2. tools/mkromfsimg.sh Script.
+ The script tools/mkromfsimg.sh creates nsh_romfsimg.h.
It is not automatically executed. If you want to change the
configuration settings associated with creating and mounting
the /tmp directory, then it will be necessary to re-generate
@@ -175,15 +176,25 @@ behavior, there are three things to study:
The behavior of this script depends upon three things:
- - The configuration settings then installed configuration.
+ - The configuration settings of the installed NuttX configuration.
- The genromfs tool (available from http://romfs.sourceforge.net).
- - The file examples/nsh/rcS.template.
+ - The file examples/nsh/rcS.template (OR, if
+ CONFIG_EXAMPLES_NSH_ARCHROMFS is defined, include/arch/board/rcs.template)
3. rcS.template.
The file examples/nsh/rcS.template contains the general form
- of the rcS file; configurated values are plugged into this
+ of the rcS file; configured values are plugged into this
template file to produce the final rcS file.
+NOTE:
+
+ examples/nsh/rcS.template generates the standard, default
+ nsh_romfsimg.h file. If CONFIG_EXAMPLES_NSH_ARCHROMFS is defined
+ in the NuttX configuration file, then a custom, board-specific
+ nsh_romfsimg.h file residing in configs/<board>/include will be
+ used. NOTE when the OS is configured, include/arch/board will
+ be linked to configs/<board>/include.
+
All of the startup-behavior is contained in rcS.template. The
role of mkromfsimg.sh is to (1) apply the specific configuration
settings to rcS.template to create the final rcS, and (2) to