<?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>9057</bug_id>
          
          <creation_ts>2016-02-04 12:58:43 +0000</creation_ts>
          <short_desc>u-boot on Edison BSP fails due to &quot;binutils: Upgrade to 2.26&quot;</short_desc>
          <delta_ts>2016-03-07 06:29:52 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>11</classification_id>
          <classification>Runtime</classification>
          <product>General Runtime</product>
          <component>General Runtime</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>x86</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>critical</bug_severity>
          <target_milestone>2.1 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jussi Laako">jussi.laako</reporter>
          <assigned_to name="Saul Wold">sgw</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>disabled.steve.sakoman</cc>
    
    <cc>raj.khem</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>ulf.hofemeier</cc>
          
          <qa_contact name="Francisco Pedraza">francisco.j.pedraza.gonzalez</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</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>58568</commentid>
    <comment_count>0</comment_count>
    <who name="Jussi Laako">jussi.laako</who>
    <bug_when>2016-02-04 12:58:43 +0000</bug_when>
    <thetext>Recent commit to upgrade binutils to version 2.26 makes u-boot on Intel Edison BSP to be miscompiled and thus causing boot failure.

Reverting commit id 86ade2cc2553c942d9526c5323a11ae151653505 fixes the problem.

May have side effects on other platforms too...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58592</commentid>
    <comment_count>1</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2016-02-04 16:32:28 +0000</bug_when>
    <thetext>Can you provide more details on what it means to be &quot;miscompiled&quot;?  Can you narrow down what part of u-boot is being miscompiled?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58596</commentid>
    <comment_count>2</comment_count>
    <who name="Steve Sakoman">disabled.steve.sakoman</who>
    <bug_when>2016-02-04 16:53:21 +0000</bug_when>
    <thetext>You might try building v2015.10 u-boot.

There is a recipe for it in the jethro branch of the bap:

http://sandbox.sakoman.com/git/?p=meta-edison-bsp.git;a=tree;f=recipes-bsp/u-boot;h=f28ac38ee4b89970801e534b880de890d1fab65c;hb=refs/heads/jethro</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58623</commentid>
    <comment_count>3</comment_count>
    <who name="Jussi Laako">jussi.laako</who>
    <bug_when>2016-02-05 08:41:27 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Can you provide more details on what it means to be &quot;miscompiled&quot;?

That u-boot doesn&apos;t work as expected. It gets stuck right after printing out it&apos;s version string and amount of RAM.

&gt; Can you
&gt; narrow down what part of u-boot is being miscompiled?

Without hardware debugger it is quite hard to see where it gets stuck.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58641</commentid>
    <comment_count>4</comment_count>
    <who name="Jussi Laako">jussi.laako</who>
    <bug_when>2016-02-05 13:33:45 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; You might try building v2015.10 u-boot.
&gt; 
&gt; There is a recipe for it in the jethro branch of the bap:
&gt; 
&gt; http://sandbox.sakoman.com/git/?p=meta-edison-bsp.git;a=tree;f=recipes-bsp/u-
&gt; boot;h=f28ac38ee4b89970801e534b880de890d1fab65c;hb=refs/heads/jethro

Result didn&apos;t change much:

******************************
PSH KERNEL VERSION: b0182b2b
                WR: 20104000
******************************

SCU IPC: 0x800000d0  0xfffce92c

PSH miaHOB version: TNG.B0.VVBD.0000000c

microkernel built 11:24:08 Feb  5 2015

******* PSH loader *******
PCM page cache size = 192 KB 
Cache Constraint = 0 Pages
Arming IPC driver ..
Adding page store pool ..
PagestoreAddr(IMR Start Address) = 0x04899000
pageStoreSize(IMR Size)          = 0x00080000

*** Ready to receive application ***


U-Boot 2015.10 (Feb 05 2016 - 14:48:25 +0200)
                                             
CPU: x86_64, vendor Intel, device 406a8h
       Watchdog enabled                 
DRAM:  980.6 MiB       
No relocation data
resetting ...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58642</commentid>
    <comment_count>5</comment_count>
    <who name="Jussi Laako">jussi.laako</who>
    <bug_when>2016-02-05 13:42:06 +0000</bug_when>
    <thetext>Two last lines are the difference to the earlier 2014 version.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58650</commentid>
    <comment_count>6</comment_count>
    <who name="Jussi Laako">jussi.laako</who>
    <bug_when>2016-02-05 15:02:27 +0000</bug_when>
    <thetext>Verified that the newer u-boot also starts working by reverting the binutils upgrade.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58845</commentid>
    <comment_count>7</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2016-02-10 18:10:55 +0000</bug_when>
    <thetext>This could be related to the upstream binutils issue: https://sourceware.org/bugzilla/show_bug.cgi?id=19538</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58931</commentid>
    <comment_count>8</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2016-02-11 21:34:16 +0000</bug_when>
    <thetext>Filed a new upstream bug: https://sourceware.org/bugzilla/show_bug.cgi?id=19616 

And HJ responded with a patch in that bug that fixes the problem.  It is based 
on the HEAD of the 2.26 branch and there will be a 2.26.1 release coming soon, 
not sure the exact date.

Marking this wait for upstream until that release comes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59041</commentid>
    <comment_count>9</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2016-02-15 17:09:06 +0000</bug_when>
    <thetext>this should be fixed by

http://lists.openembedded.org/pipermail/openembedded-core/2016-February/117529.html

once it lands in master.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59110</commentid>
    <comment_count>10</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2016-02-16 16:06:06 +0000</bug_when>
    <thetext>Thanks to Khem!

Binutils is updated to include this patch in master now.

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=138778501367d3cd0036fc31afbbedce0016f478</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>