I am trying to figure out how to build a Unified kernel image to boot on aarch64 based systems.  After much googling as Yocto build errors occur, I have found some information. After much searching and trying I think I am close.  I now have this WKS file:

part /boot --source bootimg-efi --sourceparams="loader=grub-efi,create-unified-kernel-image=true,initrd=${INITRAMFS_IMAGE}-${MACHINE}.${INITRAMFS_FSTYPES}" --active --align 4096 --use-uuid
part / --source rootfs  --fstype=ext4 --align 4096 --use-uuid

bootloader --timeout=0 --append="console=ttyAMA0,115200n8"


However, I am still missing a piece.  I get the error message:

    ERROR: Unified Kernel Image EFI stub not found, exiting

This is coming from the scrips/lib/wic/plugins/source/bootimg-efi.py file.  I added a couple of additional prints to get more info:


           deploy_dir = get_bitbake_var("DEPLOY_DIR_IMAGE")
            print("2 kernel_dir ", kernel_dir)
            efi_stub = glob("%s/%s" % (deploy_dir, "linux*.efi.stub"))
            print("2 efi_stub ", efi_stub)
            if len(efi_stub) == 0:
                raise WicError("Unified Kernel Image EFI stub not found, exiting")

The additionial debug shows the glob() function did not find a file matching "linux*.efi.stub" in tmp/deploy/images/xxx.  Which actually does not exist.

After much googling and then grepping in the Yocto meta directories I have not found any reference so far on how to generate the .efi.stub file.  I thought there may be an intermediary file somewhere in the build/tmp directory but no luck.

Does anybody have pointers on this file?  If not is there a suggestion for a more appropriate list to ask on?

Thanks for any info,

Johnnie Peters

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#11734): 
https://lists.yoctoproject.org/g/linux-yocto/message/11734
Mute This Topic: https://lists.yoctoproject.org/mt/93977962/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to