# i.MX8M Mini (Nitrogen 8) - Mender and Scarthgap Integration

**URL:** <https://hub.mender.io/t/i-mx8m-mini-nitrogen-8-mender-and-scarthgap-integration/7397>\
**Category:** Yocto Project\
**Tags:** nxp, scarthgap\
**Created:** [December 16, 2024, 9:30pm UTC](https://hub.mender.io/t/i-mx8m-mini-nitrogen-8-mender-and-scarthgap-integration/7397 "2024-12-16T21:30:35Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![JCori](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@JCori](https://hub.mender.io/u/JCori)\
**Post date:** [December 18, 2024, 4:28pm UTC](https://hub.mender.io/t/i-mx8m-mini-nitrogen-8-mender-and-scarthgap-integration/7397/9 "2024-12-18T16:28:21Z")

</div>

Hi Josef,

Thanks for the info! In my original setup I had also used Boundary’s patch from Kirkstone to try the integration with Scarthgap.

And yes it seems there is something going on during the `boot.src`, specifically during the` run_mender` setup. I followed [this thread](https://hub.mender.io/t/beaglebone-missing-default-u-boot-environment-in-mmc/1505/15), as it seemed relevant to the errors I was getting. In doing so, I saw that there is a failure when switching partitions.

```auto
=> print mender_saveenv_canary
## Error: "mender_saveenv_canary" not defined
=> run mender_setup
Saving Environment to MMC... MMC partition switch failed
MMC partition switch failed
Failed (1)
=> print mender_saveenv_canary
mender_saveenv_canary=1

```

So, `mender_setup` fails because it is not able to switch the partitions, more likely at the `saveenv` command.

---

_[View the full topic](https://hub.mender.io/t/i-mx8m-mini-nitrogen-8-mender-and-scarthgap-integration/7397)._
