Howto create rootfs/partition using whole emmc flash

When using update.sh to create an image for the TK1, the root partition ends up being only 7.1GB, so roughly half of the emmc is not used.
How can we use the full capacity?

fdisk shows:

Disk /dev/mmcblk0: 15.8 GB, 15758000128 bytes
4 heads, 32 sectors/track, 240448 cylinders, total 30777344 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00089c7f

        Device Boot      Start         End      Blocks   Id  System
/dev/mmcblk0p1            8192       40959       16384    c  W95 FAT32 (LBA)
/dev/mmcblk0p2           40960    15216639     7587840   83  Linux

The update.sh script contains:

# assumed minimal eMMC size [in sectors of 512]
EMMC_SIZE=$(expr 1024 \* 7450 \* 2)

Should this be updated to EMMC_SIZE=30777344 ?

Hi

As we could not source enough 16GB eMMC there are Apalis TK1 samples with 8GB and with 16GB.

The number in the update script is a save minimum to fit all samples.
If you know that you prepare a update media for 16GB samples you could increase the EMMC_SIZE variable.

Max

…by running sudo sed -i -e 's/7450/15642/' update.sh on the update script as described here