AnsweredAssumed Answered

Yocto WIC image creator with fixed partition sizes

Question asked by Adrian McGrath on Apr 13, 2016
Latest reply on Apr 20, 2016 by Adrian McGrath

Hi All

 

I've successfully used Yocto 'wic' to create an image for my imx6 based system with 4x partitions {Boot, Rootfs, Rootfs-bkup, Userdata}. My .wks file is shown below:

 

# Image Creator .wks

part u-boot --source rawcopy --sourceparams="file=u-boot.imx" --ondisk mmcblk --no-table --align 1

# Boot partition

part /boot --source bootimg-partition --ondisk mmcblk --fstype=vfat --label boot --active --align 4096 --size 8M --extra-space 0

# Rootfs partition

part / --source rootfs --ondisk mmcblk --fstype=ext3 --label root --align 4096 --size 1024M

# Rootfs backup partition

part /rootfs-bkup --source rootfs --ondisk mmcblk --fstype=ext3 --label rootfs-bkup --align 4096 --size 1024M

# User data partition

part /userdata --ondisk mmcblk --fstype=vfat --label userdata --align 4096 --size 1024M

 

The .wks file above uses "--size 1024M". I had expected this to create partitions with a fixed partition size of 1024M. However, it appears that this actually adds 1024M to the size of the ext3 rootfs images created by Yocto.

 

My question is, how can I edit my .wks file to create 3x fixed partitions of size 1024M?

 

Many thanks

 

Adrian

Outcomes