Bug 13519

Summary: meta-ti (a345e0c2) U-Boot MLO execution fails on Beagleboard-xM (rev C)
Product: [Build System, Metadata & Runtime] BSPs Reporter: Kevin Cribbs <kec201909>
Component: bsps-meta-tiAssignee: Denys Dmytriyenko <denis>
Status: RESOLVED OBSOLETE QA Contact:
Severity: critical    
Priority: Undecided    
Version: 2.7.1   
Target Milestone: ---   
Hardware: Beagleboard   
OS: arm   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Kevin Cribbs 2019-09-11 14:55:20 UTC
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=<optimized out>, dummy2=<optimized out>)
    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 <dcache_enable+92>   mrc    15, 0, r3, cr1, cr0, {0}
0x402027f8 <dcache_enable+96>   orr.w  r3, r3, #1
0x402027fc <dcache_enable+100>  mcr    15, 0, r3, cr1, cr0, {0}
0x40202800 <dcache_enable+104>  isb    sy



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


Note:
The JTAG debugger I'm currently using doesn't work well in thumb mode code so I tried to disable thumb mode (where I could easily). Your offsets could be different.
Comment 1 Denys Dmytriyenko 2024-12-13 19:57:26 UTC
Closing a very old bug from 5 years ago.