Hello, Preconditions/Environment ------------------------- I currently build an arm64 target KERNEL_IMAGETYPE=fitImage. I use yocto dunfell version and I build inside an ubuntu 20.04 docker container. Triggering Action/Cause ----------------------- Successful building/shipping of the kernel fitImage Expectation ----------- do_deploy step find correctly the initramfs file and install it Actual Result ------------- I got an error during kernel do_deploy about not founding the initramfs to ship: ``` | lib/modules/4.19.255-rt113-sigfox/kernel/drivers/usb/serial/usb_wwan.ko | lib/modules/4.19.255-rt113-sigfox/kernel/drivers/usb/serial/option.ko | lib/modules/4.19.255-rt113-sigfox/kernel/drivers/usb/class/ | lib/modules/4.19.255-rt113-sigfox/kernel/drivers/usb/class/cdc-wdm.ko | lib/modules/4.19.255-rt113-sigfox/modules.order | lib/modules/4.19.255-rt113-sigfox/modules.builtin | install: cannot stat 'arch/arm64/boot/Image.initramfs': No such file or directory | WARNING: exit code 1 from a shell command. | ERROR: Execution of '/home/fmartinsons/TAPOS_build_for_dunfell/build-tapos/tmp/work/a3700-tapos-linux/linux-sbs/4.19.255+gitAUTOINC+5c7ccbe1aa-r4.17.1.1/temp/run.do_deploy.1460182' failed with exit code 1 ERROR: Task (/home/fmartinsons/TAPOS_build_for_dunfell/tapos/meta-sigfox/meta-sfx-sbs/recipes-kernel/linux/linux-sbs_4.19.255.bb:do_deploy) failed with exit code '1' ``` Reproducibility --------------- always I talked about this problem in https://lists.yoctoproject.org/g/yocto/topic/94774777 so to sum up, in kernel.bbclass , I have KERNEL_IMAGETYPES=fitImage and KERNEL_IMAGETYPE_FOR_MAKE=Image I did some search and found this https://git.openembedded.org/openembedded-core/commit/?id=526bdd88ccd758204452579333ba188e29270bde which seems to be the origin of the problem and another commit (introduced in kirkstone) which revert the previous (and add other things): https://git.openembedded.org/openembedded-core/commit/?id=10a4a132e87e835726bf5da81a60f6f509b90765 To make my setup work , I simply revert 526bdd88ccd758204452579333ba188e29270bde but I open the bug to see if the revert can be done in dunfell branch. Thanks in advance.
If possible I'd like to cherry-pick the same fix for this issue that we have in master and kirkstone. Could you try the version of "kernel: improve transformation from KERNEL_IMAGETYPE_FOR_MAKE" that I have queued? https://git.openembedded.org/openembedded-core-contrib/commit/?h=stable/dunfell-nut&id=c6b1e3572a94727fd848c5176f38a24ec3978d35
(In reply to comment #1) > If possible I'd like to cherry-pick the same fix for this issue that we have > in master and kirkstone. Could you try the version of "kernel: improve > transformation from KERNEL_IMAGETYPE_FOR_MAKE" that I have queued? > > https://git.openembedded.org/openembedded-core-contrib/commit/?h=stable/ > dunfell-nut&id=c6b1e3572a94727fd848c5176f38a24ec3978d35 Hello, I just test this commit on my arm64 target and it looks good. I also test the same with another KERNEL_IMAGETYPE (bzImage) for an x86 target and it is ok too. So for me, you can cherry pick this commit. Thank you
Fixed: https://git.yoctoproject.org/poky/commit/?h=dunfell&id=f7ecae8d15885038d7a9dac79b53c0f804ded032
Great, thanks !