aboutsummaryrefslogtreecommitdiff
path: root/nuttx/configs
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-17 20:25:32 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-17 20:25:32 +0000
commit2f653578c632ec95e94f67306af24c7d82700d28 (patch)
tree0944393494ed93baac50c117a4670a84c7e20039 /nuttx/configs
parent19e43efe230a2b8720d98cba5a6ad156942e291f (diff)
downloadpx4-firmware-2f653578c632ec95e94f67306af24c7d82700d28.tar.gz
px4-firmware-2f653578c632ec95e94f67306af24c7d82700d28.tar.bz2
px4-firmware-2f653578c632ec95e94f67306af24c7d82700d28.zip
Misc bug fixes related to NSH file execution
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5530 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs')
-rw-r--r--nuttx/configs/sim/README.txt33
1 files changed, 25 insertions, 8 deletions
diff --git a/nuttx/configs/sim/README.txt b/nuttx/configs/sim/README.txt
index 67ff73019..963a46e08 100644
--- a/nuttx/configs/sim/README.txt
+++ b/nuttx/configs/sim/README.txt
@@ -291,14 +291,31 @@ nsh
apps/examples/hello.
3. This configuration has BINFS enabled so that the builtin applications
- can be made visible in the file system. For example:
-
- NuttShell (NSH) NuttX-6.24
- nsh> mount -t binfs /bin
- nsh> ls /bin
- /bin:
- hello
- nsh>
+ can be made visible in the file system. Because of that, the
+ build in applications do not work as other examples.
+
+ For example trying to execute the hello builtin application will
+ fail:
+
+ nsh> hello
+ nsh: hello: command not found
+ nsh>
+
+ Unless you first mount the BINFS file system:
+
+ nsh> mount -t binfs /bin
+ nsh> ls /bin
+ /bin:
+ hello
+ nsh> echo $PATH
+ /bin
+ nsh> hello
+ Hello, World!!
+ nsh>
+
+ Notice that the executable 'hello' is found using the value in the PATH
+ variable (which was preset to "/bin"). If the PATH variable were not set
+ then you would have to use /bin/hello on the command line.
nsh2