Bug 15310 - Build installer image failed
Summary: Build installer image failed
Status: RESOLVED FIXED
Alias: None
Product: BSPs
Classification: Build System, Metadata & Runtime
Component: bsps-meta-intel (show other bugs)
Version: unspecified
Hardware: x86 x86_64
: Medium+ normal
Target Milestone: 5.0 M2
Assignee: Anuj Mittal
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2023-12-07 02:33 UTC by lucio.liu
Modified: 2023-12-08 07:27 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments
Error message (93.90 KB, image/png)
2023-12-07 02:33 UTC, lucio.liu
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description lucio.liu 2023-12-07 02:33:15 UTC
Created attachment 4998 [details]
Error message

I want to use the meta-intel layer to generate an installer image of core-image-base following README guide. During the compilation process, an error occurred with the error message stating that core-image-base-intel-corei7-64.ext4 does not exist in the path/to/build/tmp/work/intel_corei7_64-poky-linux/core-image-base/1.0/deploy-core-image-base-image-complete directory. However, I found that there is core-image-base-intel-corei7-64.rootfs.ext4 in this directory. Did I overlook something?

My local.conf

MACHINE ??= "qemux86-64"
MACHINE ?= "intel-corei7-64"

PREFERRED_PROVIDER_virtual/kernel ?= "linux-intel-rt"

IMAGE_INSTALL:append = " \
    vim \
    "

WKS_FILE = "image-installer.wks.in"
IMAGE_FSTYPES:append = " ext4"
IMAGE_TYPEDEP_wic = "ext4"
INITRD_IMAGE_LIVE="core-image-minimal-initramfs"
do_image_wic[depends] += "${INITRD_IMAGE_LIVE}:do_image_complete"
do_rootfs[depends] += "virtual/kernel:do_deploy"
IMAGE_BOOT_FILES:append = "\
    ${KERNEL_IMAGETYPE} \
    microcode.cpio \
    ${IMGDEPLOYDIR}/${IMAGE_BASENAME}-${MACHINE}.ext4;rootfs.img \
    ${@bb.utils.contains('EFI_PROVIDER', 'grub-efi', 'grub-efi-bootx64.efi;EFI/BOOT/bootx64.efi', '', d)} \
    ${@bb.utils.contains('EFI_PROVIDER', 'grub-efi', '${IMAGE_ROOTFS}/boot/EFI/BOOT/grub.cfg;EFI/BOOT/grub.cfg', '', d)} \
    ${@bb.utils.contains('EFI_PROVIDER', 'systemd-boot', 'systemd-bootx64.efi;EFI/BOOT/bootx64.efi', '', d)} \
    ${@bb.utils.contains('EFI_PROVIDER', 'systemd-boot', '${IMAGE_ROOTFS}/boot/loader/loader.conf;loader/loader.conf ', '', d)} \
    ${@bb.utils.contains('EFI_PROVIDER', 'systemd-boot', '${IMAGE_ROOTFS}/boot/loader/entries/boot.conf;loader/entries/boot.conf', '', d)} "

My bblayers.conf

POKY_BBLAYERS_CONF_VERSION = "2"

BBPATH = "${TOPDIR}"
BBFILES ?= ""

BBLAYERS ?= " \
  /home/remote/workspace/poky/meta \
  /home/remote/workspace/poky/meta-poky \
  /home/remote/workspace/poky/meta-yocto-bsp \
  /home/remote/workspace/poky/meta-intel \
  "
Comment 1 Chee Yang 2023-12-08 05:39:13 UTC
The README were not up to date. 
add changes in this patch should work.

https://lists.yoctoproject.org/g/meta-intel/message/8188
Comment 2 lucio.liu 2023-12-08 06:27:18 UTC
OK,it works now!