<?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>11363</bug_id>
          
          <creation_ts>2017-04-13 22:17:26 +0000</creation_ts>
          <short_desc>Support building and deploying multiple kernels for a single image</short_desc>
          <delta_ts>2018-01-17 18:30:17 +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>kernel</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>LET</status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.5 M2</target_milestone>
          
          <blocked>12320</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="California Sullivan">california.l.sullivan</reporter>
          <assigned_to name="Haris Okanovic">haris.okanovic</assigned_to>
          <cc>blloyd</cc>
    
    <cc>bluelightning</cc>
    
    <cc>brian.avery</cc>
    
    <cc>haris.okanovic</cc>
    
    <cc>pokylinux</cc>
    
    <cc>randy.e.witt</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>tim.orling</cc>
    
    <cc>tom.zanussi</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>72502</commentid>
    <comment_count>0</comment_count>
    <who name="California Sullivan">california.l.sullivan</who>
    <bug_when>2017-04-13 22:17:26 +0000</bug_when>
    <thetext>Currently an image we create will only ever have one kernel in it. It should be possible to have a 4.9 and 4.10 kernel in the same image, for example. Ideally, we would have boot targets set up using each kernel automatically as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75263</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2017-07-24 19:52:34 +0000</bug_when>
    <thetext>If it can be designed to build from a list of kernels (we might want up to 4 different kernels in one image) that would be even better.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77776</commentid>
    <comment_count>2</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2017-10-23 23:57:51 +0000</bug_when>
    <thetext>*** Bug 3732 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77949</commentid>
    <comment_count>3</comment_count>
    <who name="Robert Berger">pokylinux</who>
    <bug_when>2017-11-03 17:06:00 +0000</bug_when>
    <thetext>The question is, do we really want different kernel versions, like 4.9, 4.10,... or would it be OK to have different patches and configs. Best would be to have a different sets of kernel version/kernel config/patches per &quot;kernel&quot;.

Could kernel patches/configs be handled by yocto ktypes? 

I would be extremely happy with those kernels:

1) 4.9.x configured as a standard/release kernel[1]

2) 4.9.x configured as a debug kernel[2]

3) 4.9.47 preemp-rt patched/configured

4) 4.9.51 xenomai patched/configured

At the moment I create one rootfs/kernel with Yocto and the other 3 with a Yocto SDK, add user space xenomai and just exchange kernel/device trees to perform some tests.

[1] https://github.com/RobertBerger/meta-mainline/blob/rocko-training-v4.9.x/multi-v7-ml/recipes-kernel/linux/config/multi-v7-ml-base/ktypes/standard/standard.scc

[2] https://github.com/RobertBerger/meta-mainline/blob/rocko-training-v4.9.x/multi-v7-ml/recipes-kernel/linux/config/multi-v7-ml-base/ktypes/debug/debug.scc</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78046</commentid>
    <comment_count>4</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2017-11-08 03:23:50 +0000</bug_when>
    <thetext>The first part of support for this has been occurring in a thread on oe-core mailing list. The latest installment is:

http://lists.openembedded.org/pipermail/openembedded-core/2017-November/144031.html

Please test this approach and give feedback. I performed a simple qemux86 build with the following in my local.conf:

PREFERRED_PROVIDER_virtual/kernel = &quot;linux-yocto&quot;
KERNEL_PACKAGE_NAME_pn-linux-yocto-rt = &quot;rt-linux&quot;
KERNEL_PACKAGE_NAME_pn-linux-yocto-tiny = &quot;tiny-linux&quot;
CORE_IMAGE_EXTRA_INSTALL = &quot;rt-linux tiny-linux&quot;

The resulting bzImages were in /boot as expected:
bzImage -&gt; bzImage-4.12.12-yocto-standard
bzImage-4.12.12-yocto-preempt-rt
bzImage-4.12.12-yocto-tiny</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78652</commentid>
    <comment_count>5</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2017-12-11 00:50:07 +0000</bug_when>
    <thetext>Assigning to actual implementor!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79111</commentid>
    <comment_count>6</comment_count>
    <who name="Haris Okanovic">haris.okanovic</who>
    <bug_when>2018-01-17 18:30:17 +0000</bug_when>
    <thetext>Resolved by commit 6c8c8998 in openembedded-core:master</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>