Re: [yocto] Error during do_image_wic

2021-02-26 Thread Darcy Watkins
Hi,

In follow-up to my previous email, it appears that this error in do_image_wic 
is triggered by something that the meta-security/meta-integrity layer does.



Regards,

Darcy

Darcy Watkins ::  Senior Staff Engineer, Firmware

SIERRA WIRELESS
Direct  +1 604 233 7989   ::  Fax  +1 604 231 1109  ::  Main  +1 604 231 1100
13811 Wireless Way  :: Richmond, BC Canada V6V 3A4
[M4]
dwatk...@sierrawireless.com<mailto:dwatk...@sierrawireless.com> :: 
www.sierrawireless.com<http://www.sierrawireless.com/>

From:  on behalf of "Darcy Watkins via 
lists.yoctoproject.org" 
Reply-To: Darcy Watkins 
Date: Tuesday, February 9, 2021 at 10:51 AM
To: "yocto@lists.yoctoproject.org" 
Subject: [yocto] Error during do_image_wic

Hi,

I have a puzzling error during do_image_wic.  It says a ‘1’ is returned as an 
error rather than 0, but I don’t see in the output what went wrong.  Anyone 
recognize it?  (I am not that familiar with the inner workings of the wic image 
generation tool).

This used to work but broke during a fresh build from scratch.





dwatkins@carmd-ed-n11377:64bit build $ bitbake core-image-selinux-minimal

Loading cache: 100% 
|#|
 Time: 0:00:00

Loaded 3633 entries from dependency cache.

WARNING: No recipes available for:

  
/home/dwatkins/workspace/zeta/skylab_mg90-BSP/meta-MG-os-bsp/recipes-kernel/firmware/linux-firmware_git.bbappend

  
/home/dwatkins/workspace/zeta/skylab_mg90-BSP/meta-MG-os-bsp/recipes-kernel/linux/linux-qoriq_4.19.bbappend

  
/home/dwatkins/workspace/zeta/skylab_mg90-BSP/meta-MG-os-bsp/recipes-kernel/linux/linux-yocto_3.4.bbappend

NOTE: Resolving any missing task queue dependencies



Build Configuration:

BB_VERSION   = "1.46.0"

BUILD_SYS= "x86_64-linux"

NATIVELSBSTRING  = "universal"

TARGET_SYS   = "arm-poky-linux-gnueabi"

MACHINE  = "mg90"

DISTRO   = "poky"

DISTRO_VERSION   = "3.1.5"

TUNE_FEATURES= "arm vfp cortexa7 neon callconvention-hard"

TARGET_FPU   = "hard"

meta-MG-os-bsp   = "master:db03c4adb9ffe9bd0135538ebe399821036e"

meta

meta-poky

meta-yocto-bsp   = "HEAD:6e89d668246fb37b2217aae7ae57390e793696d8"

meta-oe

meta-networking

meta-python

meta-perl= "HEAD:de37512b25c1f8c6bb6ab2b3782ac0fe01443483"

meta-selinux = "HEAD:7af62c91d7d00a260cf28e7908955539304d100d"

meta-security

meta-integrity

meta-security-isafw  = "HEAD:c74cc97641fd93e0e7a4383255e9a0ab3deaf9d7"

meta-freescale   = "HEAD:99bd73bec2a9d84509cb012a08f9062cb65fb24e"



Initialising tasks: 100% 
||
 Time: 0:00:03

Sstate summary: Wanted 2 Found 0 Missed 2 Current 1870 (0% match, 99% complete)

NOTE: Executing Tasks

WARNING: cve-update-db-native-1.0-r0 do_populate_cve_db: Failed to fetch CVE 
data ([SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get 
local issuer certificate (_ssl.c:1108))

Image CVE report stored in: 
/home/dwatkins/workspace/zeta/skylab_mg90-BSP/build/tmp/deploy/images/mg90/core-image-selinux-minimal-mg90-20210209182741.rootfs.cve

ERROR: core-image-selinux-minimal-1.0-r0 do_image_wic: Execution of 
'/home/dwatkins/workspace/zeta/skylab_mg90-BSP/build/tmp/work/mg90-poky-linux-gnueabi/core-image-selinux-minimal/1.0-r0/temp/run.do_image_wic.14994'
 failed with exit code 1:

INFO: Creating image(s)...



ERROR: _exec_cmd: export 
PATH=/home/dwatkins/workspace/zeta/skylab_mg90-BSP/build/tmp/work/mg90-poky-linux-gnueabi/core-image-selinux-minimal/1.0-r0/recipe-sysroot-native/sbin:/home/dwatkins/workspace/zeta/skylab_mg90-BSP/build/tmp/work/mg90-poky-linux-gnueabi/core-image-selinux-minimal/1.0-r0/recipe-sysroot-native/usr/sbin:/home/dwatkins/workspace/zeta/skylab_mg90-BSP/build/tmp/work/mg90-poky-linux-gnueabi/core-image-selinux-minimal/1.0-r0/recipe-sysroot-native/usr/bin:/home/dwatkins/workspace/zeta/skylab_mg90-BSP/build/tmp/work/mg90-poky-linux-gnueabi/core-image-selinux-minimal/1.0-r0/recipe-sysroot-native/bin:/home/dwatkins/workspace/zeta/skylab_mg90-BSP/build/tmp/hosttools:$PATH;export
 
PSEUDO_PREFIX=/home/dwatkins/workspace/zeta/skylab_mg90-BSP/build/tmp/sysroots-components/x86_64/pseudo-native/usr;export
 
PSEUDO_LOCALSTATEDIR=/home/dwatkins/workspace/zeta/skylab_mg90-BSP/build/tmp/work/mg90-poky-linux-gnueabi/core-image-selinux-minimal/1.0-r0/rootfs/../pseudo;export
 
PSEUDO_PASSWD=/home/dwatkins/workspace/zeta/skylab_mg90-BSP/build/tmp/work/mg90-poky-linux-gnueabi/core-image-selinux-minimal/1.0-r0/rootfs;ex

[yocto] Error during do_image_wic

2021-02-09 Thread Darcy Watkins
Hi,

I have a puzzling error during do_image_wic.  It says a ‘1’ is returned as an 
error rather than 0, but I don’t see in the output what went wrong.  Anyone 
recognize it?  (I am not that familiar with the inner workings of the wic image 
generation tool).

This used to work but broke during a fresh build from scratch.





dwatkins@carmd-ed-n11377:64bit build $ bitbake core-image-selinux-minimal

Loading cache: 100% 
|#|
 Time: 0:00:00

Loaded 3633 entries from dependency cache.

WARNING: No recipes available for:

  
/home/dwatkins/workspace/zeta/skylab_mg90-BSP/meta-MG-os-bsp/recipes-kernel/firmware/linux-firmware_git.bbappend

  
/home/dwatkins/workspace/zeta/skylab_mg90-BSP/meta-MG-os-bsp/recipes-kernel/linux/linux-qoriq_4.19.bbappend

  
/home/dwatkins/workspace/zeta/skylab_mg90-BSP/meta-MG-os-bsp/recipes-kernel/linux/linux-yocto_3.4.bbappend

NOTE: Resolving any missing task queue dependencies



Build Configuration:

BB_VERSION   = "1.46.0"

BUILD_SYS= "x86_64-linux"

NATIVELSBSTRING  = "universal"

TARGET_SYS   = "arm-poky-linux-gnueabi"

MACHINE  = "mg90"

DISTRO   = "poky"

DISTRO_VERSION   = "3.1.5"

TUNE_FEATURES= "arm vfp cortexa7 neon callconvention-hard"

TARGET_FPU   = "hard"

meta-MG-os-bsp   = "master:db03c4adb9ffe9bd0135538ebe399821036e"

meta

meta-poky

meta-yocto-bsp   = "HEAD:6e89d668246fb37b2217aae7ae57390e793696d8"

meta-oe

meta-networking

meta-python

meta-perl= "HEAD:de37512b25c1f8c6bb6ab2b3782ac0fe01443483"

meta-selinux = "HEAD:7af62c91d7d00a260cf28e7908955539304d100d"

meta-security

meta-integrity

meta-security-isafw  = "HEAD:c74cc97641fd93e0e7a4383255e9a0ab3deaf9d7"

meta-freescale   = "HEAD:99bd73bec2a9d84509cb012a08f9062cb65fb24e"



Initialising tasks: 100% 
||
 Time: 0:00:03

Sstate summary: Wanted 2 Found 0 Missed 2 Current 1870 (0% match, 99% complete)

NOTE: Executing Tasks

WARNING: cve-update-db-native-1.0-r0 do_populate_cve_db: Failed to fetch CVE 
data ([SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get 
local issuer certificate (_ssl.c:1108))

Image CVE report stored in: 
/home/dwatkins/workspace/zeta/skylab_mg90-BSP/build/tmp/deploy/images/mg90/core-image-selinux-minimal-mg90-20210209182741.rootfs.cve

ERROR: core-image-selinux-minimal-1.0-r0 do_image_wic: Execution of 
'/home/dwatkins/workspace/zeta/skylab_mg90-BSP/build/tmp/work/mg90-poky-linux-gnueabi/core-image-selinux-minimal/1.0-r0/temp/run.do_image_wic.14994'
 failed with exit code 1:

INFO: Creating image(s)...



ERROR: _exec_cmd: export 
PATH=/home/dwatkins/workspace/zeta/skylab_mg90-BSP/build/tmp/work/mg90-poky-linux-gnueabi/core-image-selinux-minimal/1.0-r0/recipe-sysroot-native/sbin:/home/dwatkins/workspace/zeta/skylab_mg90-BSP/build/tmp/work/mg90-poky-linux-gnueabi/core-image-selinux-minimal/1.0-r0/recipe-sysroot-native/usr/sbin:/home/dwatkins/workspace/zeta/skylab_mg90-BSP/build/tmp/work/mg90-poky-linux-gnueabi/core-image-selinux-minimal/1.0-r0/recipe-sysroot-native/usr/bin:/home/dwatkins/workspace/zeta/skylab_mg90-BSP/build/tmp/work/mg90-poky-linux-gnueabi/core-image-selinux-minimal/1.0-r0/recipe-sysroot-native/bin:/home/dwatkins/workspace/zeta/skylab_mg90-BSP/build/tmp/hosttools:$PATH;export
 
PSEUDO_PREFIX=/home/dwatkins/workspace/zeta/skylab_mg90-BSP/build/tmp/sysroots-components/x86_64/pseudo-native/usr;export
 
PSEUDO_LOCALSTATEDIR=/home/dwatkins/workspace/zeta/skylab_mg90-BSP/build/tmp/work/mg90-poky-linux-gnueabi/core-image-selinux-minimal/1.0-r0/rootfs/../pseudo;export
 
PSEUDO_PASSWD=/home/dwatkins/workspace/zeta/skylab_mg90-BSP/build/tmp/work/mg90-poky-linux-gnueabi/core-image-selinux-minimal/1.0-r0/rootfs;export
 PSEUDO_NOSYMLINKEXP=1;export