All of lore.kernel.org
 help / color / mirror / Atom feed
* kernel-fitimage.bbclass possible bug in Yocto 2.6
@ 2019-01-14 10:00 Amol Lad
  0 siblings, 0 replies; only message in thread
From: Amol Lad @ 2019-01-14 10:00 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 2549 bytes --]

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).

[-- Attachment #2: Type: text/html, Size: 6364 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-01-14 13:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-14 10:00 kernel-fitimage.bbclass possible bug in Yocto 2.6 Amol Lad

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.