3. EMMC Partition

3.1. Partitioning Method

The partitioning method is managed through the cmdline partition of the Linux Kernel. The required Kernel Configuration is as follows:

CONFIG_BLK_CMDLINE_PARSER=y
CONFIG_PARTITION_ADVANCED=y
CONFIG_CMDLINE_PARTITION=y
CONFIG_EFI_PARTITION=n

3.2. How to Modify EMMC Partition Size

  1. cd build/boards/default/partition/

  2. Revise the size of partitions in partition_emmc.xml, and recompile the bsp

  3. After recompiling, an Image file with the corresponding partition size will be generated, and the desired burning location will be embedded in the Image Header. This will be passed to the Kernel for actual partitioning through the “blkdevparts” U-Boot environment variable area.

For more details, please refer to the following information:

https://www.kernel.org/doc/Documentation/block/cmdline-partition.txt