NSH: Add an option to the mkfatfs command to specify FAT12, FAT16, or FAT32
This commit is contained in:
parent
babb9b4308
commit
fe2191e62b
@ -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: October 5, 2013</p>
|
||||
<p>Last Updated: December 5, 2013</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1668,11 +1668,16 @@ nsh>
|
||||
|
||||
<p><b>Command Syntax:</b></p>
|
||||
<ul><pre>
|
||||
mkfatfs <path>
|
||||
mkfatfs [-F <fatsize>] <block-driver>
|
||||
</pre></ul>
|
||||
<p>
|
||||
<b>Synopsis</b>.
|
||||
Format a fat file system on the block device specified by <code><path></code>.
|
||||
Format a fat file system on the block device specified by <code><block-driver></code> path.
|
||||
The FAT size may be provided as an option.
|
||||
Without the <code><fatsize></code> option, <code>mkfatfs</code> will select either the FAT12 or FAT16 format.
|
||||
For historical reasons, if you want the FAT32 format, it must be explicitly specified on the command line.
|
||||
</p>
|
||||
<p>
|
||||
NSH provides this command to access the <a href="mkfatfs"><code>mkfatfs()</code></a> NuttX API.
|
||||
This block device must reside in the NuttX <a href="NuttxUserGuide.html#FileSystemOverview"><i>pseudo</i> filesystem</a> and
|
||||
must have been created by some call to <code>register_blockdriver()</code> (see <code>include/nuttx/fs/fs.h</code>).
|
||||
|
Loading…
Reference in New Issue
Block a user