Wind River Support Network

HomeDefectsLIN1022-1532
Fixed

LIN1022-1532 : Failed to create a platform project with an empty kernel

Created: Sep 1, 2022    Updated: Sep 7, 2022
Resolved Date: Sep 7, 2022
Found In Version: 10.22.33.1
Severity: Standard
Applicable for: Wind River Linux LTS 22
Component/s: Build & Config, Documentation

Description

$./wrlinux-x/setup.sh --machines intel-x86-64 --distro wrlinux --accept-eula=yes --dl-layers --templates feature/empty-kernel

$ . environment-setup-x86_64-wrlinuxsdk-linux
$ . oe-init-build-env

Add the following to your local.conf.
MACHINE_FEATURES:remove = "efi"
RDEPENDS:packagegroup-wr-bsps-profile-tools:remove = "perf"
SKIP_RECIPE[perf] = "No support for placeholder kernel build"
PREFERRED_PROVIDER_virtual/kernel = "linux-dummy"

$ bitbake wrlinux-image-small

| DEBUG: Python function set_image_size finished
| DEBUG: Executing shell function do_image_wic
| INFO: Creating image(s)...
| 
| ERROR: _exec_cmd: install -m 0644 /path/to/build/tmp-glibc/deploy/images/intel-x86-64/bzImage /path/to/build/tmp-glibc/work/intel_x86_64-wrs-linux/wrlinux-image-small/1.0-r1/tmp-wic/hdd/boot/bzImage returned '1' instead of 0
| output: install: cannot stat '/path/to/build/tmp-glibc/deploy/images/intel-x86-64/bzImage': No such file or directory
| 
| WARNING: /path/to/build/tmp-glibc/work/intel_x86_64-wrs-linux/wrlinux-image-small/1.0-r1/temp/run.do_image_wic.2038125:164 exit 1 from 'BUILDDIR="/path/to/build" PSEUDO_UNLOAD=1 wic create "$wks" --vars "/path/to/build/tmp-glibc/sysroots/intel-x86-64/imgdata/" -e "wrlinux-image-small" -o "$build_wic/" -w "$tmp_wic"' 
| WARNING: Backtrace (BB generated script):
|   #1: do_image_wic, /path/to/build/tmp-glibc/work/intel_x86_64-wrs-linux/wrlinux-image-small/1.0-r1/temp/run.do_image_wic.2038125, line 164
|   #2: main, /path/to/build/tmp-glibc/work/intel_x86_64-wrs-linux/wrlinux-image-small/1.0-r1/temp/run.do_image_wic.2038125, line 181 
ERROR: Task (/path/to/layers/wrlinux/wrlinux-distro/recipes-base/images/wrlinux-image-small.bb:do_image_wic) failed with exit code '1' 
NOTE: Tasks Summary: Attempted 4449 tasks of which 0 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /path/to/layers/wrlinux/wrlinux-distro/recipes-base/images/wrlinux-image-small.bb:do_image_wic
Summary: There were 3 WARNING messages.
Summary: There was 1 ERROR message, returning a non-zero exit code.

 

Add the following line to conf/local.conf can fix the problem:

IMAGE_FSTYPES:remove = "wic wic.bmap live"

Steps to Reproduce

/lpg-build/cdc/fast_prod/WRL10_22/WRL10_22_GIT/wrlinux-10/setup.sh --machines intel-x86-64 --distro wrlinux --accept-eula=yes --dl-layers --templates feature/empty-kernel

. environment-setup-x86_64-wrlinuxsdk-linux 
. oe-init-build-env 

Add the following to your local.conf.
MACHINE_FEATURES:remove = "efi"
RDEPENDS:packagegroup-wr-bsps-profile-tools:remove = "perf"
SKIP_RECIPE[perf] = "No support for placeholder kernel build"
PREFERRED_PROVIDER_virtual/kernel = "linux-dummy"

bitbake wrlinux-image-small

For additional information, see Wind River Linux LTS 22Wind River Linux Kernel Configuration and Build, LTS 22 -> Creating a Platform Project with an Empty Kernel:

https://windriver-staging.zoominsoftware.io/bundle/Wind_River_Linux_Kernel_Configuration_and_Build_LTS_22/page/mmo1413843920190.html
Live chat
Online