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


The information in this email communication (inclusive of attachments) is confidential to 4RF Limited and the intended recipient(s). If you are not the intended recipient(s), please note that any use, disclosure, distribution or copying of this information or any part thereof is strictly prohibited and that the author accepts no liability for the consequences of any action taken on the basis of the information provided. If you have received this email in error, please notify the sender immediately by return email and then delete all instances of this email from your system. 4RF Limited will not accept responsibility for any consequences associated with the use of this email (including, but not limited to, damages sustained as a result of any viruses and/or any action or lack of action taken in reliance on it).