# Axon-Wizard imx8mp mender integration

**URL:** https://hub.mender.io/t/axon-wizard-imx8mp-mender-integration/6820
**Category:** Yocto Project
**Tags:** yocto, nxp, mender-client
**Created:** [May 14, 2024, 11:27pm UTC](https://hub.mender.io/t/axon-wizard-imx8mp-mender-integration/6820 "2024-05-14T23:27:17Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![zetacu](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/zetacu/32/2205_2.png) [@zetacu](https://hub.mender.io/u/zetacu)
#### Post date: [May 14, 2024, 11:27pm UTC](https://hub.mender.io/t/axon-wizard-imx8mp-mender-integration/6820/1 "2024-05-14T23:27:17Z")

</div>

Axon-Wizard IMX8m-Plus

![image](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/2X/e/e1a57f909784ad81f92e97c8a16f5d0f7699074b.jpeg)

URL: [NXP i.MX8M Plus Evaluation Kit with Baseboard and System-on-Module Cortex-A53 AXON SOM with Yocto and Linux Source code - AXON-WIZARD-IMX8M-PLUS - TechNexion](https://www.technexion.com/products/system-on-modules/evk/axon-wizard-imx8m-plus/)  
Wiki: [About AXON-E-IMX8M-PLUS - AXON-IMX8M-PLUS](https://developer.technexion.com/docs/axon-e-imx8m-plus)

I’m looking to integrate this board with Mender, and I found a helpful post for the [Toradex Verdin IMX8mp](https://hub.mender.io/t/toradex-verdin-imx8m-plus/5026). However, I was unable to modify the [community meta layer](https://github.com/mendersoftware/meta-mender-community/tree/kirkstone/meta-mender-toradex-nxp) to make it work with the Axon-Wizard. I’m new to Yocto and Mender, and I wasn’t able to figure out how to modify the community layer.

---

<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: [May 16, 2024, 11:41am UTC](https://hub.mender.io/t/axon-wizard-imx8mp-mender-integration/6820/2 "2024-05-16T11:41:41Z")

</div>

Hi @zetacu,

It’s been a while since I’ve had a look at the Technexion stuff, but unfortunately it was not a lot of fun (read: badly maintained) back then. At a first glance, they seem to have a BSP layer for the `kirkstone` release: [GitHub - TechNexion/meta-tn-imx-bsp at kirkstone\_5.15.71-2.2.0-stable](https://github.com/TechNexion/meta-tn-imx-bsp/tree/kirkstone_5.15.71-2.2.0-stable)  
As a very rough strategy, I’d start out by building that and making sure the result is working, then extending it with the generic `meta-mender-nxp` layer ([meta-mender-community/meta-mender-nxp at kirkstone · mendersoftware/meta-mender-community · GitHub](https://github.com/mendersoftware/meta-mender-community/tree/kirkstone/meta-mender-nxp)). The Toradex stuff has some peculiarities which will likely get in your way.

Greets,  
Josef

---

<div class="post-metadata">

### Author: ![zetacu](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/zetacu/32/2205_2.png) [@zetacu](https://hub.mender.io/u/zetacu)
#### Post date: [May 16, 2024, 7:37pm UTC](https://hub.mender.io/t/axon-wizard-imx8mp-mender-integration/6820/3 "2024-05-16T19:37:05Z")

</div>

Hi @TheYoctoJester,

When I do a clean Yocto build. Meaning: I pull the [GitHub - TechNexion/meta-tn-imx-bsp at kirkstone\_5.15.71-2.2.0-stable](https://github.com/TechNexion/meta-tn-imx-bsp/tree/kirkstone_5.15.71-2.2.0-stable), sync the repo, and build the `imx-image-core`. This image works just fine. It has nothing as to be expected, but I can login and execute some commands.

Following your suggestions, When I add the mender layers:

```auto
BBLAYERS += " ${BSPDIR}/sources/meta-mender/meta-mender-core "
BBLAYERS += " ${BSPDIR}/sources/meta-mender-community/meta-mender-nxp "

```

I appended the content from the `meta-mender-community/templates/local.conf.append` to my `local.conf`. After that I tried to build the image. It reaches to 99% but then it fails.

```auto
$ bitbake imx-image-core                                                                                                                                                          
WARNING: Layer nxp-nfc should set LAYERSERIES_COMPAT_nxp-nfc in its conf/layer.conf file to list the core layer names it is compatible with.                                                                                   
Loading cache: 100% | | ETA: --:--:--
Loaded 0 entries from dependency cache.                                                                                                                                                                                        
WARNING: /home/reach/edm_yocto_kirkstone/sources/meta-tn-imx-bsp/recipes-core/images/tn-image-docker-os.bb: distro_features_check.bbclass is deprecated, please use features_check.bbclass instead | ETA: 0:00:41
WARNING: /home/reach/edm_yocto_kirkstone/sources/meta-tn-imx-bsp/recipes-core/images/tn-image-docker-os.bb: Recipe inherits features_check but doesn't use it                                                                  
Parsing recipes: 100% |#########################################################################################################################################################################################| Time: 0:00:47
Parsing of 3320 .bb files complete (0 cached, 3320 parsed). 4918 targets, 301 skipped, 5 masked, 0 errors.                                                                                                                     
NOTE: Resolving any missing task queue dependencies                                                                                                                                                                            
NOTE: Multiple providers are available for runtime linux-mfgtool-base (linux-fslc-lts-mfgtool, linux-fslc-mfgtool, linux-imx-mfgtool)                                                                                          
Consider defining a PREFERRED_RPROVIDER entry to match linux-mfgtool-base                                                                                                                                                      
NOTE: Multiple providers are available for runtime linux-mfgtool-image (linux-fslc-lts-mfgtool, linux-fslc-mfgtool, linux-imx-mfgtool)                                                                                         
Consider defining a PREFERRED_RPROVIDER entry to match linux-mfgtool-image                                                                                                                                                     
NOTE: Multiple providers are available for runtime linux-mfgtool-image-image (linux-fslc-lts-mfgtool, linux-fslc-mfgtool, linux-imx-mfgtool)                                                                                   
Consider defining a PREFERRED_RPROVIDER entry to match linux-mfgtool-image-image                                                                                                                                               
                                                                                                                                                                                                                               
Build Configuration:                                                                                                                                                                                                           
BB_VERSION = "2.0.0"                                                                                                                                                                                                 
BUILD_SYS = "x86_64-linux"                                                                                                                                                                                          
NATIVELSBSTRING = "ubuntu-22.04"                                                                                                                                                                                          
TARGET_SYS = "aarch64-poky-linux"                                                                                                                                                                                    
MACHINE = "axon-imx8mp"                                                                                                                                                                                           
DISTRO = "fsl-imx-xwayland"                                                                                                                                                                                      
DISTRO_VERSION = "5.15-kirkstone"                                                                                                                                                                                        
TUNE_FEATURES = "aarch64 armv8a crc crypto"                                                                                                                                                                             
TARGET_FPU = ""                                                                                                                                                                                                      
meta                                                                                                                                                                                                                           
meta-poky = "HEAD:65dafea22018052fe7b2e17e6e4d7eb754224d38"                                                                                                                                                         
meta-oe                                                                                                                                                                                                                        
meta-multimedia                                                                                                                                                                                                                
meta-python = "HEAD:7da6cb848bc42b3e6bd5d2b37b52ba75510a6ca0"                                                                                                                                                         
meta-freescale = "HEAD:c82d4634e7aba8bc0de73ce1dfc997b630051571"                                                                                                                                                         
meta-freescale-3rdparty = "HEAD:5977197340c7a7db17fe3e02a4e014ad997565ae"                                                                                                                                                      
meta-freescale-distro = "HEAD:d5bbb487b2816dfc74984a78b67f7361ce404253"                                                                                                                                                        
meta-bsp                                                                                                                                                                                                                       
meta-sdk                                                                                                                                                                                                                       
meta-ml                                                                                                                                                                                                                        
meta-v2x = "HEAD:ca68ab5d25322b51f54564275c84ab8de3c74ea6"                                                                                                                                                         
meta-nxp-demo-experience = "HEAD:52eaf8bf42f8eda2917a1c8c046003c8c2c8f629"                                                                                                                                                     
meta-chromium = "HEAD:e232c2e21b96dc092d9af8bea4b3a528e7a46dd6"                                                                                                                                                         
meta-clang = "HEAD:c728c3f9168c8a4ed05163a51dd48ca1ad8ac21d"                                                                                                                                                         
meta-gnome                                                                                                                                                                                                                     
meta-networking                                                                                                                                                                                                                
meta-filesystems = "HEAD:7da6cb848bc42b3e6bd5d2b37b52ba75510a6ca0"                                                                                                                                                         
meta-qt6 = "HEAD:ed785a25d12e365d1054700d4fc94a053176eb14"                                                                                                                                                         
meta-virtualization = "HEAD:9482648daf0bb42ff3475e7892542cf99f3b8d48"                                                                                                                                                         
meta-tn-imx-bsp = "HEAD:1ae9d78e6dabeabf9cb914274a79347a608c141b"                                                                                                                                                         
meta-tn-wifi = "HEAD:84f80aeeb629331777582da41e207ced62e97a81"                                                                                                                                                         
meta-tn-vizionsdk = "HEAD:e57d6deda5c27d9fafce394d7caacaf7a2ae6ec0"                                                                                                                                                         
meta-nxp-nfc = "HEAD:5e0e59f5b86f9cb63f5d369dbb514d644d3e76de"                                                                                                                                                         
meta-mender-core = "kirkstone:60db3bb689c956f7b148480b2c7a02351cbe4dbc"                                                                                                                                                    
meta-mender-nxp = "kirkstone:4dce73360532fe9b65db7759fc984b839efb37ca"                                                                                                                                                    
                                                                                                                                                                                                                               
WARNING: The BB_DISKMON_DIRS "ABORT" action has been renamed to "HALT", update configuration                                                                                                                                   
Initialising tasks: 100% |######################################################################################################################################################################################| Time: 0:00:16
Sstate summary: Wanted 3881 Local 3871 Mirrors 0 Missed 10 Current 0 (99% match, 0% complete)                                                                                                                                  
NOTE: Executing Tasks                                                                                                                                                                                                          
ERROR: imx-image-core-1.0-r0 do_image_bootimg: ExecutionError('/home/reach/edm_yocto_kirkstone/build-axon-wizard/tmp/work/axon_imx8mp-poky-linux/imx-image-core/1.0-r0/temp/run.do_image_bootimg.2787062', 1, None, None)      
ERROR: Logfile of failure stored in: /home/reach/edm_yocto_kirkstone/build-axon-wizard/tmp/work/axon_imx8mp-poky-linux/imx-image-core/1.0-r0/temp/log.do_image_bootimg.2787062                                                 
Log data follows:                                                                                                                                                                                                              
| DEBUG: Executing python function extend_recipe_sysroot                                                                                                                                                                       
| NOTE: Direct dependencies are ['/home/reach/edm_yocto_kirkstone/sources/meta-imx/meta-bsp/recipes-bsp/imx-mkimage/imx-boot_1.0.bb:do_populate_sysroot', '/home/reach/edm_yocto_kirkstone/sources/poky/meta/recipes-core/glibc
/cross-localedef-native_2.35.bb:do_populate_sysroot', '/home/reach/edm_yocto_kirkstone/sources/poky/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb:do_populate_sysroot', '/home/reach/edm_yocto_kirkstone/sources/poky/meta/
recipes-devtools/qemu/qemuwrapper-cross_1.0.bb:do_populate_sysroot', '/home/reach/edm_yocto_kirkstone/sources/poky/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb:do_populate_sysroot', 'virtual:native:/home/reach/edm_yo
cto_kirkstone/sources/poky/meta/recipes-core/update-rc.d/update-rc.d_0.8.bb:do_populate_sysroot', 'virtual:native:/home/reach/edm_yocto_kirkstone/sources/poky/meta/recipes-devtools/apt/apt_2.4.5.bb:do_populate_sysroot', 'vi
rtual:native:/home/reach/edm_yocto_kirkstone/sources/poky/meta/recipes-devtools/dosfstools/dosfstools_4.2.bb:do_populate_sysroot', 'virtual:native:/home/reach/edm_yocto_kirkstone/sources/poky/meta/recipes-devtools/dpkg/dpkg
_1.21.4.bb:do_populate_sysroot', 'virtual:native:/home/reach/edm_yocto_kirkstone/sources/poky/meta/recipes-devtools/makedevs/makedevs_1.0.1.bb:do_populate_sysroot', 'virtual:native:/home/reach/edm_yocto_kirkstone/sources/po
ky/meta/recipes-devtools/mtools/mtools_4.0.38.bb:do_populate_sysroot', 'virtual:native:/home/reach/edm_yocto_kirkstone/sources/poky/meta/recipes-devtools/opkg-utils/opkg-utils_0.5.0.bb:do_populate_sysroot', 'virtual:native:
/home/reach/edm_yocto_kirkstone/sources/poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', 'virtual:native:/home/reach/edm_yocto_kirkstone/sources/poky/meta/recipes-extended/pbzip2/pbzip2_1.1.13.bb:do_pop
ulate_sysroot', 'virtual:native:/home/reach/edm_yocto_kirkstone/sources/poky/meta/recipes-extended/pigz/pigz_2.7.bb:do_populate_sysroot', 'virtual:native:/home/reach/edm_yocto_kirkstone/sources/poky/meta/recipes-extended/xz
/xz_5.2.6.bb:do_populate_sysroot', 'virtual:native:/home/reach/edm_yocto_kirkstone/sources/poky/meta/recipes-extended/zstd/zstd_1.5.2.bb:do_populate_sysroot', 'virtual:native:/home/reach/edm_yocto_kirkstone/sources/poky/met
a/recipes-support/bmap-tools/bmap-tools_git.bb:do_populate_sysroot']                                                                                                                                                           
| NOTE: Installed into sysroot: ['dosfstools-native', 'mtools-native']                                                                                                                                                         
| NOTE: Skipping as already exists in sysroot: ['imx-boot', 'cross-localedef-native', 'ldconfig-native', 'qemuwrapper-cross', 'depmodwrapper-cross', 'update-rc.d-native', 'apt-native', 'dpkg-native', 'makedevs-native', 'opk
g-utils-native', 'pseudo-native', 'pbzip2-native', 'pigz-native', 'xz-native', 'zstd-native', 'bmap-tools-native', 'systemd-systemctl-native', 'gettext-minimal-native', 'perl-native', 'libtool-native', 'gettext-native', 'zl
ib-native', 'bzip2-native', 'kmod-native', 'debianutils-native', 'openssl-native', 'shadow-native', 'qemu-native', 'glib-2.0-native', 'u-boot-tn-imx', 'imx-atf', 'gcc-runtime', 'glibc', 'firmware-imx-8m', 'gdk-pixbuf-native
', 'gtk+3-native', 'desktop-file-utils-native', 'texinfo-dummy-native', 'mkfontscale-native', 'db-native', 'xxhash-native', 'gnutls-native', 'libgcrypt-native', 'lz4-native', 'cmake-native', 'nss-native', 'shared-mime-info-
native', 'python3-native', 'coreutils-native', 'python3-six-native', 'python3-installer-native', 'python3-setuptools-native', 'python3-wheel-native', 'gdbm-native', 'make-native', 'libffi-native', 'libpcre-native', 'util-li
nux-native', 'linux-libc-headers', 'libgcc', 'libjpeg-turbo-native', 'gobject-introspection-native', 'libpng-native', 'libxfixes-native', 'libxi-native', 'cairo-native', 'fontconfig-native', 'libxrender-native', 'libxrandr-
native', 'libxdamage-native', 'atk-native', 'libxcursor-native', 'libxext-native', 'libxcomposite-native', 'at-spi2-atk-native', 'libx11-native', 'pango-native', 'xorgproto-native', 'util-macros-native', 'freetype-native', 
'libfontenc-native', 'p11-kit-native', 'libunistring-native', 'nettle-native', 'gmp-native', 'libidn2-native', 'libgpg-error-native', 'libcap-native', 'curl-native', 'ncurses-native', 'sqlite3-native', 'nspr-native', 'itsto
ol-native', 'libxml2-native', 'libtirpc-native', 'libnsl2-native', 'util-linux-libuuid-native', 'readline-native', 'attr-native', 'unzip-native', 'python3-flit-core-native', 'libcap-ng-native', 'libpcre2-native', 'flex-nati
ve', 'libxcb-native', 'libsm-native', 'pixman-native', 'expat-native', 'at-spi2-core-native', 'dbus-native', 'xtrans-native', 'fribidi-native', 'harfbuzz-native', 'libxft-native', 'font-util-native', 'libtasn1-native', 'm4-
native', 'libpthread-stubs-native', 'xcb-proto-native', 'libxdmcp-native', 'libxau-native', 'libice-native', 'libxtst-native', 'icu-native', 'gnu-config-native']                                                              
| DEBUG: Python function extend_recipe_sysroot finished                                                                                                                                                                        
| DEBUG: Executing python function set_image_size                                                                                                                                                                              
| DEBUG: 1645758.400000 = 1265968 * 1.300000                                                                                                                                                                                   
| DEBUG: 1645758.400000 = max(1645758.400000, 507904)[1645758.400000] + 0                                                                                                                                                      
| DEBUG: 1645759.000000 = int(1645758.400000)                                                                                                                                                                                  
| DEBUG: 1645759 = aligned(1645759)                                                                                                                                                                                            
| DEBUG: returning 1645759                                                                                                                                                                                                     
| DEBUG: Python function set_image_size finished                                                                                                                                                                               
| DEBUG: Executing shell function do_image_bootimg                                                                                                                                                                             
| 0+0 records in                                                                                                                                                                                                               
| 0+0 records out                                                                                                                                                                                                              
| 0 bytes copied, 2.0377e-05 s, 0.0 kB/s                                                                                                                                                                                       
| mkfs.fat: Warning: lowercase labels might not work properly on some systems                                                                                                                                                  
| mkfs.fat 4.2 (2021-01-31)                                                                                                                                                                                                    
| Disk full                                                                                                                                                                                                                    
| WARNING: exit code 1 from a shell command.                                                                                                                                                                                   
ERROR: Task (/home/reach/edm_yocto_kirkstone/sources/meta-imx/meta-sdk/recipes-fsl/images/imx-image-core.bb:do_image_bootimg) failed with exit code '1'                                                                        
NOTE: Tasks Summary: Attempted 9464 tasks of which 8767 didn't need to be rerun and 1 failed.                                                                                                                                  
                                                                                                                                                                                                                               
Summary: 1 task failed:                                                                                                                                                                                                        
  /home/reach/edm_yocto_kirkstone/sources/meta-imx/meta-sdk/recipes-fsl/images/imx-image-core.bb:do_image_bootimg                                                                                                              
Summary: There were 3 WARNING messages.                                                                                                                                                                                        
Summary: There was 1 ERROR message, returning a non-zero exit code. 

```

It is unclear to me what’s missing and/or miss-configured.

---

<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: [May 17, 2024, 8:28am UTC](https://hub.mender.io/t/axon-wizard-imx8mp-mender-integration/6820/4 "2024-05-17T08:28:39Z")

</div>

Hi @zetacu,

the main problem probably is the `/boot` partition being too small. Try adding something like this to your `local.conf`:

```auto
MENDER_BOOT_PART_SIZE_MB = "64"

```

Greets,  
Josef
