The "ubi part" command in U-Boot is used to create and manage partitions on a UBI (Unsorted Block Images) volume. UBI is a flash-specific file system used in embedded systems.

The syntax of the "ubi part" command is as follows: ubi part <vol_name> [size [alignment [min_io_size [erase_size [vid_hdr_offset]]]]]

  • <vol_name>: The name of the UBI volume on which the partition is created.
  • size: The size of the partition in bytes. If not specified, the remaining space of the volume is used.
  • alignment: The alignment requirement for the partition. It should be a power of 2. If not specified, it defaults to 1.
  • min_io_size: The minimum I/O unit size of the partition. It should be a power of 2. If not specified, it defaults to the logical erase block size of the flash device.
  • erase_size: The erase block size of the flash device. If not specified, it is obtained from the UBI volume information.
  • vid_hdr_offset: The offset of the volume ID header. If not specified, it defaults to 0.

Here's an example of using the "ubi part" command: ubi part ubi0 - 0x1000000

This command creates a partition on the UBI volume "ubi0" with a size of 0x1000000 bytes. The other parameters are not specified, so they use the default values.

Note that the "ubi part" command only creates the partition. To make it usable, you need to format it using the "ubi mkvol" command and mount it using the "ubi mount" command

uboot下ubi part命令解析

原文地址: http://www.cveoy.top/t/topic/iJZr 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录