# Didn't find service unit 'mender-connect.service'

**URL:** <https://hub.mender.io/t/didnt-find-service-unit-mender-connect-service/7592>\
**Category:** General Discussions\
**Tags:** yocto, mender-connect, scarthgap\
**Created:** [February 24, 2025, 1:39pm UTC](https://hub.mender.io/t/didnt-find-service-unit-mender-connect-service/7592 "2025-02-24T13:39:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tpilz](https://avatars.discourse-cdn.com/v4/letter/t/d07c76/32.png) [@tpilz](https://hub.mender.io/u/tpilz)\
**Post date:** [February 24, 2025, 1:39pm UTC](https://hub.mender.io/t/didnt-find-service-unit-mender-connect-service/7592/1 "2025-02-24T13:39:26Z")

</div>

Hi, some support is required.

I am trying to build an custom image for an iMX8m Plus CPU on a phyBOARD including mender communication.

I was able to merge all the information from the mender howtos regarding a custom Yocto image, but running “bitbake” I am matching always following error:

ERROR: mender-connect-2.3.0-r0 do\_package: Didn’t find service unit ‘mender-connect.service’, specified in SYSTEMD\_SERVICE:mender-connect.  
ERROR: Logfile of failure stored in: /var/yocto/yocto\_phytec/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/mender-connect/2.3.0/temp/log.do\_package.1446890  
ERROR: Task (/var/yocto/yocto\_phytec/sources/meta-mender/meta-mender-core/recipes-mender/mender-connect/mender-connect\_2.3.0.bb:do\_package) failed with exit code ‘1’.

Maye some ideas about this issue and help would be highly appreciated.

Regards,

Thomas

---

<div class="post-metadata">

**Author:** ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)\
**Post date:** [February 25, 2025, 2:53pm UTC](https://hub.mender.io/t/didnt-find-service-unit-mender-connect-service/7592/2 "2025-02-25T14:53:51Z")

</div>

Hi @tpilz,

Thanks for reaching out! Can you please provide the SHA revision of `meta-mender` that you are using? It should be printed right at the beginning of a `bitbake` run.

Greetz,  
Josef

---

<div class="post-metadata">

**Author:** ![tpilz](https://avatars.discourse-cdn.com/v4/letter/t/d07c76/32.png) [@tpilz](https://hub.mender.io/u/tpilz)\
**Post date:** [February 26, 2025, 11:33am UTC](https://hub.mender.io/t/didnt-find-service-unit-mender-connect-service/7592/3 "2025-02-26T11:33:19Z")

</div>

Hi @TheYoctoJester

thanks for your response.

I added the git repository checkout to the the sources folder. Afterwards I added the “meta-mender/meta-mender-core” to bblayers.conf.

Calling bitbake leads to following version:  
meta-mender-core = “scarthgap:1e93f227d16c74791db2ed1688875c1e28e566ce”

Thanks in advance,

Thomas
