<?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>13519</bug_id>
          
          <creation_ts>2019-09-11 14:55:20 +0000</creation_ts>
          <short_desc>meta-ti (a345e0c2) U-Boot MLO execution fails on Beagleboard-xM (rev C)</short_desc>
          <delta_ts>2024-12-13 19:57: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>BSPs</product>
          <component>bsps-meta-ti</component>
          <version>2.7.1</version>
          <rep_platform>Beagleboard</rep_platform>
          <op_sys>arm</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kevin Cribbs">kec201909</reporter>
          <assigned_to name="Denys Dmytriyenko">denis</assigned_to>
          
          
          
          <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>84928</commentid>
    <comment_count>0</comment_count>
    <who name="Kevin Cribbs">kec201909</who>
    <bug_when>2019-09-11 14:55:20 +0000</bug_when>
    <thetext>U-Boot MLO built for meta-ti (a345e0c2) and current yocto 2.7.1 (38d5c8e) fails to reach first console output on Beagleboard-xM (rev C).


I believe the call stack below fails to complete:
#0  get_cr ()
    at /Yocto/Warrior/xM/190911a/poky/build/tmp/work/beagleboard-poky-linux-gnueabi/u-boot-ti-staging/2019.01+gitAUTOINC+a280dd38e1-r23
/git/arch/arm/include/asm/system.h:376
#1  mmu_setup ()
    at /Yocto/Warrior/xM/190911a/poky/build/tmp/work/beagleboard-poky-linux-gnueabi/u-boot-ti-staging/2019.01+gitAUTOINC+a280dd38e1-r23
/git/arch/arm/lib/cache-cp15.c:224
#2  cache_enable (cache_bit=4)
    at /Yocto/Warrior/xM/190911a/poky/build/tmp/work/beagleboard-poky-linux-gnueabi/u-boot-ti-staging/2019.01+gitAUTOINC+a280dd38e1-r23
/git/arch/arm/lib/cache-cp15.c:242
#3  dcache_enable ()
    at /Yocto/Warrior/xM/190911a/poky/build/tmp/work/beagleboard-poky-linux-gnueabi/u-boot-ti-staging/2019.01+gitAUTOINC+a280dd38e1-r23
/git/arch/arm/lib/cache-cp15.c:325
#4  0x40201dcc in enable_caches ()
    at /Yocto/Warrior/xM/190911a/poky/build/tmp/work/beagleboard-poky-linux-gnueabi/u-boot-ti-staging/2019.01+gitAUTOINC+a280dd38e1-r23
/git/arch/arm/mach-omap2/omap-cache.c:51
#5  0x40203622 in board_init_r (dummy1=&lt;optimized out&gt;, dummy2=&lt;optimized out&gt;)
    at /Yocto/Warrior/xM/190911a/poky/build/tmp/work/beagleboard-poky-linux-gnueabi/u-boot-ti-staging/2019.01+gitAUTOINC+a280dd38e1-r23


I reach a hardware breakpoint at the third instruction below but fail to reach the last instruction show below.
0x402027f4 &lt;dcache_enable+92&gt;   mrc    15, 0, r3, cr1, cr0, {0}
0x402027f8 &lt;dcache_enable+96&gt;   orr.w  r3, r3, #1
0x402027fc &lt;dcache_enable+100&gt;  mcr    15, 0, r3, cr1, cr0, {0}
0x40202800 &lt;dcache_enable+104&gt;  isb    sy



Build Configuration:
BB_VERSION           = &quot;1.42.0&quot;
BUILD_SYS            = &quot;x86_64-linux&quot;
NATIVELSBSTRING      = &quot;linuxmint-19.1&quot;
TARGET_SYS           = &quot;arm-poky-linux-gnueabi&quot;
MACHINE              = &quot;beagleboard&quot;
DISTRO               = &quot;poky&quot;
DISTRO_VERSION       = &quot;2.7.1&quot;
TUNE_FEATURES        = &quot;arm armv7a vfp thumb neon callconvention-hard&quot;
TARGET_FPU           = &quot;hard&quot;
meta                 
meta-poky            
meta-yocto-bsp       = &quot;warrior:38d5c8ea98cfa49825c473eba8984c12edf062be&quot;
meta-ti              = &quot;master:a345e0c20596d4a7924143aead795510d14381fc&quot;


Note:
The JTAG debugger I&apos;m currently using doesn&apos;t work well in thumb mode code so I tried to disable thumb mode (where I could easily). Your offsets could be different.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100442</commentid>
    <comment_count>1</comment_count>
    <who name="Denys Dmytriyenko">denis</who>
    <bug_when>2024-12-13 19:57:26 +0000</bug_when>
    <thetext>Closing a very old bug from 5 years ago.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>