<?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>14367</bug_id>
          
          <creation_ts>2021-04-27 16:39:15 +0000</creation_ts>
          <short_desc>Hardknott: grub immediately reboots</short_desc>
          <delta_ts>2021-05-20 15:16:34 +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-oe-core</component>
          <version>3.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86_64</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>3.3.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tony Battersby">tonyb</reporter>
          <assigned_to name="Anuj Mittal">anuj.mittal</assigned_to>
          <cc>kai.kang</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</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>90138</commentid>
    <comment_count>0</comment_count>
    <who name="Tony Battersby">tonyb</who>
    <bug_when>2021-04-27 16:39:15 +0000</bug_when>
    <thetext>Environment: Hardknott on Ubuntu 20.04

After upgrading from Dunfell (YP 3.1) to Hardknott (YP 3.3), our firmware was unable to boot.  Our target hardware is x86-64 booting in legacy BIOS mode using grub on a variety of motherboards and CPUs.  The grub menu would never show up; instead it would reboot immediately, leading to an endless reboot loop.

I have two different workarounds.  Create a bbappend file for grub, and do one of the following two things:

1) Add the following line:

CFLAGS_remove = &quot;-O2&quot;

2) Or make a patch to revert the following commit, and add it to SRC_URI:

https://git.savannah.gnu.org/cgit/grub.git/commit/?id=4ea7bae51f97e49c84dc67ea30b466ca8633b9f6

NOTE: this commit fixes a CVE, so do not revert it without due consideration.

Here is my upstream bug report:

https://savannah.gnu.org/bugs/index.php?60458

Reproducibility: always</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90296</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-05-06 15:23:13 +0000</bug_when>
    <thetext>Friendly reminder Anuj.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90328</commentid>
    <comment_count>2</comment_count>
    <who name="Kai Kang">kai.kang</who>
    <bug_when>2021-05-10 01:07:33 +0000</bug_when>
    <thetext>I met the same failure, so I sent the patch to remove option &apos;-O2&apos; from CFLAGS to oe-core. And it has been merged. But I suppose it should be dropped when the failure fixed by upstream.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90433</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-05-20 15:16:34 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?h=hardknott&amp;id=7ef7ee52476dc3c35c6f02cc7bc2a05df008b14d</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>