Problem Building imx8 Console

Hi together,

I’m trying to build the console-tdx-image for my Apalis imx8.
Therefore I’ve checked out the 3.0 Branch of oe-core and did Bitbake Command.

Anyway It runs until wic-tools, wich gives me following Error:
ERROR: A native program mkfs.ext4 required to build the image was not found (see details above).

Here is the complete log:

DEBUG: Executing python function set_image_size
DEBUG: 1439817.600000 = 1107552 * 1.300000
DEBUG: 1439817.600000 = max(1439817.600000, 65536)[1439817.600000] + 1
DEBUG: 1439818.000000 = int(1439817.600000)
DEBUG: 1439818 = aligned(1439818)
DEBUG: returning 1439818
DEBUG: Python function set_image_size finished
DEBUG: Executing python function extend_recipe_sysroot
NOTE: Direct dependencies are ['virtual:native:/home/patrick/oe-core/build/../layers/openembedded-core/meta/recipes-devtools/prelink/prelink_git.bb:do_populate_sysroot', 'virtual:native:/home/patrick/oe-core/build/../layers/openembedded-core/meta/recipes-extended/parted/parted_3.2.bb:do_populate_sysroot', '/home/patrick/oe-core/build/../layers/openembedded-core/meta/recipes-devtools/binutils/binutils-cross_2.31.bb:do_populate_sysroot', '/home/patrick/oe-core/build/../layers/openembedded-core/meta/recipes-core/glibc/cross-localedef-native_2.28.bb:do_populate_sysroot', 'virtual:native:/home/patrick/oe-core/build/../layers/openembedded-core/meta/recipes-devtools/mtools/mtools_4.0.18.bb:do_populate_sysroot', 'virtual:native:/home/patrick/oe-core/build/../layers/openembedded-core/meta/recipes-extended/bc/bc_1.07.1.bb:do_populate_sysroot', '/home/patrick/oe-core/build/../layers/openembedded-core/meta/recipes-devtools/quilt/quilt-native_0.65.bb:do_populate_sysroot', '/home/patrick/oe-core/build/../layers/openembedded-core/meta/recipes-devtools/gcc/gcc-cross_8.2.bb:do_populate_sysroot', '/home/patrick/oe-core/build/../layers/openembedded-core/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb:do_populate_sysroot', 'virtual:native:/home/patrick/oe-core/build/../layers/openembedded-core/meta/recipes-devtools/makedevs/makedevs_1.0.1.bb:do_populate_sysroot', '/home/patrick/oe-core/build/../layers/openembedded-core/meta/recipes-core/glibc/glibc_2.28.bb:do_populate_sysroot', '/home/patrick/oe-core/build/../layers/meta-freescale/recipes-bsp/imx-mkimage/imx-boot_0.2.bb:do_populate_sysroot', '/home/patrick/oe-core/build/../layers/meta-toradex-nxp/recipes-kernel/linux/linux-toradex_4.14-2.0.x.bb:do_populate_sysroot', 'virtual:native:/home/patrick/oe-core/build/../layers/openembedded-core/meta/recipes-devtools/opkg-utils/opkg-utils_0.3.6.bb:do_populate_sysroot', 'virtual:native:/home/patrick/oe-core/build/../layers/openembedded-core/meta/recipes-devtools/bison/bison_3.0.4.bb:do_populate_sysroot', 'virtual:native:/home/patrick/oe-core/build/../layers/openembedded-core/meta/recipes-core/zlib/zlib_1.2.11.bb:do_populate_sysroot', '/home/patrick/oe-core/build/../layers/meta-freescale/recipes-bsp/imx-atf/imx-atf_1.5.0.bb:do_populate_sysroot', '/home/patrick/oe-core/build/../layers/meta-toradex-nxp/recipes-bsp/u-boot/u-boot-toradex_2018.03.bb:do_populate_sysroot', '/home/patrick/oe-core/build/../layers/meta-toradex-nxp/recipes-bsp/firmware-imx/firmware-imx_8.1.1.bb:do_populate_sysroot', '/home/patrick/oe-core/build/../layers/openembedded-core/meta/recipes-devtools/mklibs/mklibs-native_0.1.43.bb:do_populate_sysroot', '/home/patrick/oe-core/build/../layers/meta-toradex-bsp-common/recipes-bsp/u-boot/u-boot-distro-boot.bb:do_populate_sysroot', '/home/patrick/oe-core/build/../layers/openembedded-core/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb:do_populate_sysroot', '/home/patrick/oe-core/build/../layers/openembedded-core/meta/recipes-devtools/python/python-native_2.7.16.bb:do_populate_sysroot', '/home/patrick/oe-core/build/../layers/openembedded-core/meta/recipes-devtools/apt/apt-native_1.2.24.bb:do_populate_sysroot', '/home/patrick/oe-core/build/../layers/meta-toradex-bsp-common/recipes-bsp/tezi-metadata/tezi-metadata_0.3.bb:do_populate_sysroot', 'virtual:native:/home/patrick/oe-core/build/../layers/openembedded-core/meta/recipes-bsp/u-boot/u-boot-mkimage_2018.07.bb:do_populate_sysroot', 'virtual:native:/home/patrick/oe-core/build/../layers/openembedded-core/meta/recipes-support/lzop/lzop_1.03.bb:do_populate_sysroot', 'virtual:native:/home/patrick/oe-core/build/../layers/openembedded-core/meta/recipes-devtools/swig/swig_3.0.12.bb:do_populate_sysroot', '/home/patrick/oe-core/build/../layers/meta-toradex-nxp/recipes-bsp/firmware-imx/firmware-imx-8x_8.1.1.bb:do_populate_sysroot', 'virtual:native:/home/patrick/oe-core/build/../layers/openembedded-core/meta/recipes-extended/xz/xz_5.2.4.bb:do_populate_sysroot', 'virtual:native:/home/patrick/oe-core/build/../layers/openembedded-core/meta/recipes-devtools/fdisk/gptfdisk_1.0.4.bb:do_populate_sysroot', 'virtual:native:/home/patrick/oe-core/build/../layers/openembedded-core/meta/recipes-core/update-rc.d/update-rc.d_0.8.bb:do_populate_sysroot', 'virtual:native:/home/patrick/oe-core/build/../layers/openembedded-core/meta/recipes-connectivity/openssl/openssl_1.1.1b.bb:do_populate_sysroot', '/home/patrick/oe-core/build/../layers/openembedded-core/meta/recipes-kernel/kern-tools/kern-tools-native_git.bb:do_populate_sysroot', '/home/patrick/oe-core/build/../layers/openembedded-core/meta/recipes-kernel/kmod/kmod-native_git.bb:do_populate_sysroot', 'virtual:native:/home/patrick/oe-core/build/../layers/openembedded-core/meta/recipes-support/bmap-tools/bmap-tools_3.4.bb:do_populate_sysroot', 'virtual:native:/home/patrick/oe-core/build/../layers/openembedded-core/meta/recipes-extended/pigz/pigz_2.4.bb:do_populate_sysroot', '/home/patrick/oe-core/build/../layers/meta-freescale/recipes-bsp/imx-sc-firmware/imx-sc-firmware_0.9.bb:do_populate_sysroot', '/home/patrick/oe-core/build/../layers/openembedded-core/meta/recipes-devtools/gcc/gcc-runtime_8.2.bb:do_populate_sysroot', 'virtual:native:/home/patrick/oe-core/build/../layers/openembedded-core/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', 'virtual:native:/home/patrick/oe-core/build/../layers/openembedded-core/meta/recipes-devtools/dpkg/dpkg_1.18.24.bb:do_populate_sysroot', '/home/patrick/oe-core/build/../layers/openembedded-core/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb:do_populate_sysroot', 'virtual:native:/home/patrick/oe-core/build/../layers/openembedded-core/meta/recipes-kernel/dtc/dtc_1.4.7.bb:do_populate_sysroot', 'virtual:native:/home/patrick/oe-core/build/../layers/openembedded-core/meta/recipes-devtools/dosfstools/dosfstools_4.1.bb:do_populate_sysroot']
NOTE: Installed into sysroot: []
NOTE: Skipping as already exists in sysroot: ['prelink-native', 'parted-native', 'binutils-cross-aarch64', 'cross-localedef-native', 'mtools-native', 'bc-native', 'quilt-native', 'gcc-cross-aarch64', 'ldconfig-native', 'makedevs-native', 'glibc', 'imx-boot', 'linux-toradex', 'opkg-utils-native', 'bison-native', 'zlib-native', 'imx-atf', 'u-boot-toradex', 'firmware-imx', 'mklibs-native', 'u-boot-distro-boot', 'depmodwrapper-cross', 'python-native', 'apt-native', 'tezi-metadata', 'u-boot-mkimage-native', 'lzop-native', 'swig-native', 'firmware-imx-8x', 'xz-native', 'gptfdisk-native', 'update-rc.d-native', 'openssl-native', 'kern-tools-native', 'kmod-native', 'bmap-tools-native', 'pigz-native', 'imx-sc-firmware', 'gcc-runtime', 'pseudo-native', 'dpkg-native', 'qemuwrapper-cross', 'dtc-native', 'dosfstools-native', 'systemd-systemctl-native', 'autoconf-native', 'gnu-config-native', 'binutils-native', 'libtool-native', 'automake-native', 'elfutils-native', 'readline-native', 'ncurses-native', 'texinfo-dummy-native', 'util-linux-native', 'pkgconfig-native', 'gettext-minimal-native', 'shadow-native', 'flex-native', 'qemu-native', 'mkfontdir-native', 'mkfontscale-native', 'glib-2.0-native', 'mpfr-native', 'gmp-native', 'libmpc-native', 'linux-libc-headers', 'sqlite3-native', 'db-native', 'expat-native', 'gdbm-native', 'bzip2-native', 'gdk-pixbuf-native', 'gtk-icon-utils-native', 'curl-native', 'gettext-native', 'lzo-native', 'python3-native', 'libpcre-native', 'popt-native', 'gtk-doc-native', 'python3-setuptools-native', 'debianutils-native', 'libgcc', 'perl-native', 'm4-native', 'pixman-native', 'libusb1-native', 'alsa-lib-native', 'util-macros-native', 'libx11-native', 'xorgproto-native', 'libfontenc-native', 'freetype-native', 'libffi-native', 'libpng-native', 'gobject-introspection-native', 'shared-mime-info-native', 'libjpeg-turbo-native', 'librsvg-native', 'unzip-native', 'xtrans-native', 'libxcb-native', 'font-util-native', 'libxml2-native', 'intltool-native', 'cmake-native', 'ninja-native', 'libcroco-native', 'cairo-native', 'pango-native', 'libxau-native', 'xcb-proto-native', 'libpthread-stubs-native', 'libxdmcp-native', 'libxml-parser-perl-native', 're2c-native', 'libxext-native', 'fontconfig-native', 'libsm-native', 'libxrender-native', 'libxft-native', 'fribidi-native', 'harfbuzz-native', 'gperf-native', 'libice-native', 'meson-native', 'icu-native']
DEBUG: Python function extend_recipe_sysroot finished
DEBUG: Executing shell function do_image_wic
INFO: Creating image(s)...

WARNING: overhead-factor was specified, but size was not, so bitbake variables will be used for the size. In this case both IMAGE_OVERHEAD_FACTOR and --overhead-factor will be applied
ERROR: A native program mkfs.ext4 required to build the image was not found (see details above).

Please make sure wic-tools have e2fsprogs-native in its DEPENDS, build it with 'bitbake wic-tools' and try again.


WARNING: exit code 1 from a shell command.
ERROR: Function failed: do_image_wic (log file is located at /home/patrick/oe-core/build/tmp/work/apalis_imx8x-tdx-linux/console-tdx-image/3.0b3-r0/temp/log.do_image_wic.19851)

Not sure why It’s failing, because e2fsprogs-native is inside wic-tools. Also Bitbake wic-tools is working for me.

Best regards
Patrick

HI @PatrickNies

Could you provide the version of the hardware and software of your module?

Regarding the compilation error, did you install the Prerequisites for your Host Os as described here?
Which Host OS are you using?

Best regards,
Jaski

Jo Jaski,
-It‘s an Apalis imx8 1.0B
A Yes did everything as provided.

OS is an Ubuntu 18.04 on Hyper V

Have you done any changes to any files?
If yes, can you share these changes?

Thanks.

I found this:

Hi @dvescovi

Thanks for your Input.

Best regards,
Jaski