Update NSH documentation to include module commands
This commit is contained in:
parent
6445803330
commit
e6133792e4
@ -8,7 +8,7 @@
|
||||
<tr align="center" bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<h1><big><font color="#3c34ec"><i>NuttShell (NSH)</i></font></big></h1>
|
||||
<p>Last Updated: November 28, 2015</p>
|
||||
<p>Last Updated: December 13, 2015</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -85,7 +85,7 @@
|
||||
<td>
|
||||
<a href="#commands">2.0 Commands</a>.
|
||||
</td>
|
||||
</tr>
|
||||
</tr>>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
@ -239,199 +239,217 @@
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdkill">2.26 Send a signal to a task (kill)</a>
|
||||
<a href="#cmdinsmod">2.26 Install an OS module (insmod)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdlosetup">2.27 Setup/teardown the Loop Device (losetup)</a>
|
||||
<a href="#cmdkill">2.27 Send a signal to a task (kill)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdls">2.28 List Directory Contents (ls)</a>
|
||||
<a href="#cmdlosetup">2.28 Setup/teardown the Loop Device (losetup)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdmd5">2.29 Calculate MD5 (md5)</a>
|
||||
<a href="#cmdls">2.29 List Directory Contents (ls)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdmbhw">2.30 Access Memory (mb, mh, and mw)</a>
|
||||
<a href="#cmdlsmod">2.30 Show information about installed OS modules (lsmod)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdps">2.31 Show Current Tasks and Threads (ps)</a>
|
||||
<a href="#cmdmd5">2.31 Calculate MD5 (md5)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdmkdir">2.32 Create a Directory (mkdir)</a>
|
||||
<a href="#cmdmbhw">2.32 Access Memory (mb, mh, and mw)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdmkfatfs">2.33 Create a FAT Filesystem (mkfatfs)</a>
|
||||
<a href="#cmdps">2.33 Show Current Tasks and Threads (ps)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdmkfifo">2.34 Create a FIFO (mkfifo)</a>
|
||||
<a href="#cmdmkdir">2.34 Create a Directory (mkdir)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdmkrd">2.35 Create a RAMDISK (mkrd)</a>
|
||||
<a href="#cmdmkfatfs">2.35 Create a FAT Filesystem (mkfatfs)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdmount">2.36 Mount a File System (mount)</a>
|
||||
<a href="#cmdmkfifo">2.36 Create a FIFO (mkfifo)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdmv">2.37 Rename a File (mv)</a>
|
||||
<a href="#cmdmkrd">2.37 Create a RAMDISK (mkrd)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdnfsmount">2.38 Mount an NFS file system (nfsmount)</a>
|
||||
<a href="#cmdmount">2.38 Mount a File System (mount)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdnslookup">2.39 Lookup a network address (nslookup)</a>
|
||||
<a href="#cmdmv">2.39 Rename a File (mv)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdping">2.40 Check Network Peer (ping/ping6)</a>
|
||||
<a href="#cmdnfsmount">2.40 Mount an NFS file system (nfsmount)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdpoweroff">2.41 Shut the system down (poweroff)</a>
|
||||
<a href="#cmdnslookup">2.41 Lookup a network address (nslookup)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdput">2.42 Send File Via TFTP (put)</a>
|
||||
<a href="#cmdping">2.42 Check Network Peer (ping/ping6)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdpwd">2.43 Show Current Working Directory (pwd)</a>
|
||||
<a href="#cmdpoweroff">2.43 Shut the system down (poweroff)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdreboot">2.44 Reset and reboot the system (reboot)</a>
|
||||
<a href="#cmdput">2.44 Send File Via TFTP (put)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdrm">2.45 Remove a File (rm)</a>
|
||||
<a href="#cmdpwd">2.45 Show Current Working Directory (pwd)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdrmdir">2.46 Remove a Directory (rmdir)</a>
|
||||
<a href="#cmdreboot">2.46 Reset and reboot the system (reboot)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdset">2.47 Set an Environment Variable (set)</a>
|
||||
<a href="#cmdrm">2.47 Remove a File (rm)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdsh">2.48 Execute an NSH Script (sh)</a>
|
||||
<a href="#cmdrmdir">2.48 Remove a Directory (rmdir)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdshutdown">2.49 Shut the system down (shutdown)</a>
|
||||
<a href="#cmdrmmod">2.49 Remove on OS Module (rmmod)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdsleep">2.50 Wait for Seconds (sleep)</a>
|
||||
<a href="#cmdset">2.50 Set an Environment Variable (set)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdunmount">2.51 Unmount a File System (umount)</a>
|
||||
<a href="#cmdsh">2.51 Execute an NSH Script (sh)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmduname">2.52 Print system information (uname)</a>
|
||||
<a href="#cmdshutdown">2.52 Shut the system down (shutdown)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdunset">2.53 Unset an Environment Variable (unset)</a>
|
||||
<a href="#cmdsleep">2.53 Wait for Seconds (sleep)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdurldec">2.54 URL Decode (urldecode)</a>
|
||||
<a href="#cmdunmount">2.54 Unmount a File System (umount)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdurlencode">2.55 URL Encode (urlencode)</a>
|
||||
<a href="#cmduname">2.55 Print system information (uname)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdusleep">2.56 Wait for Microseconds (usleep)</a>
|
||||
<a href="#cmdunset">2.56 Unset an Environment Variable (unset)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdwget">2.57 Get File Via HTTP (wget)</a>
|
||||
<a href="#cmdurldec">2.57 URL Decode (urldecode)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdxd">2.58 Hexadecimal Dump of Memory (xd)</a>
|
||||
<a href="#cmdurlencode">2.58 URL Encode (urlencode)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdusleep">2.59 Wait for Microseconds (usleep)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdwget">2.60 Get File Via HTTP (wget)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdxd">2.61 Hexadecimal Dump of Memory (xd)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -1682,11 +1700,55 @@ ifup eth0
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdkill"><h2>2.26 Send a signal to a task (kill)</h2></a>
|
||||
<a name="cmdinsmod"><h2>2.26 Install an OS module (insmod)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><b>Command Syntax:</b></p>
|
||||
<ul><pre>
|
||||
insmod <file-path> <module-name>
|
||||
</pre></ul>
|
||||
<p>
|
||||
<b>Synopsis</b>.
|
||||
Install the loadable OS module at <file-path> as module <module-name>.
|
||||
</p>
|
||||
<p><b>Example:</b></p>
|
||||
<ul><pre>
|
||||
nsh> ls -l /mnt/romfs
|
||||
/mnt/romfs:
|
||||
dr-xr-xr-x 0 .
|
||||
-r-xr-xr-x 9153 chardev
|
||||
nsh> ls -l /dev
|
||||
/dev:
|
||||
crw-rw-rw- 0 console
|
||||
crw-rw-rw- 0 null
|
||||
brw-rw-rw- 0 ram0
|
||||
crw-rw-rw- 0 ttyS0
|
||||
nsh> lsmod
|
||||
NAME INIT UNINIT ARG TEXT SIZE DATA SIZE
|
||||
nsh> insmod /mnt/romfs/chardev mydriver
|
||||
nsh> ls -l /dev
|
||||
/dev:
|
||||
crw-rw-rw- 0 chardev
|
||||
crw-rw-rw- 0 console
|
||||
crw-rw-rw- 0 null
|
||||
brw-rw-rw- 0 ram0
|
||||
crw-rw-rw- 0 ttyS0
|
||||
nsh> lsmod
|
||||
NAME INIT UNINIT ARG TEXT SIZE DATA SIZE
|
||||
mydriver 20404659 20404625 0 20404580 552 204047a8 0
|
||||
</pre></ul>
|
||||
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdkill"><h2>2.27 Send a signal to a task (kill)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><b>Command Syntax:</b></p>
|
||||
<ul><pre>
|
||||
kill -<signal> <pid>
|
||||
</pre></ul>
|
||||
@ -1694,6 +1756,7 @@ kill -<signal> <pid>
|
||||
<b>Synopsis</b>.
|
||||
Send the <signal> to the task identified by <pid>.
|
||||
</p>
|
||||
<p><b>Example:</b></p>
|
||||
<ul><pre>
|
||||
nsh> mkfifo /dev/fifo
|
||||
nsh> cat /dev/fifo &
|
||||
@ -1722,7 +1785,7 @@ nsh>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdlosetup"><h2>2.27 Setup/teardown the Loop Device (losetup)</h2></a>
|
||||
<a name="cmdlosetup"><h2>2.28 Setup/teardown the Loop Device (losetup)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1775,7 +1838,7 @@ losetup d <dev-path>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdls"><h2>2.28 List Directory Contents (ls)</h2></a>
|
||||
<a name="cmdls"><h2>2.29 List Directory Contents (ls)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1809,10 +1872,44 @@ ls [-lRs] <dir-path>
|
||||
</tr>
|
||||
</table></ul>
|
||||
|
||||
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdmd5"><h2>2.29 Calculate MD5 (md5)</h2></a>
|
||||
<a name="cmdlsmod"><h2>2.30 Show information about installed OS modules (lsmod)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><b>Command Syntax:</b></p>
|
||||
<ul><pre>
|
||||
lsmod
|
||||
</pre></ul>
|
||||
<p>
|
||||
<b>Synopsis</b>.
|
||||
Show information about the currently installed OS modules. This information includes:
|
||||
</p>
|
||||
<ul>
|
||||
<li>The module name assigned to the module when it was installed (NAME).</li>
|
||||
<li>The address of the module initialization function (INIT).</li>
|
||||
<li>The address of the module un-initialization function (UNINIT).</li>
|
||||
<li>An argument that will be passed to the module un-initialization function (ARG).</li>
|
||||
<li>The start of the .text memory region (TEXT).</li>
|
||||
<li>The size of the .text memory region size (SIZE).</li>
|
||||
<li>The start of the .bss/.data memory region (DATA).</li>
|
||||
<li>The size of the .bss/.data memory region size (SIZE).</li>
|
||||
</ul>
|
||||
<p><b>Example:</b></p>
|
||||
<ul><pre>
|
||||
nsh> lsmod
|
||||
NAME INIT UNINIT ARG TEXT SIZE DATA SIZE
|
||||
mydriver 20404659 20404625 0 20404580 552 204047a8 0
|
||||
</pre></ul>
|
||||
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdmd5"><h2>2.31 Calculate MD5 (md5)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1829,7 +1926,7 @@ md5 [-f] <string or filepath>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdmbhw"><h2>2.30 Access Memory (mb, mh, and mw)</h2></a>
|
||||
<a name="cmdmbhw"><h2>2.32 Access Memory (mb, mh, and mw)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1883,7 +1980,7 @@ nsh>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdps"><h2>2.31 Show Current Tasks and Threads (ps)</h2></a>
|
||||
<a name="cmdps"><h2>2.33 Show Current Tasks and Threads (ps)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1917,7 +2014,7 @@ nsh> mount -t procfs /proc
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdmkdir"><h2>2.32 Create a Directory (mkdir)</h2></a>
|
||||
<a name="cmdmkdir"><h2>2.34 Create a Directory (mkdir)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1952,7 +2049,7 @@ nsh>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdmkfatfs"><h2>2.33 Create a FAT Filesystem (mkfatfs)</h2></a>
|
||||
<a name="cmdmkfatfs"><h2>2.35 Create a FAT Filesystem (mkfatfs)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1977,7 +2074,7 @@ mkfatfs [-F <fatsize>] <block-driver>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdmkfifo"><h2>2.34 Create a FIFO (mkfifo)</h2></a>
|
||||
<a name="cmdmkfifo"><h2>2.36 Create a FIFO (mkfifo)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2015,7 +2112,7 @@ nsh>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdmkrd"><h2>2.35 Create a RAMDISK (mkrd)</h2></a>
|
||||
<a name="cmdmkrd"><h2>2.37 Create a RAMDISK (mkrd)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2066,7 +2163,7 @@ nsh>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdmount"><h2>2.36 Mount a File System (mount)</h2></a>
|
||||
<a name="cmdmount"><h2>2.38 Mount a File System (mount)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2145,7 +2242,7 @@ nsh> mount
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdmv"><h2>2.37 Rename a File (mv)</h2></a>
|
||||
<a name="cmdmv"><h2>2.39 Rename a File (mv)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2163,7 +2260,7 @@ mv <old-path> <new-path>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdnfsmount"><h2>2.38 Mount an NFS file system (nfsmount)</h2></a>
|
||||
<a name="cmdnfsmount"><h2>2.40 Mount an NFS file system (nfsmount)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2182,7 +2279,7 @@ nfsmount <server-address> <mount-point> <remote-path>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdnslookup"><h2>2.39 Lookup a network address (nslookup)</h2></a>
|
||||
<a name="cmdnslookup"><h2>2.41 Lookup a network address (nslookup)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2199,7 +2296,7 @@ nslookup <host-name>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdping"><h2>2.40 Check Network Peer (ping/ping6)</h2></a>
|
||||
<a name="cmdping"><h2>2.42 Check Network Peer (ping/ping6)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2236,7 +2333,7 @@ nsh>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdpoweroff"><h2>2.41 Shut the system down (poweroff)</h2></a>
|
||||
<a name="cmdpoweroff"><h2>2.43 Shut the system down (poweroff)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2258,7 +2355,7 @@ poweroff
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdput"><h2>2.42 Send File Via TFTP (put)</h2></a>
|
||||
<a name="cmdput"><h2>2.44 Send File Via TFTP (put)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2293,7 +2390,7 @@ put [-b|-n] [-f <remote-path>] -h <ip-address> <local-path>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdpwd"><h2>2.43 Show Current Working Directory (pwd)</h2></a>
|
||||
<a name="cmdpwd"><h2>2.45 Show Current Working Directory (pwd)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2323,7 +2420,7 @@ nsh>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdreboot"><h2>2.44 Reboot the system (reboot)</h2></a>
|
||||
<a name="cmdreboot"><h2>2.46 Reboot the system (reboot)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2345,7 +2442,7 @@ reboot
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdrm"><h2>2.45 Remove a File (rm)</h2></a>
|
||||
<a name="cmdrm"><h2>2.47 Remove a File (rm)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2379,7 +2476,7 @@ nsh>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdrmdir"><h2>2.46 Remove a Directory (rmdir)</h2></a>
|
||||
<a name="cmdrmdir"><h2>2.48 Remove a Directory (rmdir)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2414,7 +2511,35 @@ nsh>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdset"><h2>2.47 Set an Environment Variable (set)</h2></a>
|
||||
<a name="cmdrmmod"><h2>2.49 Remove on OS Module (rmmod)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><b>Command Syntax:</b></p>
|
||||
<ul><pre>
|
||||
rmmod <module-name>
|
||||
</pre></ul>
|
||||
<p>
|
||||
<b>Synopsis</b>.
|
||||
Remove the loadable OS module with the <module-name>.
|
||||
NOTE: An OS module can only be removed if it is not busy.
|
||||
</p>
|
||||
<p><b>Example:</b></p>
|
||||
<ul><pre>
|
||||
nsh> lsmod
|
||||
NAME INIT UNINIT ARG TEXT SIZE DATA SIZE
|
||||
mydriver 20404659 20404625 0 20404580 552 204047a8 0
|
||||
nsh> rmmod mydriver
|
||||
nsh> lsmod
|
||||
NAME INIT UNINIT ARG TEXT SIZE DATA SIZE
|
||||
nsh>
|
||||
</pre></ul>
|
||||
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdset"><h2>2.50 Set an Environment Variable (set)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2440,7 +2565,7 @@ nsh>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdsh"><h2>2.48 Execute an NSH Script (sh)</h2></a>
|
||||
<a name="cmdsh"><h2>2.51 Execute an NSH Script (sh)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2459,7 +2584,7 @@ sh <script-path>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdshutdown"><h2>2.49 Shut the system down (shutdown)</h2></a>
|
||||
<a name="cmdshutdown"><h2>2.52 Shut the system down (shutdown)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2480,7 +2605,7 @@ shutdown [--reboot]
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdsleep"><h2>2.50 Wait for Seconds (sleep)</h2></a>
|
||||
<a name="cmdsleep"><h2>2.53 Wait for Seconds (sleep)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2497,7 +2622,7 @@ sleep <sec>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdunmount"><h2>2.51 Unmount a File System (umount)</h2></a>
|
||||
<a name="cmdunmount"><h2>2.54 Unmount a File System (umount)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2527,7 +2652,7 @@ nsh>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmduname"><h2>2.52 Print system information (uname)</h2></a>
|
||||
<a name="cmduname"><h2>2.55 Print system information (uname)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2594,7 +2719,7 @@ uname [-a | -imnoprsv]
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdunset"><h2>2.53 Unset an Environment Variable (unset)</h2></a>
|
||||
<a name="cmdunset"><h2>2.56 Unset an Environment Variable (unset)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2620,7 +2745,7 @@ nsh>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdurldec"><h2>2.54 URL Decode (urldecode)</h2></a>
|
||||
<a name="cmdurldec"><h2>2.57 URL Decode (urldecode)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2637,7 +2762,7 @@ urldecode [-f] <string or filepath>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdurlencode"><h2>2.55 URL Encode (urlencode)</h2></a>
|
||||
<a name="cmdurlencode"><h2>2.58 URL Encode (urlencode)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2654,7 +2779,7 @@ urlencode [-f] <string or filepath>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdusleep"><h2>2.56 Wait for Microseconds (usleep)</h2></a>
|
||||
<a name="cmdusleep"><h2>2.59 Wait for Microseconds (usleep)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2671,7 +2796,7 @@ usleep <usec>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdwget">2.57 Get File Via HTTP (wget)</a>
|
||||
<a name="cmdwget"><h2>2.60 Get File Via HTTP (wget)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2698,7 +2823,7 @@ wget [-o <local-path>] <url>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdxd"><h2>2.58 Hexadecimal Dump of Memory (xd)</h2></a>
|
||||
<a name="cmdxd"><h2>2.61 Hexadecimal Dump of Memory (xd)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2887,6 +3012,11 @@ nsh>
|
||||
<td><code>CONFIG_NET</code> && <code>CONFIG_FS_PROCFS</code> && !<code>CONFIG_FS_PROCFS_EXCLUDE_NET</code></td>
|
||||
<td><code>CONFIG_NSH_DISABLE_IFUPDOWN</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b><code>insmod</code></b></td>
|
||||
<td><code>CONFIG_MODULE</code></td>
|
||||
<td><code>CONFIG_NSH_DISABLE_MODCMDS</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b><code>kill</code></b></td>
|
||||
<td>!<code>CONFIG_DISABLE_SIGNALS</code></td>
|
||||
@ -2902,6 +3032,11 @@ nsh>
|
||||
<td><code>CONFIG_NFILE_DESCRIPTORS</code> > 0</td>
|
||||
<td><code>CONFIG_NSH_DISABLE_LS</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b><code>lsmod</code></b></td>
|
||||
<td><code>CONFIG_MODULE</code> && <code>CONFIG_FS_PROCFS</code> && !<code>CONFIG_FS_PROCFS_EXCLUDE_MODULE</code></td>
|
||||
<td><code>CONFIG_NSH_DISABLE_MODCMDS</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b><code>md5</code></b></td>
|
||||
<td><code>CONFIG_NETUTILS_CODECS</code> && <code>CONFIG_CODECS_HASH_MD5</code></td>
|
||||
@ -3004,6 +3139,11 @@ nsh>
|
||||
<td>(((!<code>CONFIG_DISABLE_MOUNTPOINT</code> && <code>CONFIG_FS_WRITABLE</code>) || !<code>CONFIG_DISABLE_PSEUDOFS_OPERATIONS</code>) && <code>CONFIG_NFILE_DESCRIPTORS</code> > 0)<sup>4</sup></td>
|
||||
<td><code>CONFIG_NSH_DISABLE_RMDIR</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b><code>rmmod</code></b></td>
|
||||
<td><code>CONFIG_MODULE</code></td>
|
||||
<td><code>CONFIG_NSH_DISABLE_MODCMDS</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b><code>set</code></b></td>
|
||||
<td>!<code>CONFIG_DISABLE_ENVIRON</code></td>
|
||||
@ -4472,10 +4612,10 @@ mount -t vfat /dev/ram1 /tmp
|
||||
<li><a href="#nshconfiguration"><code>CONFIG_NSH_READLINE</code></a></li>
|
||||
<li><a href="#nshconfiguration"><code>CONFIG_NSH_ROMFSDEVNO</code></a></li>
|
||||
<li><a href="#nshconfiguration"><code>CONFIG_NSH_ROMFSETC</code></a></li>
|
||||
<li><a href="#custinit"><code>CONFIG_NSH_ROMFSETC</code></a></li>
|
||||
</ul></td>
|
||||
<td width="33%" valign="top">
|
||||
<ul>
|
||||
<li><a href="#custinit"><code>CONFIG_NSH_ROMFSETC</code></a></li>
|
||||
<li><a href="#nshconfiguration"><code>CONFIG_NSH_ARCHROMFS</code></a></li>
|
||||
<li><a href="#nshconfiguration"><code>CONFIG_NSH_ROMFSMOUNTPT</code></a></li>
|
||||
<li><a href="#nshconfiguration"><code>CONFIG_NSH_ROMFSSECTSIZE</code></a></li>
|
||||
@ -4525,10 +4665,12 @@ mount -t vfat /dev/ram1 /tmp
|
||||
<li><a href="#cmdifdown"><code>ifdown</code></a></li>
|
||||
<li><a href="#cmdifup"><code>ifup</code></a></li>
|
||||
<li><a href="#custonshlib">Initialization sequence</a></li>
|
||||
<li><a href="#cmdinsmod"><code>insmod</code></a></li>
|
||||
<li><a href="#cmdkill"><code>kill</code></a></li>
|
||||
<li><a href="#cmdlosetup"><code>losetup</code></a></li>
|
||||
<li><a href="#cmdls">ls</code></a></li>
|
||||
<li><a href="#cmdmbhw"><code>mb</code></a></li>
|
||||
<li><a href="#cmdlsmod"><code>lsmod</code></a></li>
|
||||
<li><a href="#cmdmd5">md5</a></li>
|
||||
<li><a href="#cmdmbhw"><code>mh</code></a></li>
|
||||
<li><a href="#cmdmbhw"><code>mw</code></a></li>
|
||||
@ -4572,6 +4714,7 @@ mount -t vfat /dev/ram1 /tmp
|
||||
<li><a href="#custapps">Registration of builtin applications</a></li>
|
||||
<li><a href="#cmdrm"><code>rm</code></a></li>
|
||||
<li><a href="#cmdrmdir"><code>rmdir</code></a></li>
|
||||
<li><a href="#cmdrmmod"><code>rmmod</code></a></li>
|
||||
<li><a href="#custinit">ROMFS, Modifying the ROMFS image</a></li>
|
||||
<li><a href="#cmdset"><code>set</code></a></li>
|
||||
<li><a href="#cmdsh"><code>sh</code></a></li>
|
||||
|
Loading…
Reference in New Issue
Block a user