Partitioning Scheme for Colibri iMX6

I don"t understand the partition scheme of my Colibri iMX6 target:

This module boot from the eMMC.

root@colibri-imx6:~# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root               266.0M    175.5M     76.4M  70% /
devtmpfs                 88.7M      4.0K     88.7M   0% /dev
tmpfs                   248.8M         0    248.8M   0% /dev/shm
tmpfs                   248.8M    320.0K    248.5M   0% /run
tmpfs                   248.8M         0    248.8M   0% /sys/fs/cgroup
tmpfs                   248.8M         0    248.8M   0% /tmp
tmpfs                   248.8M         0    248.8M   0% /var/volatile
/dev/mmcblk0p1           16.0M      4.8M     11.2M  30% /media/mmcblk0p1
tmpfs                    49.8M         0     49.8M   0% /run/user/0

root@colibri-imx6:~# fdisk -l

Disk /dev/mmcblk0: 7818 MB, 7818182656 bytes
4 heads, 32 sectors/track, 119296 cylinders
Units = cylinders of 128 * 512 = 65536 bytes

        Device Boot      Start         End      Blocks  Id System
/dev/mmcblk0p1              65         320       16384   c Win95 FAT32 (LBA)
/dev/mmcblk0p2             321       55680     3543040  83 Linux

Disk /dev/mmcblk0boot1: 4 MB, 4194304 bytes
4 heads, 16 sectors/track, 128 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Disk /dev/mmcblk0boot1 doesn't contain a valid partition table

Disk /dev/mmcblk0boot0: 4 MB, 4194304 bytes
4 heads, 16 sectors/track, 128 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Disk /dev/mmcblk0boot0 doesn't contain a valid partition table
  1. the eMMC seem to have a size of 8 GB (but I expect a 4GB from datasheet). Why?

  2. If I undertand correctly update.sh « imx6 « library « files « images « recipes - meta-toradex.git - oe-core BSP layer (obsolete), the size of /dev/root must be near 4GB. Why it is not the case? Where is the free space?

  1. the eMMC seem to have a size of 8 GB (but I expect a 4GB from datasheet). Why?

You seem to have one of them initial V1.0A modules which came with 8 GB parts on later versions changed to 4 GB ones.

  1. If I undertand correctly update.sh « imx6 « library « files « images « recipes - meta-toradex.git - oe-core BSP layer (obsolete), the size of /dev/root must be near 4GB. Why it is not the case? Where is the free space?

In any of our regular BSPs it should really automatically re-size the root file system to around the maximum available space:

http://git.toradex.com/cgit/meta-toradex-bsp-common.git/tree/recipes-core/fs-init/fs-init.bb?h=morty

After reflashing the eMMC from SDCard,the “resize” script don’t start after the first boot. Afer a bitbake from scratch, it is ok now. Can’t explain why!

Yes, sounds strange. Glad it is working now. And thanks for letting us know.