Skip to contentSkip to conversation

#swupdate integration error.

DISCUSSION [email protected] 2 participants 2 messages Nov 2, 2021

lore
Share & tools
lore
#0 lore raw

Hi Team,

I am trying to integrated meta-Swupdate layer in my existing yocto code. Getting below ERROR. I am very new to yocto and swupdate. So unable to debug it.

Loading cache: 100% |########################################################################################################################################################################| Time: 0:00:01 Loaded 3352 entries from dependency cache.
Parsing recipes: 100% |######################################################################################################################################################################| Time: 0:00:02 Parsing of 2455 .bb files complete (2450 cached, 5 parsed). 3357 targets, 453 skipped, 6 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
NOTE: Multiple providers are available for u-boot-fw-utils (u-boot-fw-utils, u-boot-fslc-fw-utils, u-boot-fslc-fw-utils-cross)
Consider defining a PREFERRED_PROVIDER entry to match u-boot-fw-utils

Build Configuration:
BB_VERSION           = "1.38.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-16.04"
TARGET_SYS           = "arm-poky-linux-gnueabi"
MACHINE              = "imx6s-ccomgx-motec"
DISTRO               = "fsl-imx-fb"
DISTRO_VERSION       = "4.14-sumo"
TUNE_FEATURES        = "arm armv7a vfp neon callconvention-hard cortexa9" TARGET_FPU           = "hard"
meta
meta-poky
meta-oe
meta-multimedia
meta-freescale
meta-freescale-3rdparty
meta-freescale-distro
meta-ametek          = "<unknown>:<unknown>"
*meta-swupdate        = "sumo:f2d65d87485ada5a2d3a744fd7b9e46ec7e6b9f2"* meta-bsp
meta-sdk
meta-browser
meta-networking
meta-python
meta-filesystems     = "<unknown>:<unknown>"

Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:01
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: u-boot-fw-utils-1_2018.01-r0 do_compile: oe_runmake failed
ERROR: u-boot-fw-utils-1_2018.01-r0 do_compile: Function failed: do_compile (log file is located at /home/motec/Graphics_Gx_Motec/Graphics_GX_MOTEC/BSP/yocto/build-motec/tmp/work/imx6s_ccomgx_motec-poky-linux-gnueabi/u-boot-fw-utils/1_2018.01-r0/temp/log.do_compile.3671)
ERROR: Logfile of failure stored in: /home/motec/Graphics_Gx_Motec/Graphics_GX_MOTEC/BSP/yocto/build-motec/tmp/work/imx6s_ccomgx_motec-poky-linux-gnueabi/u-boot-fw-utils/1_2018.01-r0/temp/log.do_compile.3671
Log data follows:

| DEBUG: Executing shell function do_compile
| NOTE: make -j 4 CROSS_COMPILE=arm-poky-linux-gnueabi- CC=arm-poky-linux-gnueabi-gcc  -march=armv7-a -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 --sysroot=/home/motec/Graphics_Gx_Motec/Graphics_GX_MOTEC/BSP/yocto/build-motec/tmp/work/imx6s_ccomgx_motec-poky-linux-gnueabi/u-boot-fw-utils/1_2018.01-r0/recipe-sysroot  -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/motec/Graphics_Gx_Motec/Graphics_GX_MOTEC/BSP/yocto/build-motec/tmp/work/imx6s_ccomgx_motec-poky-linux-gnueabi/u-boot-fw-utils/1_2018.01-r0=/usr/src/debug/u-boot-fw-utils/1_2018.01-r0 -fdebug-prefix-map=/home/motec/Graphics_Gx_Motec/Graphics_GX_MOTEC/BSP/yocto/build-motec/tmp/work/imx6s_ccomgx_motec-poky-linux-gnueabi/u-boot-fw-utils/1_2018.01-r0/recipe-sysroot= -fdebug-prefix-map=/home/motec/Graphics_Gx_Motec/Graphics_GX_MOTEC/BSP/yocto/build-motec/tmp/work/imx6s_ccomgx_motec-poky-linux-gnueabi/u-boot-fw-utils/1_2018.01-r0/recipe-sysroot-native=  -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed HOSTCC=gcc  -isystem/home/motec/Graphics_Gx_Motec/Graphics_GX_MOTEC/BSP/yocto/build-motec/tmp/work/imx6s_ccomgx_motec-poky-linux-gnueabi/u-boot-fw-utils/1_2018.01-r0/recipe-sysroot-native/usr/include -O2 -pipe -L/home/motec/Graphics_Gx_Motec/Graphics_GX_MOTEC/BSP/yocto/build-motec/tmp/work/imx6s_ccomgx_motec-poky-linux-gnueabi/u-boot-fw-utils/1_2018.01-r0/recipe-sysroot-native/usr/lib -L/home/motec/Graphics_Gx_Motec/Graphics_GX_MOTEC/BSP/yocto/build-motec/tmp/work/imx6s_ccomgx_motec-poky-linux-gnueabi/u-boot-fw-utils/1_2018.01-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/home/motec/Graphics_Gx_Motec/Graphics_GX_MOTEC/BSP/yocto/build-motec/tmp/work/imx6s_ccomgx_motec-poky-linux-gnueabi/u-boot-fw-utils/1_2018.01-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/motec/Graphics_Gx_Motec/Graphics_GX_MOTEC/BSP/yocto/build-motec/tmp/work/imx6s_ccomgx_motec-poky-linux-gnueabi/u-boot-fw-utils/1_2018.01-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/motec/Graphics_Gx_Motec/Graphics_GX_MOTEC/BSP/yocto/build-motec/tmp/work/imx6s_ccomgx_motec-poky-linux-gnueabi/u-boot-fw-utils/1_2018.01-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/motec/Graphics_Gx_Motec/Graphics_GX_MOTEC/BSP/yocto/build-motec/tmp/work/imx6s_ccomgx_motec-poky-linux-gnueabi/u-boot-fw-utils/1_2018.01-r0/recipe-sysroot-native/lib -Wl,-O1 V=1 ccomgx_config
| make -f ./scripts/Makefile.build obj=scripts/basic
| rm -f .tmp_quiet_recordmcount
| make -f ./scripts/Makefile.build obj=scripts/kconfig ccomgx_config
| scripts/kconfig/conf  --defconfig=arch/../configs/ccomgx_defconfig Kconfig
| ***
| *** Can't find default configuration "arch/../configs/ccomgx_defconfig"!
| ***
| scripts/kconfig/Makefile:121: recipe for target 'ccomgx_defconfig' failed
| make[1]: *** [ccomgx_defconfig] Error 1
| Makefile:479: recipe for target 'ccomgx_config' failed
| make: *** [ccomgx_config] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/motec/Graphics_Gx_Motec/Graphics_GX_MOTEC/BSP/yocto/build-motec/tmp/work/imx6s_ccomgx_motec-poky-linux-gnueabi/u-boot-fw-utils/1_2018.01-r0/temp/log.do_compile.3671)

ERROR: Task (/home/motec/Graphics_Gx_Motec/Graphics_GX_MOTEC/BSP/yocto/sources/poky/meta/recipes-bsp/u-boot/u-boot-fw-utils_2018.01.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1460 tasks of which 1459 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/motec/Graphics_Gx_Motec/Graphics_GX_MOTEC/BSP/yocto/sources/poky/meta/recipes-bsp/u-boot/u-boot-fw-utils_2018.01.bb:do_compile
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

#1 lore raw

Hi Vishal,

It looks like there is some problem with u-boot-fw-utils compilation. Are you
using U-Boot in your system? Which target do you try to build? As you can see [here](https://github.com/sbabic/meta-swupdate/blob/f2d65d87485ada5a2d3a744fd7b9e46ec7e6b9f2/recipes-support/swupdate/swupdate.inc#L73)

building update image adds u-boot-fw-utils to DEPENDS when U-Boot is used. And
from the logs it looks like the compilation fails because of wrong
UBOOT_MACHINE set. See [here](https://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-bsp/u-boot/u-boot-fw-utils_2018.01.bb?h=sumo&id=b39f4146de84d7b36861859ec669d9c8e2ca77c6#n13)

Cheers,
--
Tomasz Żyjewski
Embedded Systems Engineer
GPG: 5C495EA3EBEECA59
https://3mdeb.com | @3mdeb_com