# Digi ConnectCore 6 doesn't generate sdimg file

**URL:** <https://hub.mender.io/t/digi-connectcore-6-doesnt-generate-sdimg-file/7422>\
**Category:** Board Integrations\
**Tags:** yocto, kirkstone, digi\
**Created:** [January 1, 2025, 4:28pm UTC](https://hub.mender.io/t/digi-connectcore-6-doesnt-generate-sdimg-file/7422 "2025-01-01T16:28:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mabembedded](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mabembedded/32/2379_2.png) [@mabembedded](https://hub.mender.io/u/mabembedded)\
**Post date:** [January 1, 2025, 4:28pm UTC](https://hub.mender.io/t/digi-connectcore-6-doesnt-generate-sdimg-file/7422/1 "2025-01-01T16:28:31Z")

</div>

Hi,

Happy New Year!

I’m trying to add Mender support for the Digi ConnectCore 6 board ([NXP i.MX6 Cortex A9 SoM - ConnectCore 6N - Linux, Android and Windows Embedded SOM | Digi International](https://www.digi.com/products/embedded-systems/digi-connectcore/system-on-modules/connectcore-imx6)) using Yocto.

I had to hack up a few of the classes in the `meta-digi` layer to get it to play nicely with `meta-mender` after adding the requisite parameters in my `conf/local.conf` as outlined in your documentation.

However, after executing `bitbake dey-image-qt` which is the final Yocto image, I don’t see a `.sdimg` file. These are the final image files that are generated:

```auto
[build-digi-cc6]$ ls -lh tmp/deploy/images/ccimx6sbc/ | grep img
-rw-r--r-- 1 mab mab 16M Jan 1 10:43 dey-image-qt-xwayland-ccimx6sbc-20250101154246.bootimg
-rw-r--r-- 1 mab mab 128M Jan 1 10:43 dey-image-qt-xwayland-ccimx6sbc-20250101154246.dataimg
-rw-r--r-- 1 mab mab 3.6G Jan 1 10:44 dey-image-qt-xwayland-ccimx6sbc-20250101154246.uefiimg
-rw-r--r-- 1 mab mab 5.7K Jan 1 10:44 dey-image-qt-xwayland-ccimx6sbc-20250101154246.uefiimg.bmap
-rw-r--r-- 1 mab mab 264M Jan 1 10:44 dey-image-qt-xwayland-ccimx6sbc-20250101154246.uefiimg.bz

```

I don’t see an `sdimg` file and it looks like the `uefiimg` file matches the expected file size, but clearly a UEFI image isn’t what I want.

Can you help me understand what I’m doing wrong.

---

<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:** [January 2, 2025, 7:27am UTC](https://hub.mender.io/t/digi-connectcore-6-doesnt-generate-sdimg-file/7422/2 "2025-01-02T07:27:02Z")

</div>

Hi @mabembedded,

Glad to have you around!

Probably you don’t have the Mender feature [`mender-image-sd`](https://docs.mender.io/operating-system-updates-yocto-project/image-customization/features#list-of-features) enabled. Add such do your `local.conf`:

```auto
MENDER_FEATURES_ENABLE:append = " mender-image-sd "

```

Hope this helps, let me know if you have more questions.

Greetz,  
Josef

---

<div class="post-metadata">

**Author:** ![mabembedded](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mabembedded/32/2379_2.png) [@mabembedded](https://hub.mender.io/u/mabembedded)\
**Post date:** [January 2, 2025, 2:56pm UTC](https://hub.mender.io/t/digi-connectcore-6-doesnt-generate-sdimg-file/7422/3 "2025-01-02T14:56:05Z")

</div>

Thanks @TheYoctoJester , that helped. I do see an `.sdimg`. However, after flashing this to the SD card, the `boot` partition doesn’t look correct:

```auto
[yocto-clean]$ ls -l /media/mab/boot/
total 6
drwxr-xr-x 2 mab mab 2048 Apr 5 2011 dtb
drwxr-xr-x 3 mab mab 2048 Apr 5 2011 EFI
drwxr-xr-x 4 mab mab 2048 Apr 5 2011 grub-mender-grubenv

```

On a few positive notes, the RFS looks correct and the boot partition is a FAT partition:

```auto
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 16384 49151 32768 16M c W95 FAT32 (LBA)
/dev/sda2 49152 3653631 3604480 1.7G 83 Linux
/dev/sda3 3653632 7258111 3604480 1.7G 83 Linux
/dev/sda4 7258112 7520255 262144 128M 83 Linux

```

Any thoughts on why Grub was selected as the bootloader, instead of U-Boot?

---

<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:** [January 2, 2025, 8:35pm UTC](https://hub.mender.io/t/digi-connectcore-6-doesnt-generate-sdimg-file/7422/4 "2025-01-02T20:35:21Z")

</div>

Hi @mabembedded,

Probably you are also missing the other feature settings. For an SD-card based board running on `u-boot`, this usually is

```auto
MENDER_FEATURES_ENABLE:append = " mender-uboot mender-image-sd"
MENDER_FEATURES_DISABLE:append = " mender-grub mender-image-uefi"

```

See also [meta-mender-community/kas/include/nxp.yml at scarthgap · mendersoftware/meta-mender-community · GitHub](https://github.com/mendersoftware/meta-mender-community/blob/scarthgap/kas/include/nxp.yml#L28), for example.

Greetz,  
Josef
