<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>14971</bug_id>
          
          <creation_ts>2022-11-19 07:59:41 +0000</creation_ts>
          <short_desc>dunfell: fitImage initramfs failed to be installed</short_desc>
          <delta_ts>2022-12-08 15:17:26 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>oe-core other</component>
          <version>3.1.25</version>
          <rep_platform>x86</rep_platform>
          <op_sys>arm64</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>3.1.22</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Frédéric Martinsons">frederic.martinsons</reporter>
          <assigned_to name="Steve Sakoman">steve</assigned_to>
          <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>94433</commentid>
    <comment_count>0</comment_count>
    <who name="Frédéric Martinsons">frederic.martinsons</who>
    <bug_when>2022-11-19 07:59:41 +0000</bug_when>
    <thetext>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 &apos;arch/arm64/boot/Image.initramfs&apos;: No such file or directory
    | WARNING: exit code 1 from a shell command.
    | ERROR: Execution of &apos;/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&apos; 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 &apos;1&apos;
```

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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94450</commentid>
    <comment_count>1</comment_count>
    <who name="Steve Sakoman">steve</who>
    <bug_when>2022-11-25 15:42:28 +0000</bug_when>
    <thetext>If possible I&apos;d like to cherry-pick the same fix for this issue that we have in master and kirkstone.  Could you try the version of &quot;kernel: improve transformation from KERNEL_IMAGETYPE_FOR_MAKE&quot; that I have queued?

https://git.openembedded.org/openembedded-core-contrib/commit/?h=stable/dunfell-nut&amp;id=c6b1e3572a94727fd848c5176f38a24ec3978d35</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94453</commentid>
    <comment_count>2</comment_count>
    <who name="Frédéric Martinsons">frederic.martinsons</who>
    <bug_when>2022-11-28 07:58:51 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; If possible I&apos;d like to cherry-pick the same fix for this issue that we have
&gt; in master and kirkstone.  Could you try the version of &quot;kernel: improve
&gt; transformation from KERNEL_IMAGETYPE_FOR_MAKE&quot; that I have queued?
&gt; 
&gt; https://git.openembedded.org/openembedded-core-contrib/commit/?h=stable/
&gt; dunfell-nut&amp;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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94494</commentid>
    <comment_count>3</comment_count>
    <who name="Steve Sakoman">steve</who>
    <bug_when>2022-12-08 14:33:52 +0000</bug_when>
    <thetext>Fixed:

https://git.yoctoproject.org/poky/commit/?h=dunfell&amp;id=f7ecae8d15885038d7a9dac79b53c0f804ded032</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94496</commentid>
    <comment_count>4</comment_count>
    <who name="Frédéric Martinsons">frederic.martinsons</who>
    <bug_when>2022-12-08 15:17:26 +0000</bug_when>
    <thetext>Great, thanks !</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>