# Non-existent task do\_mender\_tar\_src

**URL:** <https://hub.mender.io/t/non-existent-task-do-mender-tar-src/3676>\
**Category:** General Discussions\
**Tags:** yocto\
**Created:** [May 25, 2021, 7:01am UTC](https://hub.mender.io/t/non-existent-task-do-mender-tar-src/3676 "2021-05-25T07:01:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![KolyaHD](https://avatars.discourse-cdn.com/v4/letter/k/ecb155/32.png) [@KolyaHD](https://hub.mender.io/u/KolyaHD)\
**Post date:** [May 25, 2021, 7:01am UTC](https://hub.mender.io/t/non-existent-task-do-mender-tar-src/3676/1 "2021-05-25T07:01:30Z")

</div>

Hi,  
i have the following error:

> ERROR: Task do\_patch in \<…mypath…\>/sources/meta-mender/meta-mender-core/recipes-bsp/u-boot/u-boot-fw-utils-mender-auto-provided\_1.0.bb depends upon non-existent task do\_mender\_tar\_src in \<…mypath…\>/sources/meta-secc-secc/recipes-bsp/u-boot/u-boot-secc-secc.bb  
> ERROR: Command execution failed: 1

I found this page discussing this error, but none of the suggested fixes worked for me:  
[https://groups.google.com/a/lists.mender.io/g/mender/c/MI3m6UXWDhs/m/-zoRxwEvAgAJ](https://groups.google.com/a/lists.mender.io/g/mender/c/MI3m6UXWDhs/m/-zoRxwEvAgAJ)

I am trying to build for the yocto project (zeus), with a custom fork of u-boot.

Does anyone know how to solve this?  
Regards,  
Kolya

---

<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:** [May 25, 2021, 12:08pm UTC](https://hub.mender.io/t/non-existent-task-do-mender-tar-src/3676/2 "2021-05-25T12:08:10Z")

</div>

You need to require the u-boot-mender.inc file somewhere in your recipe.

---

<div class="post-metadata">

**Author:** ![KolyaHD](https://avatars.discourse-cdn.com/v4/letter/k/ecb155/32.png) [@KolyaHD](https://hub.mender.io/u/KolyaHD)\
**Post date:** [May 26, 2021, 12:24am UTC](https://hub.mender.io/t/non-existent-task-do-mender-tar-src/3676/3 "2021-05-26T00:24:37Z")

</div>

Hi @drewmoseley,  
I have already done that.  
Here is my u-boot bb file:

```
SUMMARY = "U-Boot for LF SECC SECC (based on Variscite's i.MX boards)"
require recipes-bsp/u-boot/u-boot.inc
require recipes-bsp/u-boot/u-boot-mender.inc
inherit pythonnative

PROVIDES += "u-boot"
RPROVIDES_${PN} += "u-boot"
DEPENDS_append = " python dtc-native"

include u-boot-common.inc

inherit fsl-u-boot-localversion

LOCALVERSION ?= "-${SRCBRANCH}"

BOOT_TOOLS = "imx-boot-tools"

PACKAGE_ARCH = "${MACHINE_ARCH}"
COMPATIBLE_MACHINE = "(mx6|secc-secc)"

UBOOT_NAME_mx6 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}"
UBOOT_NAME_secc-secc = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}"
UBOOT_NAME_mx7 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}"
UBOOT_NAME_mx8 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}"

```

Here is my u-boot bbappend file:

```
MENDER_UBOOT_AUTO_CONFIGURE = "0"

FILESEXTRAPATHS_prepend := "${THISDIR}/files:"

SRC_URI_append = " \
	file://0005-fw_env_main.c-Fix-incorrect-size-for-malloc-ed-strin.patch \
"

```

Regards,  
Kolya

---

<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:** [May 26, 2021, 1:48pm UTC](https://hub.mender.io/t/non-existent-task-do-mender-tar-src/3676/4 "2021-05-26T13:48:27Z")

</div>

Hmm. That normally fixed it for me. @kacf any suggestions?

---

<div class="post-metadata">

**Author:** ![kacf](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/kacf/32/146_2.png) [@kacf](https://hub.mender.io/u/kacf)\
**Post date:** [May 27, 2021, 8:40am UTC](https://hub.mender.io/t/non-existent-task-do-mender-tar-src/3676/5 "2021-05-27T08:40:24Z")

</div>

Make sure you have also defined:

```auto
MENDER_FEATURES_ENABLE_append = " mender-uboot"
MENDER_FEATURES_DISABLE_append = " mender-grub"

```

in either `local.conf` or another global file. This is required to [integrate with the U-Boot boot loader](https://docs.mender.io/system-updates-yocto-project/board-integration/bootloader-support/u-boot#enabling-u-boot).

---

<div class="post-metadata">

**Author:** ![KolyaHD](https://avatars.discourse-cdn.com/v4/letter/k/ecb155/32.png) [@KolyaHD](https://hub.mender.io/u/KolyaHD)\
**Post date:** [May 31, 2021, 12:01am UTC](https://hub.mender.io/t/non-existent-task-do-mender-tar-src/3676/6 "2021-05-31T00:01:03Z")

</div>

Thanks @kacf,  
i think that did it!  
Regards,  
Kolya
