diff --git a/Documentation/NuttShell.html b/Documentation/NuttShell.html
index 9418056eb9e..c873c79b95f 100644
--- a/Documentation/NuttShell.html
+++ b/Documentation/NuttShell.html
@@ -1,6 +1,6 @@
-NuttX
+NuttShell
@@ -149,127 +149,133 @@
|
- 2.12 List Directory Contents (ls)
+ 2.12 Setup/teardown the Loop Device (losetup)
|
|
- 2.13 Access Memory (mb, mh, and mw)
+ 2.13 List Directory Contents (ls)
|
|
- 2.14 Show Memory Manager Status (mem)
+ 2.14 Access Memory (mb, mh, and mw)
|
|
- 2.15 Show Current Tasks and Threads (ps)
+ 2.15 Show Memory Manager Status (mem)
|
|
- 2.16 Create a Directory (mkdir)
+ 2.16 Show Current Tasks and Threads (ps)
|
|
- 2.17 Create a FAT Filesystem (mkfatfs)
+ 2.17 Create a Directory (mkdir)
|
|
- 2.18 Create a FIFO (mkfifo)
+ 2.18 Create a FAT Filesystem (mkfatfs)
|
|
- 2.19 Create a RAMDISK (mkrd)
+ 2.19 Create a FIFO (mkfifo)
|
|
- 2.20 Mount a File System (mount)
+ 2.20 Create a RAMDISK (mkrd)
|
|
- 2.21 Check Network Peer (ping)
+ 2.21 Mount a File System (mount)
|
|
- 2.22 Send File Via TFTP (put)
+ 2.22 Check Network Peer (ping)
|
|
- 2.23 Show Current Working Directory (pwd)
+ 2.23 Send File Via TFTP (put)
|
|
- 2.24 Remove a File (rm)
+ 2.24 Show Current Working Directory (pwd)
|
|
- 2.25 Remove a Directory (rmdir)
+ 2.25 Remove a File (rm)
|
|
- 2.26 Set an Environment Variable (set)
+ 2.26 Remove a Directory (rmdir)
|
|
- 2.27 Execute an NSH Script (sh)
+ 2.27 Set an Environment Variable (set)
|
|
- 2.28 Wait for Seconds (sleep)
+ 2.28 Execute an NSH Script (sh)
|
|
- 2.29 Unmount a File System (umount)
+ 2.29 Wait for Seconds (sleep)
|
|
- 2.30 Unset an Environment Variable (unset)
+ 2.30 Unmount a File System (umount)
|
|
- 2.31 Wait for Microseconds (usleep)
+ 2.31 Unset an Environment Variable (unset)
|
|
- 2.32 Hexadecimal Dump (xd)
+ 2.32 Wait for Microseconds (usleep)
+ |
+
+
+
|
+
+ 2.33 Hexadecimal Dump (xd)
|
@@ -936,7 +942,33 @@ eth0 HWaddr 00:18:11:80:10:06
+
+Command Syntax 1:
+
+losetup [-o ] [-r] <dev-path> <file-path>
+
+
+ Synopsis.
+ Setup the loop device at <dev-path> to access the file at <file-path> as a block device:
+
+
+Command Syntax 2:
+
+losetup d <dev-path>
+
+
+ Synopsis.
+ Teardown the setup for the loop device at <dev-path>.
+
+
+
@@ -973,7 +1005,7 @@ ls [-lRs] <dir-path>
@@ -1027,7 +1059,7 @@ nsh>
@@ -1076,7 +1108,7 @@ nsh>
@@ -1102,7 +1134,7 @@ nsh>
@@ -1137,7 +1169,7 @@ nsh>
@@ -1157,7 +1189,7 @@ mkfatfs <path>
@@ -1195,7 +1227,7 @@ nsh>
@@ -1246,7 +1278,7 @@ nsh>
@@ -1313,7 +1345,7 @@ nsh>
@@ -1346,7 +1378,7 @@ nsh>
@@ -1381,7 +1413,7 @@ put [-b|-n] [-f <remote-path>] -h <ip-address> <local-path>
@@ -1411,7 +1443,7 @@ nsh>
@@ -1445,7 +1477,7 @@ nsh>
@@ -1480,7 +1512,7 @@ nsh>
@@ -1506,7 +1538,7 @@ nsh>
@@ -1524,7 +1556,7 @@ sh <script-path>
@@ -1541,7 +1573,7 @@ sleep <sec>
@@ -1571,7 +1603,7 @@ nsh>
@@ -1597,7 +1629,7 @@ nsh>
@@ -1614,7 +1646,7 @@ usleep <usec>
@@ -1733,6 +1765,11 @@ nsh>
CONFIG_NET |
CONFIG_EXAMPLES_NSH_DISABLE_IFCONFIG |
+
+ losetup |
+ !CONFIG_DISABLE_MOUNTPOINT && CONFIG_NFILE_DESCRIPTORS > 0 |
+ CONFIG_EXAMPLES_NSH_DISABLE_LOSETUP |
+
ls |
CONFIG_NFILE_DESCRIPTORS > 0 |
@@ -2159,6 +2196,7 @@ nsh>
help
if-then[-else]-fi
ifconfig
+ losetup
ls
mb
mh
diff --git a/Documentation/NuttX.html b/Documentation/NuttX.html
index a26f2e55e8c..6bb9c58c3d6 100644
--- a/Documentation/NuttX.html
+++ b/Documentation/NuttX.html
@@ -1195,7 +1195,8 @@ nuttx-0.3.18 2008-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr>
into very small memory footprints.
* Added a block to character (BCH) driver. This is kind of the reverse of the loop
device; it allows you access a block device like a character device.
- * NSH: Added 'dd' command
+ * NSH: Added the 'dd' command
+ * NSH: Added the 'losetup' command
pascal-0.1.3 2008-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr>