How to Add eMMC Partition on iMX6 Series Platform

This article is applicable to Forlinx OKMX6X-C platform (Linux 3.0.35). It introduces two methods of adding eMMC partition. For other iMX6 series platforms by different manufacturers, please refer to use. Because there will be differences among these products, user need to modify according to their own practice.

Method 1 (help user understand the details of partition settings)

fdisk -l to view hard disks on system and find the hard disk to be partitioned: /dev/mmcblk0.

Enter the device: fdisk /dev/mmcblk0

It will display:

Command (m for help):

To view help information: enter m:

see the following information


Command action

a toggle a bootable flag

b edit bsd disklabel

c toggle the dos compatibility flag

d delete a partition

l list known partition types

m print this menu

n add a new partition

o create a new empty DOS partition table

p print the partition table

q quit without saving changes

s create a new empty Sun disklabel

t change a partition's system id

u change display/entry units

v verify the partition table

w write table to disk and exit

x extra functionality (experts only)


Please read carefully the meaning of each parameter. Commonly used: d l m p q t w

List the partition table of hard disk: p



Add partition: enter n

Command (m for help): n

Command action

e extended

p primary partition (1-4)

Add primary partition: enter p

Partition number (1-4): 2

Note: There is already a primary partition. Thus, this primary partition starting from 2

First cylinder (1-238592, default 1): directly press Enter

Using default value 1

Last cylinder or +size or +sizeM or +sizeK (1-1600, default 1600):800 (add size as user practice)

Command (m for help): p

Disk /dev/mmcblk0: 7818 MB, 7818182656 bytes

4 heads, 16 sectors/track, 238592 cylinders

Units = cylinders of 64 * 512 = 32768 bytes



Add partition: enter n

Command (m for help): n

Command action

e extended

p primary partition (1-4)

Add primary partition: enter p

Partition number (1-4): 3

First cylinder (801-238592, default 801): 801

Last cylinder or +size or +sizeM or +sizeK (801-1600, default 1600):Enter Using default value 1600

Type w to save and exit

Command (m for help): w

The partition table has been altered.

Calling ioctl() to re-read partition table

fdisk -l

Now user can see the added partition



Note: The following warning will appear after saved, just ignore. It won’t affect the result.

fdisk: WARNING: rereading partition table failed, kernel still uses old table: Device or resource busy

Method 2 (relatively easy to operate)

Modify mksdcard.sh in flashing tool, path: mfgtools\Profiles\Linux\OS Firmware

For example:



Flashing it after modification

fdisk -l to view current hard disk partition, like following