partition

Command Function

This command is used to query flash partition information.

Syntax

partition [nand / spinor]

Parameters

Table 1 Parameter description

Parameter

Description

Value Range

nand

Displays information about the NAND flash partition.

N/A

spinor

Displays information about the SPI NOR flash partition.

N/A

Usage

  • The partition command is used to query flash partition information.
  • 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.

Example

Run partition spinor.

Output

SPI NOR flash partition information:

OHOS # partition spinor
spinor partition num:0,  blkdev name:/dev/spinorblk0, mountpt:/, startaddr:0x00500000, length:0x00a00000