iMX6 Yocto how to create fsl-image-gui with multiple partitions using 'wic'

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iMX6 Yocto how to create fsl-image-gui with multiple partitions using 'wic'

3,683 Views
torstenkrieger
Contributor I

Hi,

for our customized system we need to have a additional partition to store application data on SD-Card.

Tried to use 'wic' for this purpose, followed this thread:

Yocto WIC image creator with fixed partition sizes 

I can successfully build image for 'core-image-minimal' and 'fsl-image-gui' using 'bitbake'. I managed to create such SD-Card image for 'core-image-minimal' with following '.wks' file and command 'wic create imx6dl-ctems-2part.wks -e core-image-minimal'

# file name imx6dl-ctems-2part.wks

# 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=ext4 --label root --align 4096 --size 256M --extra-space 0 --overhead-factor 1

# User data partition
part /opt/user --ondisk mmcblk --fstype=ext4 --label ctems --align 4096 --size 128M --extra-space 0 --overhead-factor 1

When I do this for 'fsl-image-gui' by command 'wic create imx6dl-ctems-2part.wks -e fsl-image-gui' I got the following error:

Checking basic build environment...
Done.

Creating image(s)...

Warning: bootloader config not specified, using defaults
Error: exec_cmd: 'export PSEUDO_PREFIX=/home/plexus/fsl-yocto-L4.1.15_2.0.0-ga/fsl-release-bsp/build_ctems_fb-opengl_readonlyRFS/tmp/sysroots/x86_64-linux/usr;export PSEUDO_LOCALSTATEDIR=/home/plexus/fsl-yocto-L4.1.15_2.0.0-ga/fsl-release-bsp/build_ctems_fb-opengl_readonlyRFS/tmp/work/imx6dl_ctems-poky-linux-gnueabi/fsl-image-gui/1.0-r0/rootfs/../pseudo;export PSEUDO_PASSWD=/home/plexus/fsl-yocto-L4.1.15_2.0.0-ga/fsl-release-bsp/build_ctems_fb-opengl_readonlyRFS/tmp/work/imx6dl_ctems-poky-linux-gnueabi/fsl-image-gui/1.0-r0/rootfs;export PSEUDO_NOSYMLINKEXP=1;/home/plexus/fsl-yocto-L4.1.15_2.0.0-ga/fsl-release-bsp/build_ctems_fb-opengl_readonlyRFS/tmp/sysroots/x86_64-linux/usr/bin/pseudo mkfs.ext4 -F -i 8192 /var/tmp/wic/build/rootfs_root.3.ext4 -L root -d /home/plexus/fsl-yocto-L4.1.15_2.0.0-ga/fsl-release-bsp/build_ctems_fb-opengl_readonlyRFS/tmp/work/imx6dl_ctems-poky-linux-gnueabi/fsl-image-gui/1.0-r0/rootfs' returned '1' instead of 0

Linux target system is Kernel 4.1.15_2.0.0 (fsl release) on iMX6DL, build system Yocto 2.1 Krogoth running on Ubuntu 14.04.1 LTS 64 bit.

Any help would be appreciated?

Thanks Torsten

0 Kudos
1 Reply

2,326 Views
stasgil
Contributor III

Hello,

    In case anyone else encounters this issue:

    Seems like this is related to Bug 6863 – Wic fails to create a working image for a large file system 

    Fixed by increasing overhead for the rootfs partition in the .wks file, e.g.:

part / --source rootfs --ondisk mmcblk --fstype=ext4 --label root --align 4096 --size 256M --extra-space 0 --overhead-factor 1.3

0 Kudos