NSH: Add an option to the mkfatfs command to specify FAT12, FAT16, or FAT32
This commit is contained in:
parent
692b087d07
commit
5f506e3f1a
@ -8,7 +8,7 @@
|
|||||||
<tr align="center" bgcolor="#e4e4e4">
|
<tr align="center" bgcolor="#e4e4e4">
|
||||||
<td>
|
<td>
|
||||||
<h1><big><font color="#3c34ec"><i>NuttShell (NSH)</i></font></big></h1>
|
<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>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
@ -1668,11 +1668,16 @@ nsh>
|
|||||||
|
|
||||||
<p><b>Command Syntax:</b></p>
|
<p><b>Command Syntax:</b></p>
|
||||||
<ul><pre>
|
<ul><pre>
|
||||||
mkfatfs <path>
|
mkfatfs [-F <fatsize>] <block-driver>
|
||||||
</pre></ul>
|
</pre></ul>
|
||||||
<p>
|
<p>
|
||||||
<b>Synopsis</b>.
|
<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.
|
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
|
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>).
|
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