AnsweredAssumed Answered

eMMC Partition failure(imx6)

Question asked by ji yun on Sep 5, 2019
Latest reply on Sep 5, 2019 by igorpadykov

Hi,

Linux kernel : 3.14.52

eMMC : 8GB

MFGTool2 : 2.1.0

 

I modified the mksdcard.sh file in the MFG tool like this:

-- mkemmc.sh file --

#!/bin/sh

# partition size in MB
BOOT_ROM_SIZE=10


# call sfdisk to create partition table
# destroy the partition table
node=$1
dd if=/dev/zero of=${node} bs=1024 count=1

sfdisk --force -uM ${node} << EOF
${BOOT_ROM_SIZE},30,0c
50,3678,83
3738,30,83
3778,,83
EOF

 

As you go through this script, you will have four partitions. But, modified the mkemmc.sh file below.

#!/bin/sh

# partition size in MB
BOOT_ROM_SIZE=10


# call sfdisk to create partition table
# destroy the partition table
node=$1
dd if=/dev/zero of=${node} bs=1024 count=1

sfdisk --force -uM ${node} << EOF
${BOOT_ROM_SIZE},80,0c
100,5197,83
5307,80,0c
5397,40,83
5445,,83
EOF

 

If you proceed with this script, it looks like you need to split 5 partitions, but it is divided into 4 partitions only. 

I can't get the last partition,what's wrong?

 

brw-rw---- 1 root disk 179,  0 Jan  1  1970 mmcblk3
brw-rw---- 1 root disk 179,  8 Jan  1  1970 mmcblk3boot0
brw-rw---- 1 root disk 179, 16 Jan  1  1970 mmcblk3boot1
brw-rw---- 1 root disk 179,  1 Jan  1  1970 mmcblk3p1
brw-rw---- 1 root disk 179,  2 Jan  1  1970 mmcblk3p2
brw-rw---- 1 root disk 179,  3 Jan  1  1970 mmcblk3p3
brw-rw---- 1 root disk 179,  4 Jan  1  1970 mmcblk3p4
brw-rw---- 1 root disk 179, 24 Jan  1  1970 mmcblk3rpmb

Outcomes