I observe a problem with the create_image.wic script after second execution of bitbake fsl-image NOTE: recipe fsl-image-1.0-r0: task do_rootfs: Started 2016-02-10T03:21:41.323Z: ERROR: Error: The image creation script '/home/dnt/build-imx6ulevk/tmp/work/imx6ulevk-poky-linux-gnueabi/fsl-image/1.0-r0/temp/create_image.wic' returned 1: 2016-02-10T03:21:41.323Z: Error: exec_cmd: du -Lbks /home/dnt/build-imx6ulevk/tmp/deploy/images/imx6ulevk/SPL returned '1' instead of 0 2016-02-10T03:21:41.323Z: Checking basic build environment... 2016-02-10T03:21:41.323Z: Done. 2016-02-10T03:21:41.324Z: 2016-02-10T03:21:41.324Z: Creating image(s)... 2016-02-10T03:21:41.324Z: 2016-02-10T03:21:41.324Z: WARNING: exit code 1 from a shell command. 2016-02-10T03:21:41.324Z: 2016-02-10T03:21:41.324Z: ERROR: Function failed: do_rootfs 2016-02-10T03:21:41.371Z: ERROR: Logfile of failure stored in: /home/dnt/build-imx6ulevk/tmp/work/imx6ulevk-poky-linux-gnueabi/fsl-image/1.0-r0/temp/log.do_rootfs.27900 Somewhere the SPL symbolic link and the SPL files itself are deleted from my deploy image folder during the wic run. If i execute bitbake -c cleansstate u-boot fsl-image bitbake u-boot fsl-image everything works fine, until I run next time bitbake fsl_image again (without u-boot before) Some ideas how to fix this? http://article.gmane.org/gmane.comp.handhelds.openembedded.core/76116
Oliver, can you provide more info on how to build fsl-image please? Which layers/MACHINE should I use? Should I set any other special variables in the config? etc, etc ...
If you can provide .wks file you're using it would help to investigate and fix this too. Thanks.
Created attachment 3055 [details] Wic file for a SD Card Image Here is the wic file I use for partitioning my Yocto Machine
Created attachment 3056 [details] local.conf for my Yocto here the local.conf file for my Yocto Build
Created attachment 3057 [details] the bblayers.conf from my yocto build
I'am using MACHINE = "imx6ulevk" here the wic related parameters IMAGE_FSTYPES += "wic" IMAGE_BOOT_FILES = "zImage zImage-imx6ul-14x14-evk.dtb;imx6ul-14x14-evk.dtb"
Which layer fsl-image recipe comes from? I don't see it in any branch and layer on layerindex: http://layers.openembedded.org/layerindex/branch/master/recipes/?q=fsl-image
I have a suspicion that this bug might be already fixed in master. Oliver, you probably use another branch as I just discovered a bug in new parser which would make wic to fail with your wks file. Here is a fix for it: http://lists.openembedded.org/pipermail/openembedded-core/2016-March/119417.html Can you try to build your image with in master, please?
I tried with poky master (SHA 6dba9abd43) but no success. Can you point me to the git commit hash for the patch you mentioned, Can't find /scripts/lib/wic/ksparser.py in my poky (jethro)
I hope I fixed this issue by commit 3fc6aaa186: http://cgit.openembedded.org/openembedded-core/commit/?id=ba98262573cf1600e0d477317f51d488b5f8c4bd You can actually try if my guess is right by moving /boot line to the top in your .wks file. However, even if it's another issue it makes sense to try master or upcoming release or give me detailed instructions how to build your image in jethro.
I applied your fix from commit 3fc6aaa186 and also moved /boot line to the top I didn't observed the Error since then. It seems that this fixed my problem. thx for your help. The Issue can be closed