Hi,
There seems to be a bug in kernel-fitimage.bbclass. I get below error message when FIT support is enabled (and with initramfs)
| lib/modules/4.14.54-yocto-standard-custom/kernel/crypto/ctr.ko
| lib/modules/4.14.54-yocto-standard-custom/kernel/crypto/seqiv.ko
| lib/modules/4.14.54-yocto-standard-custom/modules.order
| lib/modules/4.14.54-yocto-standard-custom/modules.builtin
| install: cannot stat 'arch/arm/boot/fitImage.initramfs': No such file or directory
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_deploy (log file is located at /home/adhomes/amol.lad/yocto2.6/poky/build/tmp/work/clearfog-next-linux-gnueabi/linux-marvell/4.14.54+gitAUTOINC+7c0df4bf46-r0/temp/log.do_deploy.109094)
kernel.bbclass is expecting fitImage.initramfs if FIT support is enabled
kernel_do_deploy() {
….
if [ ! -z "${INITRAMFS_IMAGE}" -a x"${INITRAMFS_IMAGE_BUNDLE}" = x1 ]; then
for imageType in ${KERNEL_IMAGETYPES} ; do
initramfs_base_name=${imageType}-${INITRAMFS_NAME}
initramfs_symlink_name=${imageType}-${INITRAMFS_LINK_NAME}
install -m 0644 ${KERNEL_OUTPUT_DIR}/${imageType}.initramfs $deployDir/${initramfs_base_name}.bin
ln -sf ${initramfs_base_name}.bin $deployDir/${initramfs_symlink_name}.bin
done
fi
}
But symlink “fitImage.initramfs” is not generated by kernel-fitimage.bbclass. Only image available in “arch/arm/boot” folder is fitImage-${ INITRAMFS_IMAGE}
I had to add a custom function in my kernel recipe to create this symlink.
Please advise if this is a bug?
Amol