<?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>14779</bug_id>
          
          <creation_ts>2022-04-10 13:39:56 +0000</creation_ts>
          <short_desc>[4.0rc1] Edgerouter can not boot up</short_desc>
          <delta_ts>2022-04-20 02:46:21 +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-yocto</component>
          <version>4.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Kevin Hao">kexin.hao</assigned_to>
          <cc>jay.shen.teoh</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>yi.zhao</cc>
          
          <qa_contact name="Yi Zhao">yi.zhao</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>92964</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2022-04-10 13:39:56 +0000</bug_when>
    <thetext>Git rev: master/ed98f1a1ae7e4e2c8e089003a619ae9260a852ad
Image: https://autobuilder.yocto.io/pub/releases/yocto-4.0.rc1/machines/edgerouter/

The edgerouter can not boot up.
Here is the boot log:
Looking for valid bootloader image....
Jumping to start of image at address 0xbfc80000


U-Boot 1.1.1 (UBNT Build ID: 4493936-g009d77b) (Build time: Sep 20 2012 - 15:48:51)

BIST check passed.
UBNT_E100 r1:2, r2:12, serial #: DC9FDB29DAEF
Core clock: 500 MHz, DDR clock: 266 MHz (532 Mhz data rate)
DRAM:  512 MB
Clearing DRAM....... done
Flash:  4 MB
Net:   octeth0, octeth1, octeth2

USB:   (port 0) No USB devices found.
 0 
Interface 0 has 3 ports (RGMII)
Using octeth0 device
TFTP from server 128.224.178.20; our IP address is 128.224.165.32; sending through gateway 128.224.165.1
Filename &apos;vlm-boards/22053/kernel&apos;.
Load address: 0x9f00000
Loading: octeth0: Up 1000 Mbps Full duplex (port  0)
#################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 ######
	 89 MB received
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 ######
	 179 MB received
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #
done
Bytes transferred = 224949728 (d6875e0 hex), 5607 Kbytes/sec
WARNING: Data loaded outside of the reserved load area, memory corruption may occur.
WARNING: Please refer to the bootloader memory map documentation for more information.
argv[2]: coremask=0x3
argv[3]: root=/dev/nfs
argv[4]: ip=128.224.165.32::128.224.165.1:255.255.254.0:edge:eth0:off
argv[5]: nfsroot=128.224.178.20:/export/pxeboot/vlm-boards/22053/rootfs
argv[6]: mtdparts=phys_mapped_flash:512k(boot0),512k(boot1),64k@3072k(eeprom)
ELF file is 64 bit
Allocating memory for ELF segment: addr: 0xffffffff81100000 (adjusted to: 0x1100000), size 0x21c5430
Reg: 0x0 0x0
Reg: 0x1 0x87
Reg: 0x2 0x6C00A002353D671
Reg: 0x3 0x59110000102706C8
Reg: 0x4 0xFF00000
Reg: 0x5 0x6C00A002353D671
Reg: 0x6 0x800000000FF00000
Reg: 0x7 0xFFFFFFFFFFFFFFF0
Reg: 0x8 0x0
Reg: 0x9 0x64814
Reg: 0xA 0xFFFFFFFFC0000AEC
Reg: 0xB 0x59110000003706C8
Reg: 0xC 0xFF00000
Reg: 0xD 0x8000000000024110
Reg: 0xE 0x1100000
Reg: 0xF 0xFFFFFFFFFFFFFFFF
Reg: 0x10 0x0
Reg: 0x11 0xF
Reg: 0x12 0x32C5430
Reg: 0x13 0x24108
Reg: 0x14 0x0
Reg: 0x15 0x0
Reg: 0x16 0x7
Reg: 0x17 0xFFFFFFFFC00D5340
Reg: 0x18 0x0
Reg: 0x19 0xFFFFFFFFC0017F08
Reg: 0x1A 0xFFFFFFFFFFFF8000
Reg: 0x1B 0x30
Reg: 0x1C 0xFFFFFFFFBFC65300
Reg: 0x1D 0xFFFFFFFFFFFF97F8
Reg: 0x1E 0x0
Reg: 0x1F 0xFFFFFFFFBFC00B80
status:   0x504000E7
cause:    0x40008010
epc:      0xFFFFFFFFC00184CC
badvaddr: 0x86C00A002353D679


The size of vmlinux.bin is strange,it is over 200MB on 4.0 rc1:
$ ls -lh vmlinux-edgerouter.bin 
-rw-r--r-- 1 yzhao1 users 215M Apr 10 21:27 vmlinux-edgerouter.bin

But on 3.5 M3, the size is only 18MB:
$ ls -lh vmlinux-edgerouter.bin 
-rw-r--r-- 1 yzhao1 users 18M Mar  8 10:42 vmlinux-edgerouter.bin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92965</commentid>
    <comment_count>1</comment_count>
    <who name="Kevin Hao">kexin.hao</who>
    <bug_when>2022-04-10 13:43:30 +0000</bug_when>
    <thetext>This has been fixed by patch https://lists.openembedded.org/g/openembedded-core/message/164184</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93001</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2022-04-12 08:44:57 +0000</bug_when>
    <thetext>Thanks for the quick fix on this! This will mean we need to go to an rc2 but I&apos;ll make sure this fix gets in.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93039</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2022-04-13 20:33:47 +0000</bug_when>
    <thetext>https://git.yoctoproject.org/poky/commit/?id=d429e927d8c954a7bcf80a4629cc4d895603b5b5</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93130</commentid>
    <comment_count>4</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2022-04-20 02:46:21 +0000</bug_when>
    <thetext>Verified with 4.0 RC3.
Git rev: 00cfdde791a0176c134f31e5a09eff725e75b905</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>