Bug 14779 - [4.0rc1] Edgerouter can not boot up
Summary: [4.0rc1] Edgerouter can not boot up
Status: VERIFIED FIXED
Alias: None
Product: BSPs
Classification: Build System, Metadata & Runtime
Component: bsps-meta-yocto (show other bugs)
Version: 4.0
Hardware: x86 Multiple
: Undecided normal
Target Milestone: ---
Assignee: Kevin Hao
QA Contact: Yi Zhao
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2022-04-10 13:39 UTC by Yi Zhao
Modified: 2022-04-20 02:46 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: Regression (Used to work)
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yi Zhao 2022-04-10 13:39:56 UTC
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 'vlm-boards/22053/kernel'.
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
Comment 1 Kevin Hao 2022-04-10 13:43:30 UTC
This has been fixed by patch https://lists.openembedded.org/g/openembedded-core/message/164184
Comment 2 Richard Purdie 2022-04-12 08:44:57 UTC
Thanks for the quick fix on this! This will mean we need to go to an rc2 but I'll make sure this fix gets in.
Comment 4 Yi Zhao 2022-04-20 02:46:21 UTC
Verified with 4.0 RC3.
Git rev: 00cfdde791a0176c134f31e5a09eff725e75b905