Hello,
I would like to evaluate Mender on a small batch of our Variscite DART-6UL SoMs. I have successfully built a system image based on Yocto v2.5 Sumo, but I run into compilation errors with Yocto v2.6 Thud.
I have followed the corresponding integration guide on the Mender Hub, with some small changes described below:
- “BRANCH” environment variable is set to “thud”
- “MEDIA” environment variable is set to “emmc”
- Using fslc-framebuffer distro instead of fslc-x11.
Using these settings (and vanilla bblayers), bitbake runs into an error at the compilation of U-boot. The log output (attached below) is very long, but I have witnessed the following lines inside:
error CONFIG_BOOTCOUNT_ENV is required for Mender to work. Make sure that: 1) All the instructions at docs.mender.io/devices/integrating-with-u-boot have been followed. 2) All required layers are included in bblayers.conf, including any board specific layers such as meta-mender-
The full log output is the following:
DEBUG: Executing shell function do_compile
NOTE: make -j 8 CROSS_COMPILE=arm-fslc-linux-gnueabi- CC=arm-fslc-linux-gnueabi-gcc --sysroot=/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot V=1 HOSTCC=gcc -isystem/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/usr/include -O2 -pipe -L/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/usr/lib -L/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/miklosj/thudtest/mender-variscite/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 PYTHON=nativepython STAGING_INCDIR=/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/usr/include STAGING_LIBDIR=/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/usr/lib -C /home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git O=/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/build/mx6ul_var_dart_nand_defconfig mx6ul_var_dart_nand_defconfig
make: Entering directory '/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git'
make -C /home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/build/mx6ul_var_dart_nand_defconfig KBUILD_SRC=/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git \
-f /home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git/Makefile mx6ul_var_dart_nand_defconfig
make[1]: Entering directory '/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/build/mx6ul_var_dart_nand_defconfig'
make -f /home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git/scripts/Makefile.build obj=scripts/basic
ln -fsn /home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git source
/bin/bash /home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git/scripts/mkmakefile \
/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git . 2018 03
GEN ./Makefile
gcc -isystem/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/usr/include -O2 -pipe -L/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/usr/lib -L/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/miklosj/thudtest/mender-variscite/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 -Wp,-MD,scripts/basic/.fixdep.d -Iscripts/basic -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/basic/fixdep /home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git/scripts/basic/fixdep.c
rm -f .tmp_quiet_recordmcount
make -f /home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git/scripts/Makefile.build obj=scripts/kconfig mx6ul_var_dart_nand_defconfig
cat /home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git/scripts/kconfig/zconf.hash.c_shipped > scripts/kconfig/zconf.hash.c
cat /home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git/scripts/kconfig/zconf.lex.c_shipped > scripts/kconfig/zconf.lex.c
cat /home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git/scripts/kconfig/zconf.tab.c_shipped > scripts/kconfig/zconf.tab.c
gcc -isystem/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/usr/include -O2 -pipe -L/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/usr/lib -L/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/miklosj/thudtest/mender-variscite/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 -Wp,-MD,scripts/kconfig/.conf.o.d -Iscripts/kconfig -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I/usr/include/ncursesw -DCURSES_LOC="<curses.h>" -DNCURSES_WIDECHAR=1 -DLOCALE -c -o scripts/kconfig/conf.o /home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git/scripts/kconfig/conf.c
gcc -isystem/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/usr/include -O2 -pipe -L/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/usr/lib -L/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/miklosj/thudtest/mender-variscite/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 -Wp,-MD,scripts/kconfig/.zconf.tab.o.d -Iscripts/kconfig -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I/usr/include/ncursesw -DCURSES_LOC="<curses.h>" -DNCURSES_WIDECHAR=1 -DLOCALE -I/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git/scripts/kconfig -Iscripts/kconfig -c -o scripts/kconfig/zconf.tab.o scripts/kconfig/zconf.tab.c
gcc -isystem/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/usr/include -O2 -pipe -L/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/usr/lib -L/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/miklosj/thudtest/mender-variscite/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 -o scripts/kconfig/conf scripts/kconfig/conf.o scripts/kconfig/zconf.tab.o
scripts/kconfig/conf --defconfig=arch/../configs/mx6ul_var_dart_nand_defconfig Kconfig
#
# configuration written to .config
#
make[1]: Leaving directory '/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/build/mx6ul_var_dart_nand_defconfig'
make: Leaving directory '/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git'
NOTE: make -j 8 CROSS_COMPILE=arm-fslc-linux-gnueabi- CC=arm-fslc-linux-gnueabi-gcc --sysroot=/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot V=1 HOSTCC=gcc -isystem/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/usr/include -O2 -pipe -L/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/usr/lib -L/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/miklosj/thudtest/mender-variscite/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 PYTHON=nativepython STAGING_INCDIR=/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/usr/include STAGING_LIBDIR=/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/usr/lib -C /home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git O=/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/build/mx6ul_var_dart_nand_defconfig
make: Entering directory '/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git'
make -C /home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/build/mx6ul_var_dart_nand_defconfig KBUILD_SRC=/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git \
-f /home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git/Makefile
make[1]: Entering directory '/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/build/mx6ul_var_dart_nand_defconfig'
make -f /home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git/Makefile silentoldconfig
make -f /home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git/scripts/Makefile.build obj=scripts/basic
ln -fsn /home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git source
/bin/bash /home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git/scripts/mkmakefile \
/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git . 2018 03
rm -f .tmp_quiet_recordmcount
GEN ./Makefile
make -f /home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git/scripts/Makefile.build obj=scripts/kconfig silentoldconfig
mkdir -p include/config include/generated
test -e include/generated/autoksyms.h || \
touch include/generated/autoksyms.h
scripts/kconfig/conf --silentoldconfig Kconfig
make -f /home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git/scripts/Makefile.autoconf || \
{ rm -f include/config/auto.conf; false; }
mkdir -p include/asm
if [ -d /home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git/arch/arm/mach-mx6/include/mach ]; then \
dest=arch/arm/mach-mx6/include/mach; \
else \
dest=arch/arm/include/asm/arch-mx6; \
fi; \
ln -fsn /home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git/$dest include/asm/arch
set -e; : ' CHK include/config.h'; mkdir -p include/; (echo "/* Automatically generated - do not edit */"; for i in $(echo "IMX_CONFIG=arch/arm/mach-imx/spl_sd.cfg" | sed 's/,/ /g'); do echo \#define CONFIG_$i | sed '/=/ {s/=/ /;q; } ; { s/$/ 1/; }'; done; echo \#define CONFIG_BOARDDIR board/variscite/mx6ul_var_dart; echo \#include \<config_defaults.h\>; echo \#include \<config_uncmd_spl.h\>; echo \#include \<configs/"mx6ul_var_dart".h\>; echo \#include \<asm/config.h\>; echo \#include \<linux/kconfig.h\>; echo \#include \<config_fallbacks.h\>; echo \#include \<config_mender.h\>;) < /home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git/scripts/Makefile.autoconf > include/config.h.tmp; if [ -r include/config.h ] && cmp -s include/config.h include/config.h.tmp; then rm -f include/config.h.tmp; else : ' UPD include/config.h'; mv -f include/config.h.tmp include/config.h; fi
mkdir -p spl/
arm-fslc-linux-gnueabi-gcc --sysroot=/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot -E -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -fshort-wchar -O2 -fno-stack-protector -fno-delete-null-pointer-checks -g -fstack-usage -Wno-format-nonliteral -Werror=date-time -D__KERNEL__ -D__UBOOT__ -D__ARM__ -Wa,-mimplicit-it=always -mthumb -mthumb-interwork -mabi=aapcs-linux -mword-relocations -fno-pic -mno-unaligned-access -ffunction-sections -fdata-sections -fno-common -ffixed-r9 -msoft-float -pipe -Iinclude -I/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git/include -I/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git/arch/arm/include -include /home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git/include/linux/kconfig.h -nostdinc -isystem /home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/usr/bin/arm-fslc-linux-gnueabi/../../lib/arm-fslc-linux-gnueabi/gcc/arm-fslc-linux-gnueabi/8.2.0/include -DCONFIG_SPL_BUILD -DDO_DEPS_ONLY -dM /home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git/include/common.h > spl/u-boot.cfg.tmp && { grep 'define CONFIG_' spl/u-boot.cfg.tmp > spl/u-boot.cfg; rm spl/u-boot.cfg.tmp; } || { rm spl/u-boot.cfg.tmp; false; }
arm-fslc-linux-gnueabi-gcc --sysroot=/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot -x c -DDO_DEPS_ONLY -M -MP -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -fshort-wchar -O2 -fno-stack-protector -fno-delete-null-pointer-checks -g -fstack-usage -Wno-format-nonliteral -Werror=date-time -D__KERNEL__ -D__UBOOT__ -D__ARM__ -Wa,-mimplicit-it=always -mthumb -mthumb-interwork -mabi=aapcs-linux -mword-relocations -fno-pic -mno-unaligned-access -ffunction-sections -fdata-sections -fno-common -ffixed-r9 -msoft-float -pipe -Iinclude -I/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git/include -I/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git/arch/arm/include -include /home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git/include/linux/kconfig.h -nostdinc -isystem /home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/usr/bin/arm-fslc-linux-gnueabi/../../lib/arm-fslc-linux-gnueabi/gcc/arm-fslc-linux-gnueabi/8.2.0/include -MQ include/config/auto.conf /home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git/include/common.h > include/autoconf.mk.dep || { rm include/autoconf.mk.dep; false; }
arm-fslc-linux-gnueabi-gcc --sysroot=/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot -E -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -fshort-wchar -O2 -fno-stack-protector -fno-delete-null-pointer-checks -g -fstack-usage -Wno-format-nonliteral -Werror=date-time -D__KERNEL__ -D__UBOOT__ -D__ARM__ -Wa,-mimplicit-it=always -mthumb -mthumb-interwork -mabi=aapcs-linux -mword-relocations -fno-pic -mno-unaligned-access -ffunction-sections -fdata-sections -fno-common -ffixed-r9 -msoft-float -pipe -Iinclude -I/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git/include -I/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git/arch/arm/include -include /home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git/include/linux/kconfig.h -nostdinc -isystem /home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/usr/bin/arm-fslc-linux-gnueabi/../../lib/arm-fslc-linux-gnueabi/gcc/arm-fslc-linux-gnueabi/8.2.0/include -DDO_DEPS_ONLY -dM /home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git/include/common.h > u-boot.cfg.tmp && { grep 'define CONFIG_' u-boot.cfg.tmp > u-boot.cfg; rm u-boot.cfg.tmp; } || { rm u-boot.cfg.tmp; false; }
In file included from include/config.h:10,
from /home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git/include/common.h:21:
/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git/include/config_mender.h:32:3: error: #error CONFIG_BOOTCOUNT_LIMIT is required for Mender to work. Make sure that: 1) All the instructions at docs.mender.io/devices/integrating-with-u-boot have been followed. 2) All required layers are included in bblayers.conf, including any board specific layers such as meta-mender-<board>
# error CONFIG_BOOTCOUNT_LIMIT is required for Mender to work. Make sure that: 1) All the instructions at docs.mender.io/devices/integrating-with-u-boot have been followed. 2) All required layers are included in bblayers.conf, including any board specific layers such as meta-mender-<board>
^~~~~
In file included from include/config.h:10,
from /home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git/include/common.h:21:
/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git/include/config_mender.h:37:3: error: #error CONFIG_BOOTCOUNT_ENV is required for Mender to work. Make sure that: 1) All the instructions at docs.mender.io/devices/integrating-with-u-boot have been followed. 2) All required layers are included in bblayers.conf, including any board specific layers such as meta-mender-<board>
# error CONFIG_BOOTCOUNT_ENV is required for Mender to work. Make sure that: 1) All the instructions at docs.mender.io/devices/integrating-with-u-boot have been followed. 2) All required layers are included in bblayers.conf, including any board specific layers such as meta-mender-<board>
^~~~~
In file included from include/config.h:10,
from /home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git/include/common.h:21:
/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git/include/config_mender.h:32:3: error: #error CONFIG_BOOTCOUNT_LIMIT is required for Mender to work. Make sure that: 1) All the instructions at docs.mender.io/devices/integrating-with-u-boot have been followed. 2) All required layers are included in bblayers.conf, including any board specific layers such as meta-mender-<board>
# error CONFIG_BOOTCOUNT_LIMIT is required for Mender to work. Make sure that: 1) All the instructions at docs.mender.io/devices/integrating-with-u-boot have been followed. 2) All required layers are included in bblayers.conf, including any board specific layers such as meta-mender-<board>
^~~~~
In file included from include/config.h:10,
from /home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git/include/common.h:21:
/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git/include/config_mender.h:37:3: error: #error CONFIG_BOOTCOUNT_ENV is required for Mender to work. Make sure that: 1) All the instructions at docs.mender.io/devices/integrating-with-u-boot have been followed. 2) All required layers are included in bblayers.conf, including any board specific layers such as meta-mender-<board>
# error CONFIG_BOOTCOUNT_ENV is required for Mender to work. Make sure that: 1) All the instructions at docs.mender.io/devices/integrating-with-u-boot have been followed. 2) All required layers are included in bblayers.conf, including any board specific layers such as meta-mender-<board>
^~~~~
/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git/scripts/Makefile.autoconf:82: recipe for target 'spl/u-boot.cfg' failed
make[2]: *** [spl/u-boot.cfg] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from include/config.h:10,
from /home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git/include/common.h:21:
/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git/include/config_mender.h:32:3: error: #error CONFIG_BOOTCOUNT_LIMIT is required for Mender to work. Make sure that: 1) All the instructions at docs.mender.io/devices/integrating-with-u-boot have been followed. 2) All required layers are included in bblayers.conf, including any board specific layers such as meta-mender-<board>
# error CONFIG_BOOTCOUNT_LIMIT is required for Mender to work. Make sure that: 1) All the instructions at docs.mender.io/devices/integrating-with-u-boot have been followed. 2) All required layers are included in bblayers.conf, including any board specific layers such as meta-mender-<board>
^~~~~
In file included from include/config.h:10,
from /home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git/include/common.h:21:
/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git/include/config_mender.h:37:3: error: #error CONFIG_BOOTCOUNT_ENV is required for Mender to work. Make sure that: 1) All the instructions at docs.mender.io/devices/integrating-with-u-boot have been followed. 2) All required layers are included in bblayers.conf, including any board specific layers such as meta-mender-<board>
# error CONFIG_BOOTCOUNT_ENV is required for Mender to work. Make sure that: 1) All the instructions at docs.mender.io/devices/integrating-with-u-boot have been followed. 2) All required layers are included in bblayers.conf, including any board specific layers such as meta-mender-<board>
^~~~~
/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git/scripts/Makefile.autoconf:50: recipe for target 'include/autoconf.mk.dep' failed
make[2]: *** [include/autoconf.mk.dep] Error 1
/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git/scripts/Makefile.autoconf:79: recipe for target 'u-boot.cfg' failed
make[2]: *** [u-boot.cfg] Error 1
make[1]: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/uboot.release'. Stop.
make[1]: Leaving directory '/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/build/mx6ul_var_dart_nand_defconfig'
Makefile:150: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
make: Leaving directory '/home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git'
ERROR: oe_runmake failed
WARNING: exit code 1 from a shell command.
ERROR: Function failed: do_compile (log file is located at /home/miklosj/thudtest/mender-variscite/build/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/temp/log.do_compile.30915)
So it seems that bitbake cannot execute the automatic patching of U-boot for some reason.
Could you give me some pointers to the possible cause of this error?
Thank you in advance.