# Integrating mender with yocto(core-image-sato)

**URL:** <https://hub.mender.io/t/integrating-mender-with-yocto-core-image-sato/3247>\
**Category:** General Discussions\
**Tags:** yocto\
**Created:** [February 19, 2021, 7:36am UTC](https://hub.mender.io/t/integrating-mender-with-yocto-core-image-sato/3247 "2021-02-19T07:36:51Z")\
**Posts on this page:** 15\
**Page:** 2

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [February 23, 2021, 4:39pm UTC](https://hub.mender.io/t/integrating-mender-with-yocto-core-image-sato/3247/21 "2021-02-23T16:39:16Z")

</div>

You’ll need to share more than that from your build log.

Also can you share the output of `bitbake -e core-image-sato | grep ^IMAGE_FSTYPES=`

Drew

---

<div class="post-metadata">

**Author:** ![urk2511](https://avatars.discourse-cdn.com/v4/letter/u/f0a364/32.png) [@urk2511](https://hub.mender.io/u/urk2511)\
**Post date:** [February 23, 2021, 4:43pm UTC](https://hub.mender.io/t/integrating-mender-with-yocto-core-image-sato/3247/22 "2021-02-23T16:43:19Z")

</div>

hello drew

ravi\_uppada@raviuppada-HP-EliteBook-Folio-9480m:~/work/vm/test/poky/build$ bitbake core-image-sato  
Loading cache: 100% |##########################################################################################################| Time: 0:00:00  
Loaded 3505 entries from dependency cache.  
NOTE: Resolving any missing task queue dependencies  
NOTE: Multiple providers are available for runtime u-boot-default-env (libubootenv, u-boot)  
Consider defining a PREFERRED\_RPROVIDER entry to match u-boot-default-env

Build Configuration:  
BB\_VERSION = “1.46.0”  
BUILD\_SYS = “x86\_64-linux”  
NATIVELSBSTRING = “universal”  
TARGET\_SYS = “aarch64-poky-linux”  
MACHINE = “raspberrypi4-64”  
DISTRO = “poky”  
DISTRO\_VERSION = “3.1.6”  
TUNE\_FEATURES = “aarch64 cortexa72 crc crypto”  
TARGET\_FPU = “”  
meta  
meta-poky  
meta-yocto-bsp = “dunfell:a13bda44fcda4e79e9aed39ca1495eabecb6a7b7”  
meta-gnome  
meta-multimedia  
meta-networking  
meta-oe  
meta-python  
meta-xfce = “dunfell:de37512b25c1f8c6bb6ab2b3782ac0fe01443483”  
meta-raspberrypi = “dunfell:77190af02d48adc2b28216775e6318e9eeda571c”  
meta-mender-core  
meta-mender-raspberrypi = “dunfell:f5864bfb32906b87cc24d5b84e74805994f0ef3e”

Initialising tasks: 100% |#####################################################################################################| Time: 0:00:05  
Sstate summary: Wanted 45 Found 42 Missed 3 Current 2803 (93% match, 99% complete)  
NOTE: Executing Tasks  
ERROR: Task (/home/ravi\_uppada/work/vm/test/poky/meta/recipes-sato/images/core-image-sato.bb:do\_image\_tar) failed with exit code ‘134’  
ERROR: Task (/home/ravi\_uppada/work/vm/test/poky/meta/recipes-sato/images/core-image-sato.bb:do\_image\_wic) failed with exit code ‘134’  
NOTE: Tasks Summary: Attempted 7097 tasks of which 7087 didn’t need to be rerun and 2 failed.

Summary: 2 tasks failed:  
/home/ravi\_uppada/work/vm/test/poky/meta/recipes-sato/images/core-image-sato.bb:do\_image\_tar  
/home/ravi\_uppada/work/vm/test/poky/meta/recipes-sato/images/core-image-sato.bb:do\_image\_wic  
ravi\_uppada@raviuppada-HP-EliteBook-Folio-9480m:~/work/vm/test/poky/build$ vim conf/local.conf

======================================================

ravi\_uppada@raviuppada-HP-EliteBook-Folio-9480m:~/work/vm/test/poky/build$ bitbake -e core-image-sato | grep ^IMAGE\_FSTYPES=  
IMAGE\_FSTYPES="tar.bz2 ext3 wic.bz2 wic.bmap mender mender.bmap sdimg sdimg.bmap sdimg.bz2 "

please find the atached log

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [February 23, 2021, 6:43pm UTC](https://hub.mender.io/t/integrating-mender-with-yocto-core-image-sato/3247/23 "2021-02-23T18:43:10Z")

</div>

Hmm. I’m not sure why you would have “wic” in there. Try adding the following to local.conf

```auto
IMAGE_FSTYPES_remove = " wic.bz2 wic.bmap"

```

---

<div class="post-metadata">

**Author:** ![urk2511](https://avatars.discourse-cdn.com/v4/letter/u/f0a364/32.png) [@urk2511](https://hub.mender.io/u/urk2511)\
**Post date:** [February 24, 2021, 5:41am UTC](https://hub.mender.io/t/integrating-mender-with-yocto-core-image-sato/3247/24 "2021-02-24T05:41:38Z")

</div>

hello drew,  
On applying the above variable in the local.conf we are removing one error but the error for generating the tar file still persists.  
…  
ravi\_uppada@raviuppada-HP-EliteBook-Folio-9480m:~/work/vm/test/poky/build$ bitbake core-image-sato  
Parsing recipes: 100% |########################################################################################################| Time: 0:02:33  
Parsing of 2386 .bb files complete (0 cached, 2386 parsed). 3505 targets, 146 skipped, 0 masked, 0 errors.  
NOTE: Resolving any missing task queue dependencies  
NOTE: Multiple providers are available for runtime u-boot-default-env (libubootenv, u-boot)  
Consider defining a PREFERRED\_RPROVIDER entry to match u-boot-default-env

Build Configuration:  
BB\_VERSION = “1.46.0”  
BUILD\_SYS = “x86\_64-linux”  
NATIVELSBSTRING = “universal”  
TARGET\_SYS = “aarch64-poky-linux”  
MACHINE = “raspberrypi4-64”  
DISTRO = “poky”  
DISTRO\_VERSION = “3.1.6”  
TUNE\_FEATURES = “aarch64 cortexa72 crc crypto”  
TARGET\_FPU = “”  
meta  
meta-poky  
meta-yocto-bsp = “dunfell:a13bda44fcda4e79e9aed39ca1495eabecb6a7b7”  
meta-gnome  
meta-multimedia  
meta-networking  
meta-oe  
meta-python  
meta-xfce = “dunfell:de37512b25c1f8c6bb6ab2b3782ac0fe01443483”  
meta-raspberrypi = “dunfell:77190af02d48adc2b28216775e6318e9eeda571c”  
meta-mender-core  
meta-mender-raspberrypi = “dunfell:f5864bfb32906b87cc24d5b84e74805994f0ef3e”

Initialising tasks: 100% |#####################################################################################################| Time: 0:00:06  
Sstate summary: Wanted 41 Found 38 Missed 3 Current 2807 (92% match, 99% complete)  
NOTE: Executing Tasks  
ERROR: Task (/home/ravi\_uppada/work/vm/test/poky/meta/recipes-sato/images/core-image-sato.bb:do\_image\_tar) failed with exit code ‘134’  
NOTE: Tasks Summary: Attempted 7096 tasks of which 7086 didn’t need to be rerun and 1 failed.

Summary: 1 task failed:  
/home/ravi\_uppada/work/vm/test/poky/meta/recipes-sato/images/core-image-sato.bb:do\_image\_tar  
…

pls help me out.

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [February 24, 2021, 1:42pm UTC](https://hub.mender.io/t/integrating-mender-with-yocto-core-image-sato/3247/25 "2021-02-24T13:42:11Z")

</div>

Can you add “tar” to the previous setting of `IMAGE_FSTYPES_remove`?

---

<div class="post-metadata">

**Author:** ![urk2511](https://avatars.discourse-cdn.com/v4/letter/u/f0a364/32.png) [@urk2511](https://hub.mender.io/u/urk2511)\
**Post date:** [February 25, 2021, 5:49am UTC](https://hub.mender.io/t/integrating-mender-with-yocto-core-image-sato/3247/26 "2021-02-25T05:49:44Z")

</div>

Hello drew,  
If i remove tar in the `IMAGE_FSTYPES_remove` tar file of the rootfs will not be generated.

Regards,  
RAVI

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [February 25, 2021, 2:24pm UTC](https://hub.mender.io/t/integrating-mender-with-yocto-core-image-sato/3247/27 "2021-02-25T14:24:03Z")

</div>

But what do you need that file for? The Mender integration creates the SDIMG file which is what you need to use for proper Mender functionality. At the very least can you remove it temporarily and see if your build succeeds?

---

<div class="post-metadata">

**Author:** ![urk2511](https://avatars.discourse-cdn.com/v4/letter/u/f0a364/32.png) [@urk2511](https://hub.mender.io/u/urk2511)\
**Post date:** [February 25, 2021, 5:13pm UTC](https://hub.mender.io/t/integrating-mender-with-yocto-core-image-sato/3247/28 "2021-02-25T17:13:59Z")

</div>

hello drew ,  
I have tried removing the tar but the build was not successfull.  
…Pls find the build error below…  
ERROR: Task (/home/ravi\_uppada/work/vm/test/poky/meta/recipes-sato/images/core-image-sato.bb:do\_image\_sdimg) failed with exit code ‘1’  
NOTE: Tasks Summary: Attempted 7097 tasks of which 6909 didn’t need to be rerun and 2 failed.

Summary: 2 tasks failed:  
/home/ravi\_uppada/work/vm/test/poky/meta/recipes-sato/images/core-image-sato.bb:do\_image\_mender  
/home/ravi\_uppada/work/vm/test/poky/meta/recipes-sato/images/core-image-sato.bb:do\_image\_sdimg  
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

…

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [February 25, 2021, 5:26pm UTC](https://hub.mender.io/t/integrating-mender-with-yocto-core-image-sato/3247/29 "2021-02-25T17:26:20Z")

</div>

There should be a file somewhere under `tmp/work` called `log.do_image_sdimg`. Can you find that and post it?

---

<div class="post-metadata">

**Author:** ![urk2511](https://avatars.discourse-cdn.com/v4/letter/u/f0a364/32.png) [@urk2511](https://hub.mender.io/u/urk2511)\
**Post date:** [February 25, 2021, 5:51pm UTC](https://hub.mender.io/t/integrating-mender-with-yocto-core-image-sato/3247/30 "2021-02-25T17:51:44Z")

</div>

hello drew,  
here it is not allowing to post a log file here. any other alternative through which i can post.

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [February 25, 2021, 6:47pm UTC](https://hub.mender.io/t/integrating-mender-with-yocto-core-image-sato/3247/31 "2021-02-25T18:47:22Z")

</div>

From your log file:

> ERROR: Actual rootfs size (37964 kB) is larger than allowed size 16384 kB

You need to increase the value of [MENDER\_STORAGE\_TOTAL\_SIZE\_MB](https://docs.mender.io/system-updates-debian-family/variables#mender_storage_total_size_mb)

---

<div class="post-metadata">

**Author:** ![urk2511](https://avatars.discourse-cdn.com/v4/letter/u/f0a364/32.png) [@urk2511](https://hub.mender.io/u/urk2511)\
**Post date:** [February 25, 2021, 6:48pm UTC](https://hub.mender.io/t/integrating-mender-with-yocto-core-image-sato/3247/32 "2021-02-25T18:48:41Z")

</div>

yes, i have increased the size now getting a new one  
ERROR: Task (/home/ravi\_uppada/work/vm/test/poky/meta/recipes-sato/images/core-image-sato.bb:do\_image\_mender) failed with exit code ‘134’  
…  
Is there anything more do i need to include in my local.conf??

Thanks

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [February 25, 2021, 7:01pm UTC](https://hub.mender.io/t/integrating-mender-with-yocto-core-image-sato/3247/33 "2021-02-25T19:01:05Z")

</div>

I have no idea. You are not sharing the information from the build logs which shows the actual cause of the error. There should be something higher up in the log. Or perhaps a log.do\_image\_mender file.

---

<div class="post-metadata">

**Author:** ![urk2511](https://avatars.discourse-cdn.com/v4/letter/u/f0a364/32.png) [@urk2511](https://hub.mender.io/u/urk2511)\
**Post date:** [February 25, 2021, 7:03pm UTC](https://hub.mender.io/t/integrating-mender-with-yocto-core-image-sato/3247/34 "2021-02-25T19:03:14Z")

</div>

ravi\_uppada@raviuppada-HP-EliteBook-Folio-9480m:~/work/vm/test/poky/build$ bitbake core-image-sato  
Parsing recipes: 100% |########################################################################################################| Time: 0:02:22  
Parsing of 2386 .bb files complete (0 cached, 2386 parsed). 3505 targets, 146 skipped, 0 masked, 0 errors.  
NOTE: Resolving any missing task queue dependencies  
NOTE: Multiple providers are available for runtime u-boot-default-env (libubootenv, u-boot)  
Consider defining a PREFERRED\_RPROVIDER entry to match u-boot-default-env

Build Configuration:  
BB\_VERSION = “1.46.0”  
BUILD\_SYS = “x86\_64-linux”  
NATIVELSBSTRING = “universal”  
TARGET\_SYS = “aarch64-poky-linux”  
MACHINE = “raspberrypi4-64”  
DISTRO = “poky”  
DISTRO\_VERSION = “3.1.6”  
TUNE\_FEATURES = “aarch64 cortexa72 crc crypto”  
TARGET\_FPU = “”  
meta  
meta-poky  
meta-yocto-bsp = “dunfell:a13bda44fcda4e79e9aed39ca1495eabecb6a7b7”  
meta-gnome  
meta-multimedia  
meta-networking  
meta-oe  
meta-python  
meta-xfce = “dunfell:de37512b25c1f8c6bb6ab2b3782ac0fe01443483”  
meta-raspberrypi = “dunfell:77190af02d48adc2b28216775e6318e9eeda571c”  
meta-mender-core  
meta-mender-raspberrypi = “dunfell:f5864bfb32906b87cc24d5b84e74805994f0ef3e”

Initialising tasks: 100% |#####################################################################################################| Time: 0:00:06  
Sstate summary: Wanted 40 Found 37 Missed 3 Current 2808 (92% match, 99% complete)  
NOTE: Executing Tasks  
ERROR: Task (/home/ravi\_uppada/work/vm/test/poky/meta/recipes-sato/images/core-image-sato.bb:do\_image\_mender) failed with exit code ‘134’  
NOTE: Tasks Summary: Attempted 7096 tasks of which 7087 didn’t need to be rerun and 1 failed.

Summary: 1 task failed:  
/home/ravi\_uppada/work/vm/test/poky/meta/recipes-sato/images/core-image-sato.bb:do\_image\_mender  
…

“DEBUG: Executing python function prepare\_excluded\_directories” only this line is present in the log.  
This is the complete info.

---

<div class="post-metadata">

**Author:** ![dellgreen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/dellgreen/32/85_2.png) [@dellgreen](https://hub.mender.io/u/dellgreen)\
**Post date:** [February 25, 2021, 7:19pm UTC](https://hub.mender.io/t/integrating-mender-with-yocto-core-image-sato/3247/35 "2021-02-25T19:19:29Z")

</div>

inside your yocto build directory run the following to locate the file @drewmoseley is requesting that should shed more light on why its failing

`find tmp/ -name "*log.do_image_sdimg"`

[Previous page](https://hub.mender.io/t/integrating-mender-with-yocto-core-image-sato/3247.md?page=1)
