I am using Angstrom 2.7b5 distribution provided by Toradex. This version is based on YOCTO "morty". So, I downloaded "morty" branch of meta-swupdate from GIT. But there is a conflict between two provided versions of u-boot-fw-utils in project:
ERROR: Multiple .bb files are due to be built which each provide u-boot-fw-utils:
/home/cominfo/oe-core/build/../layers/meta-toradex-nxp/recipes-bsp/u-boot/u-boot-toradex-fsl-fw-utils_git.bb
/home/cominfo/oe-core/build/../layers/openembedded-core/meta/recipes-bsp/u-boot/u-boot-fw-utils_2016.03.bb
Toradex u-boot version is newer - 2016.11, so I added following line into local.conf:
PREFERRED_PROVIDER_u-boot-fw-utils = "u-boot-toradex-fsl-fw-utils"
But now I got this error:
ERROR: swupdate-2017.01-r0 do_compile: oe_runmake failed
ERROR: swupdate-2017.01-r0 do_compile: Function failed: do_compile (log file is located at /home/cominfo/oe-core/build/tmp-glibc/work/armv7at2hf-neon-angstrom-linux-gnueabi/swupdate/2017.01-r0/temp/log.do_compile.6246)
ERROR: Logfile of failure stored in: /home/cominfo/oe-core/build/tmp-glibc/work/armv7at2hf-neon-angstrom-linux-gnueabi/swupdate/2017.01-r0/temp/log.do_compile.6246
In the log file is this:
/home/cominfo/oe-core/build/tmp-glibc/sysroots/x86_64-linux/usr/libexec/arm-angstrom-linux-gnueabi/gcc/arm-angstrom-linux-gnueabi/6.2.1/ld: error: cannot find -lubootenv
core/built-in.o:syslog.c:function fw_set_one_env: error: undefined reference to 'fw_env_open'
core/built-in.o:syslog.c:function fw_set_one_env: error: undefined reference to 'fw_env_write'
core/built-in.o:syslog.c:function fw_set_one_env: error: undefined reference to 'fw_env_close'
handlers/built-in.o:uboot_handler.c:function install_uboot_environment: error: undefined reference to 'fw_parse_script'
corelib/lib.a(installer.o):installer.c:function install_images: error: undefined reference to 'fw_parse_script'
collect2: error: ld returned 1 exit status
Makefile:372: recipe for target 'swupdate_unstripped' failed
If I add this into local.conf to use 2016.03 version:
PREFERRED_PROVIDER_u-boot-fw-utils = "u-boot-fw-utils"
Then I got this error again:
ERROR: Multiple .bb files are due to be built which each provide u-boot-fw-utils:
/home/cominfo/oe-core/build/../layers/meta-toradex-nxp/recipes-bsp/u-boot/u-boot-toradex-fsl-fw-utils_git.bb
/home/cominfo/oe-core/build/../layers/openembedded-core/meta/recipes-bsp/u-boot/u-boot-fw-utils_2016.03.bb
If I use "master" branch of meta-swupdate instead of "morty", then I got this error:
WARNING: /home/cominfo/oe-core/build/../layers/meta-swupdate/recipes-support/swupdate/swupdate_git.bb: Exception during build_dependencies for SRCREV
WARNING: /home/cominfo/oe-core/build/../layers/meta-swupdate/recipes-support/swupdate/swupdate_git.bb: Error during finalise of /home/cominfo/oe-core/build/../layers/meta-swupdate/recipes-support/swupdate/swupdate_git.bb
ERROR: ExpansionError during parsing /home/cominfo/oe-core/build/../layers/meta-swupdate/recipes-support/swupdate/swupdate_git.bb
Traceback (most recent call last):
bb.data_smart.ExpansionError: Failure expanding variable SRCREV, expression was ${@version_git(d)} which triggered exception TypeError: getVar() missing 1 required positional argument: 'expand'
ERROR: /home/cominfo/oe-core/build/../layers/meta-swupdate/recipes-extended/images/swupdate-image.bb: No IMAGE_CMD defined for IMAGE_FSTYPES entry 'ext4.gz.u-boot' - possibly invalid type name or missing support class