# How to get mender-setup to device

**URL:** <https://hub.mender.io/t/how-to-get-mender-setup-to-device/8011>\
**Category:** General Discussions\
**Tags:** yocto, mender-client, scarthgap\
**Created:** [September 24, 2025, 3:07pm UTC](https://hub.mender.io/t/how-to-get-mender-setup-to-device/8011 "2025-09-24T15:07:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michal](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@Michal](https://hub.mender.io/u/Michal)\
**Post date:** [September 24, 2025, 3:07pm UTC](https://hub.mender.io/t/how-to-get-mender-setup-to-device/8011/1 "2025-09-24T15:07:40Z")

</div>

Hi,

I have migrated our Yocto layers to **scarthgap** and upgraded mender layers in process.

I have followed [Upgrading | Mender documentation](https://docs.mender.io/client-installation/install-with-debian-package/upgrading) and replaced all **mender** calls to **mender-xxx** in our scripts on device, but I’m stuck at **mender-setup** part. I can’t see the mender-setup binary in resulting rootfs for device and can not find recipe to include it. Is there any? I suppose, this is repository for source code [GitHub - mendersoftware/mender-setup](https://github.com/mendersoftware/mender-setup) ?

I’m inheriting **mender-full** in my machine file.

Thanks in advance for the info,

Michal

---

<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:** [September 25, 2025, 7:29am UTC](https://hub.mender.io/t/how-to-get-mender-setup-to-device/8011/2 "2025-09-25T07:29:10Z")

</div>

Hi @Michal,

Thanks for reaching out. In a Yocto environment, the `mender-setup` command is usually not required, as the tenant token and server are configured at build time. Hence, we do provide a recipe at [meta-mender-community/meta-mender-validation/recipes-mender/mender-setup at scarthgap · mendersoftware/meta-mender-community · GitHub](https://github.com/mendersoftware/meta-mender-community/tree/scarthgap/meta-mender-validation/recipes-mender/mender-setup) so you can manually add it, but it is not part of the core layer anymore.

Greetz,  
Josef
