<?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>10126</bug_id>
          
          <creation_ts>2016-08-11 20:59:37 +0000</creation_ts>
          <short_desc>RMC: Bring supported RMC functions to grub-efi bootloader</short_desc>
          <delta_ts>2017-05-18 16:23:20 +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>BSPs</product>
          <component>bsps-meta-intel</component>
          <version>2.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.4</target_milestone>
          <dependson>10086</dependson>
    
    <dependson>10212</dependson>
    
    <dependson>11320</dependson>
    
    <dependson>11321</dependson>
          <blocked>10089</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Jianxun Zhang">jianxun.zhang</reporter>
          <assigned_to name="Todor Minchev">todor.minchev</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>sgw</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>65097</commentid>
    <comment_count>0</comment_count>
    <who name="Jianxun Zhang">jianxun.zhang</who>
    <bug_when>2016-08-11 20:59:37 +0000</bug_when>
    <thetext>So far RMC only supports systemd-boot with patches to it. The functions supported now are:
- Global command line fragment (KBOOTPARAM)
- Installer to deploy any files for board in RMC DB
- Boot entries (This gummiboot-specific feature may not be compatible with grub-efi&apos;s configuration approach)

This ticket tracks the task to bring these RMC functions into grub-efi as much as we can.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65099</commentid>
    <comment_count>1</comment_count>
    <who name="Jianxun Zhang">jianxun.zhang</who>
    <bug_when>2016-08-11 21:02:39 +0000</bug_when>
    <thetext>Depends on 10086 &quot;single library, single API&quot; since we don&apos;t want to revise necessary patches with current RMC design again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65658</commentid>
    <comment_count>2</comment_count>
    <who name="Jianxun Zhang">jianxun.zhang</who>
    <bug_when>2016-08-31 17:53:07 +0000</bug_when>
    <thetext>I pull this enhancement in with its blocker 10086 because we need consider grub when refactoring the API and library in 10086.

It seems grub-efi doesn&apos;t consume gnu-efi lib but has its own EFI code. This makes the single API in EFI context more tricky than I expected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65775</commentid>
    <comment_count>3</comment_count>
    <who name="Jianxun Zhang">jianxun.zhang</who>
    <bug_when>2016-09-02 19:48:06 +0000</bug_when>
    <thetext>Add blocker https://bugzilla.yoctoproject.org/show_bug.cgi?id=10212 for this task since we don&apos;t want to have another bbclass to use grub-efi to deploy rmc.db. We should have a better way to deploy a non-bootloader file to EFI partition for RMC and other valid use cases.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68654</commentid>
    <comment_count>4</comment_count>
    <who name="Jianxun Zhang">jianxun.zhang</who>
    <bug_when>2016-11-28 22:06:32 +0000</bug_when>
    <thetext>I put this back to the new status since I actually haven&apos;t work on this in the current release plan.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69111</commentid>
    <comment_count>5</comment_count>
    <who name="Jianxun Zhang">jianxun.zhang</who>
    <bug_when>2016-12-13 22:45:17 +0000</bug_when>
    <thetext>Todor,
I am not sure if we still need extra enhancements in systemd-boot like global kernel command line fragment in grub-efi, but just from the point to load a grub.cfg from rmc database, this location in grub-efi looks promising.

This is from my unfinished research, you could find a better location too...

[kern/main.c] grub_main (void)-&gt;grub_load_normal_mode ()-&gt;   grub_command_execute (&quot;normal&quot;, 0, 0) -&gt;... -&gt;[normal/main.c] grub_cmd_normal(0) -&gt; grub_enter_normal_mode (const char *config) -&gt; grub_normal_execute (config, 0, 0) -&gt; read_config_file (config)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73332</commentid>
    <comment_count>6</comment_count>
    <who name="Todor Minchev">todor.minchev</who>
    <bug_when>2017-05-18 16:23:20 +0000</bug_when>
    <thetext>Won&apos;t apply to RMC2. No bootloader patching will be required.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>