1e41f4b71Sopenharmony_ci# partition
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ci
4e41f4b71Sopenharmony_ci## Command Function<a name="section255095212257"></a>
5e41f4b71Sopenharmony_ci
6e41f4b71Sopenharmony_ciThis command is used to query flash partition information.
7e41f4b71Sopenharmony_ci
8e41f4b71Sopenharmony_ci## Syntax<a name="section10258056122515"></a>
9e41f4b71Sopenharmony_ci
10e41f4b71Sopenharmony_cipartition \[_nand / spinor_\]
11e41f4b71Sopenharmony_ci
12e41f4b71Sopenharmony_ci## Parameters<a name="section177200581256"></a>
13e41f4b71Sopenharmony_ci
14e41f4b71Sopenharmony_ci**Table  1**  Parameter description
15e41f4b71Sopenharmony_ci
16e41f4b71Sopenharmony_ci<a name="table1425mcpsimp"></a>
17e41f4b71Sopenharmony_ci<table><thead align="left"><tr id="row1431mcpsimp"><th class="cellrowborder" valign="top" width="21%" id="mcps1.2.4.1.1"><p id="p1433mcpsimp"><a name="p1433mcpsimp"></a><a name="p1433mcpsimp"></a><strong id="b194783171311544"><a name="b194783171311544"></a><a name="b194783171311544"></a>Parameter</strong></p>
18e41f4b71Sopenharmony_ci</th>
19e41f4b71Sopenharmony_ci<th class="cellrowborder" valign="top" width="52%" id="mcps1.2.4.1.2"><p id="p1435mcpsimp"><a name="p1435mcpsimp"></a><a name="p1435mcpsimp"></a><strong id="b207813185121"><a name="b207813185121"></a><a name="b207813185121"></a>Description</strong></p>
20e41f4b71Sopenharmony_ci</th>
21e41f4b71Sopenharmony_ci<th class="cellrowborder" valign="top" width="27%" id="mcps1.2.4.1.3"><p id="p1437mcpsimp"><a name="p1437mcpsimp"></a><a name="p1437mcpsimp"></a><strong id="b133141469711544"><a name="b133141469711544"></a><a name="b133141469711544"></a>Value Range</strong></p>
22e41f4b71Sopenharmony_ci</th>
23e41f4b71Sopenharmony_ci</tr>
24e41f4b71Sopenharmony_ci</thead>
25e41f4b71Sopenharmony_ci<tbody><tr id="row1438mcpsimp"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.2.4.1.1 "><p id="p1440mcpsimp"><a name="p1440mcpsimp"></a><a name="p1440mcpsimp"></a>nand</p>
26e41f4b71Sopenharmony_ci</td>
27e41f4b71Sopenharmony_ci<td class="cellrowborder" valign="top" width="52%" headers="mcps1.2.4.1.2 "><p id="p1442mcpsimp"><a name="p1442mcpsimp"></a><a name="p1442mcpsimp"></a>Displays information about the NAND flash partition.</p>
28e41f4b71Sopenharmony_ci</td>
29e41f4b71Sopenharmony_ci<td class="cellrowborder" valign="top" width="27%" headers="mcps1.2.4.1.3 "><p id="p1444mcpsimp"><a name="p1444mcpsimp"></a><a name="p1444mcpsimp"></a>N/A</p>
30e41f4b71Sopenharmony_ci</td>
31e41f4b71Sopenharmony_ci</tr>
32e41f4b71Sopenharmony_ci<tr id="row1445mcpsimp"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.2.4.1.1 "><p id="p1447mcpsimp"><a name="p1447mcpsimp"></a><a name="p1447mcpsimp"></a>spinor</p>
33e41f4b71Sopenharmony_ci</td>
34e41f4b71Sopenharmony_ci<td class="cellrowborder" valign="top" width="52%" headers="mcps1.2.4.1.2 "><p id="p1449mcpsimp"><a name="p1449mcpsimp"></a><a name="p1449mcpsimp"></a>Displays information about the SPI NOR flash partition.</p>
35e41f4b71Sopenharmony_ci</td>
36e41f4b71Sopenharmony_ci<td class="cellrowborder" valign="top" width="27%" headers="mcps1.2.4.1.3 "><p id="p1451mcpsimp"><a name="p1451mcpsimp"></a><a name="p1451mcpsimp"></a>N/A</p>
37e41f4b71Sopenharmony_ci</td>
38e41f4b71Sopenharmony_ci</tr>
39e41f4b71Sopenharmony_ci</tbody>
40e41f4b71Sopenharmony_ci</table>
41e41f4b71Sopenharmony_ci
42e41f4b71Sopenharmony_ci## Usage<a name="section17866411262"></a>
43e41f4b71Sopenharmony_ci
44e41f4b71Sopenharmony_ci-   The  **partition**  command is used to query flash partition information.
45e41f4b71Sopenharmony_ci-   The NAND flash partition information can be queried only when the Yet Another Flash File System \(YAFFS\) is enabled. The SPI NOR flash partition information can be queried only when the Journaling Flash File System \(JFFS\) or ROM filesystem \(romfs\) is enabled.
46e41f4b71Sopenharmony_ci
47e41f4b71Sopenharmony_ci## Example<a name="section1927174202610"></a>
48e41f4b71Sopenharmony_ci
49e41f4b71Sopenharmony_ciRun  **partition spinor**.
50e41f4b71Sopenharmony_ci
51e41f4b71Sopenharmony_ci## Output<a name="section11321011223"></a>
52e41f4b71Sopenharmony_ci
53e41f4b71Sopenharmony_ciSPI NOR flash partition information:
54e41f4b71Sopenharmony_ci
55e41f4b71Sopenharmony_ci```
56e41f4b71Sopenharmony_ciOHOS # partition spinor
57e41f4b71Sopenharmony_cispinor partition num:0,  blkdev name:/dev/spinorblk0, mountpt:/, startaddr:0x00500000, length:0x00a00000
58e41f4b71Sopenharmony_ci```
59e41f4b71Sopenharmony_ci
60