# Toradex Verdin iMX8MM: error building the SDK with Mender

**URL:** <https://hub.mender.io/t/toradex-verdin-imx8mm-error-building-the-sdk-with-mender/5654>\
**Category:** General Discussions\
**Tags:** yocto, imx8mm, toradex, kirkstone\
**Created:** [March 3, 2023, 4:48pm UTC](https://hub.mender.io/t/toradex-verdin-imx8mm-error-building-the-sdk-with-mender/5654 "2023-03-03T16:48:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mowlwurf](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@Mowlwurf](https://hub.mender.io/u/Mowlwurf)\
**Post date:** [March 3, 2023, 4:48pm UTC](https://hub.mender.io/t/toradex-verdin-imx8mm-error-building-the-sdk-with-mender/5654/1 "2023-03-03T16:48:36Z")

</div>

Hello,

I tried Mender on a Toradex Verdin iMX8MM with BSP v6.0 a month ago following [this manual](https://hub.mender.io/t/toradex-verdin-imx8m-mini/2908) and it worked without problems. But with the last updates of the Mender-repo I got the following errors building the SDK:

```auto
$ bitbake tdx-reference-multimedia-image -c populate_sdk
[...]
ERROR: nativesdk-util-linux-2.37.4-r0 do_package: QA Issue: nativesdk-util-linux: Files/directories were installed but not shipped in any package:
  /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-tdxsdk-linux/lib
  /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-tdxsdk-linux/lib/systemd
  /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-tdxsdk-linux/lib/systemd/system
  /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-tdxsdk-linux/lib/systemd/system/fstrim.service
  /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-tdxsdk-linux/lib/systemd/system/fstrim.timer
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
nativesdk-util-linux: 5 installed and not shipped files. [installed-vs-shipped]
ERROR: nativesdk-util-linux-2.37.4-r0 do_package: Fatal QA errors were found, failing task.
ERROR: Logfile of failure stored in: /home/gemac/test/build/tmp/work/x86_64-nativesdk-tdxsdk-linux/nativesdk-util-linux/2.37.4-r0/temp/log.do_package.26665
ERROR: Task (virtual:nativesdk:/home/gemac/test/build/../layers/openembedded-core/meta/recipes-core/util-linux/util-linux_2.37.4.bb:do_package) failed with exit code '1'

```

How can I avoid these errors?

Best regards,  
Markus

---

<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:** [March 3, 2023, 8:26pm UTC](https://hub.mender.io/t/toradex-verdin-imx8mm-error-building-the-sdk-with-mender/5654/2 "2023-03-03T20:26:16Z")

</div>

Hi @Mowlwurf,

this is caused by the `bbappend` that Toradex has for util-linux. This adds `fstrim`: [util-linux\_%.bbappend « util-linux « recipes-core - meta-toradex-bsp-common.git - Toradex BSP layer, recipes common to all modules](https://git.toradex.com/cgit/meta-toradex-bsp-common.git/tree/recipes-core/util-linux/util-linux_%25.bbappend?h=kirkstone-6.x.y)

You can work around it for development purposes by just disabling this `bbappend` by renaming it, it personally add a `.defunct` to the file name for such purposes.

Besides that, this needs to be fixed in their upstream - pinging @drewmoseley

Greetz,  
Josef

---

<div class="post-metadata">

**Author:** ![Mowlwurf](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@Mowlwurf](https://hub.mender.io/u/Mowlwurf)\
**Post date:** [March 6, 2023, 8:03am UTC](https://hub.mender.io/t/toradex-verdin-imx8mm-error-building-the-sdk-with-mender/5654/3 "2023-03-06T08:03:39Z")

</div>

Hi @TheYoctoJester,

thank you for your fast response.  
With renaming the `.bbappend`-file the building of the SDK works.

Best regards,  
Markus

---

<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:** [March 24, 2023, 11:55pm UTC](https://hub.mender.io/t/toradex-verdin-imx8mm-error-building-the-sdk-with-mender/5654/4 "2023-03-24T23:55:01Z")

</div>

@Mowlwurf @TheYoctoJester see my proposed PR here ([systemd: Do not modify DISTRO\_FEATURES\_BACKFILE for mender-systemd config by drewmoseley · Pull Request #1928 · mendersoftware/meta-mender · GitHub](https://github.com/mendersoftware/meta-mender/pull/1928)) that fixes the root cause of this issue.

I did submit a patch to the Toradex BSP layer which would address the specific bbappend being discussed here but the actual root cause is related to how Mender sets up systemd.
