Bug 9094 - create_image.wic is missing u-boot SPL file
Summary: create_image.wic is missing u-boot SPL file
Status: RESOLVED WORKSFORME
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: Scripts and Tools (show other bugs)
Version: 2.0.1
Hardware: All Multiple
: Medium normal
Target Milestone: 2.1
Assignee: Oliver Graute
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-02-11 09:36 UTC by Oliver Graute
Modified: 2016-04-29 07:11 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
Wic file for a SD Card Image (1.28 KB, application/octet-stream)
2016-03-22 06:59 UTC, Oliver Graute
no flags Details
local.conf for my Yocto (2.12 KB, application/octet-stream)
2016-03-22 07:01 UTC, Oliver Graute
no flags Details
the bblayers.conf from my yocto build (523 bytes, application/octet-stream)
2016-03-22 07:02 UTC, Oliver Graute
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Graute 2016-02-11 09:36:24 UTC
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
Comment 1 Ed Bartosh 2016-03-21 19:21:46 UTC
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 ...
Comment 2 Ed Bartosh 2016-03-21 19:34:36 UTC
If you can provide .wks file you're using it would help to investigate and fix this too. Thanks.
Comment 3 Oliver Graute 2016-03-22 06:59:01 UTC
Created attachment 3055 [details]
Wic file for a SD Card Image

Here is the wic file I use for partitioning my Yocto Machine
Comment 4 Oliver Graute 2016-03-22 07:01:19 UTC
Created attachment 3056 [details]
local.conf for my Yocto

here the local.conf file for my Yocto Build
Comment 5 Oliver Graute 2016-03-22 07:02:35 UTC
Created attachment 3057 [details]
the bblayers.conf from my yocto build
Comment 6 Oliver Graute 2016-03-22 07:04:23 UTC
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"
Comment 7 Ed Bartosh 2016-03-23 12:15:35 UTC
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
Comment 8 Ed Bartosh 2016-03-23 13:50:50 UTC
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?
Comment 9 Oliver Graute 2016-04-21 12:07:46 UTC
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)
Comment 10 Ed Bartosh 2016-04-26 11:53:29 UTC
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.
Comment 11 Oliver Graute 2016-04-29 07:11:22 UTC
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