Bug 12790 - [2.6 M1] Edgerouter can not boot
Summary: [2.6 M1] Edgerouter can not boot
Status: VERIFIED FIXED
Alias: None
Product: BSPs
Classification: Build System, Metadata & Runtime
Component: bsps-meta-yocto (show other bugs)
Version: 2.6
Hardware: EdgeRouter mips64
: Undecided critical
Target Milestone: ---
Assignee: Kevin Hao
QA Contact: Yi Zhao
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2018-06-15 02:57 UTC by Yi Zhao
Modified: 2018-07-23 00:47 UTC (History)
4 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 2018-06-15 02:57:22 UTC
Git rev: master/ddbd7b0cd6580ee26e11aa87e426fb294b372d64
Image location: https://autobuilder.yocto.io/pub/releases/yocto-2.6_M1.rc1/machines/edgerouter/

Deploy kernel and rootfs via NFS. The board can not boot.

Boot message:

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)                                                                                               
scanning bus for devices... 1 USB Devices found                                                               
       scanning bus for storage devices...                                                                    
  Device 0: Vendor:          Prod.: USB DISK 2.0     Rev: PMAP                                                
            Type: Removable Hard Disk                                                                         
            Capacity: 3700.6 MB = 3.6 GB (7579008 x 512)                                                      
9                                                                                                         
8                                                                                                         
7                                                                                                         
6                                                                                                         
5                                                                                                         
4                                                                                                         
3                                                                                                         
2                                                                                                         
1                                                                                                         
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 100 Mbps Full duplex (port  0)                                                         
###                                                                                                           
#################                                                                                             
##################                                                                                            
#################                                                                                             
##########                                                                                                    
	 ########                                                                                                    
#################                                                                                             
###                                                                                                           
done                                                                                                          
Bytes transferred = 13292944 (cad590 hex), 2434 Kbytes/sec                                                    
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 0x1d5cfc0          
Allocated memory for ELF segment: addr: 0xffffffff81100000, size 0x1d5cfc0                                    
Processing PHDR 0                                                                                             
  Loading cabf20 bytes at ffffffff81100000                                                                    
  Clearing 10b10a0 bytes at ffffffff81dabf20                                                                  
## Loading Linux kernel with entry point: 0xffffffff819cd5f0 ...                                              
Bootloader: Done loading app on coremask: 0x3                                                                 
Linux version 4.15.18-yocto-standard (oe-user@oe-host) (gcc version 8.1.0 (GCC)) #1 SMP PREEMPT Tue Jun 12 18:48:55 UTC 2018
CVMSEG size: 2 cache lines (256 bytes)                                                                        
bootconsole [early0] enabled                                                                                  
CPU0 revision is: 000d0601 (Cavium Octeon+)                                                                   
Checking for the multiply/shift bug... no.                                                                    
Checking for the daddiu bug... no.                                                                            
Determined physical RAM map:                                                                                  
 memory: 0000000005000000 @ 0000000002f00000 (usable)                                                         
 memory: 0000000007c00000 @ 0000000008200000 (usable)                                                         
 memory: 000000000fc00000 @ 0000000410000000 (usable)                                                         
 memory: 0000000001d5cfc0 @ 0000000001100000 (usable)                                                         
Wasting 278528 bytes for tracking 4352 unused pages                                                           
Initrd not found or empty - disabling initrd                                                                  
Using internal Device Tree.                                                                                   
software IO TLB [mem 0x08200000-0x0c200000] (64MB) mapped at [        (ptrval)-        (ptrval)]              
Primary instruction cache 32kB, virtually tagged, 4 way, 64 sets, linesize 128 bytes.                         
Primary data cache 16kB, 64-way, 2 sets, linesize 128 bytes.                                                  
Zone ranges:                                                                                                  
  DMA32    [mem 0x0000000000000000-0x00000000efffffff]                                                        
  Normal   [mem 0x00000000f0000000-0x000000041fbfffff]                                                        
Movable zone start for each node                                                                              
Early memory node ranges                                                                                      
  node   0: [mem 0x0000000000000000-0x0000000002e5bfff]                                                       
  node   0: [mem 0x0000000002f00000-0x0000000007efffff]                                                       
  node   0: [mem 0x0000000008200000-0x000000000fdfffff]                                                       
  node   0: [mem 0x0000000410000000-0x000000041fbfffff]                                                       
Initmem setup node 0 [mem 0x0000000000000000-0x000000041fbfffff]                                              
random: fast init done                                                                                        
percpu: Embedded 21 pages/cpu @        (ptrval) s48928 r8192 d28896 u86016                                    
Built 1 zonelists, mobility grouping on.  Total pages: 126594                                                 
Kernel command line:  bootoctlinux $loadaddr coremask=0x3 root=/dev/nfs ip=128.224.165.32::128.224.165.1:255.255.254.0:edge:eth0:off nfsroot=128.224.178.20:/export/pxeboot/vlm-boards/22053/rootfs mtdparts=phys_mapped_flash:512k(boot0),512k(boot1),64k@3072k(eeprom) console=ttyS0,115200
Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)                                               
Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)                                                
Memory: 391808K/514416K available (9055K kernel code, 1200K rwdata, 1984K rodata, 732K init, 17075K bss, 122608K reserved, 0K cma-reserved)
SLUB: HWalign=128, Order=0-3, MinObjects=0, CPUs=2, Nodes=1                                                   
ftrace: allocating 26542 entries in 104 pages                                                                 
Preemptible hierarchical RCU implementation.                                                                  
	RCU restricting CPUs from NR_CPUS=32 to nr_cpu_ids=2.                                                        
	Tasks RCU enabled.                                                                                           
RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2                                                  
NR_IRQS: 512                                                                                                  
clocksource: OCTEON_CVMCOUNT: mask: 0xffffffffffffffff max_cycles: 0xe6a171a037, max_idle_ns: 881590485102 ns 
Console: colour dummy device 80x25                                                                            
Calibrating delay loop (skipped) preset value.. 1000.00 BogoMIPS (lpj=5000000)                                
pid_max: default: 32768 minimum: 301                                                                          
Security Framework initialized                                                                                
Mount-cache hash table entries: 1024 (order: 1, 8192 bytes)                                                   
Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes)                                              
Checking for the daddi bug... no.                                                                             
Hierarchical SRCU implementation.                                                                             
smp: Bringing up secondary CPUs ...                                                                           
SMP: Booting CPU01 (CoreId  1)...                                                                             
CPU1 revision is: 000d0601 (Cavium Octeon+)                                                                   
smp: Brought up 1 node, 2 CPUs                                                                                
devtmpfs: initialized                                                                                         
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns              
futex hash table entries: 512 (order: 4, 65536 bytes)                                                         
xor: measuring software checksum speed                                                                        
   8regs     :   858.000 MB/sec                                                                               
   8regs_prefetch:   751.200 MB/sec                                                                           
   32regs    :   962.400 MB/sec                                                                               
   32regs_prefetch:   850.400 MB/sec                                                                          
xor: using function: 32regs (962.400 MB/sec)                                                                  
NET: Registered protocol family 16                                                                            
Not in host mode, PCI Controller not initialized                                                              
raid6: int64x1  gen()   351 MB/s                                                                              
raid6: int64x1  xor()   172 MB/s                                                                              
raid6: int64x2  gen()   399 MB/s                                                                              
raid6: int64x2  xor()   226 MB/s                                                                              
raid6: int64x4  gen()   386 MB/s                                                                              
raid6: int64x4  xor()   229 MB/s                                                                              
raid6: int64x8  gen()   213 MB/s                                                                              
raid6: int64x8  xor()   172 MB/s                                                                              
raid6: using algorithm int64x2 gen() 399 MB/s                                                                 
raid6: .... xor() 226 MB/s, rmw enabled                                                                       
raid6: using intx1 recovery algorithm                                                                         
vgaarb: loaded                                                                                                
SCSI subsystem initialized                                                                                    
usbcore: registered new interface driver usbfs                                                                
usbcore: registered new interface driver hub                                                                  
usbcore: registered new device driver usb                                                                     
clocksource: Switched to clocksource OCTEON_CVMCOUNT                                                          
NET: Registered protocol family 2                                                                             
TCP established hash table entries: 4096 (order: 3, 32768 bytes)                                              
TCP bind hash table entries: 4096 (order: 4, 65536 bytes)                                                     
TCP: Hash tables configured (established 4096 bind 4096)                                                      
UDP hash table entries: 256 (order: 1, 8192 bytes)                                                            
UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)                                                       
NET: Registered protocol family 1                                                                             
RPC: Registered named UNIX socket transport module.                                                           
RPC: Registered udp transport module.                                                                         
RPC: Registered tcp transport module.                                                                         
RPC: Registered tcp NFSv4.1 backchannel transport module.                                                     
Initialise system trusted keyrings                                                                            
workingset: timestamp_bits=46 max_order=17 bucket_order=0                                                     
NFS: Registering the id_resolver key type                                                                     
Key type id_resolver registered                                                                               
Key type id_legacy registered                                                                                 
Key type asymmetric registered                                                                                
Asymmetric key parser 'x509' registered                                                                       
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)                                          
io scheduler noop registered                                                                                  
io scheduler deadline registered                                                                              
io scheduler cfq registered (default)                                                                         
io scheduler mq-deadline registered                                                                           
io scheduler kyber registered                                                                                 
octeon_gpio 1070000000800.gpio-controller: OCTEON GPIO driver probed.                                         
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled                                                      
console [ttyS0] disabled                                                                                      
1180000000800.serial: ttyS0 at MMIO 0x1180000000800 (irq = 41, base_baud = 31250000) is a OCTEON              
console [ttyS0] enabled                                                                                       
console [ttyS0] enabled                                                                                       
bootconsole [early0] disabled                                                                                 
bootconsole [early0] disabled                                                                                 
1180000000c00.serial: ttyS1 at MMIO 0x1180000000c00 (irq = 42, base_baud = 31250000) is a OCTEON              
octeon_rng octeon_rng: Octeon Random Number Generator                                                         
cacheinfo: Failed to find cpu0 device node                                                                    
cacheinfo: Unable to detect cache hierarchy for CPU 0                                                         
brd: module loaded                                                                                            
libphy: mdio_octeon: probed                                                                                   
[Firmware Warn]: /soc@0/mdio@1180000001800/ethernet-phy@7: Whitelisted compatible string. Please remove       
[Firmware Warn]: /soc@0/mdio@1180000001800/ethernet-phy@6: Whitelisted compatible string. Please remove       
[Firmware Warn]: /soc@0/mdio@1180000001800/ethernet-phy@5: Whitelisted compatible string. Please remove       
mdio_octeon 1180000001800.mdio: Probed                                                                        
libphy: Fixed MDIO Bus: probed                                                                                
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver                                                    
ehci-pci: EHCI PCI platform driver                                                                            
ehci-platform: EHCI generic platform driver                                                                   
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver                                                        
ohci-pci: OHCI PCI platform driver                                                                            
ohci-platform: OHCI generic platform driver                                                                   
usbcore: registered new interface driver usb-storage                                                          
i2c-octeon 1180000001000.i2c: probed                                                                          
octeon_wdt: Initial granularity 5 Sec                                                                         
device-mapper: ioctl: 4.37.0-ioctl (2017-09-20) initialised: dm-devel@redhat.com                              
usbcore: registered new interface driver usbhid                                                               
usbhid: USB HID core driver                                                                                   
Interface 0 has 3 ports (RGMII)                                                                               
octeon-hcd 16f0010000000.usbc: Octeon Host Controller                                                         
octeon-hcd 16f0010000000.usbc: new USB bus registered, assigned bus number 1                                  
octeon-hcd 16f0010000000.usbc: irq 56, io mem 0x00000000                                                      
hub 1-0:1.0: USB hub found                                                                                    
hub 1-0:1.0: 1 port detected                                                                                  
octeon-hcd 16f0010000000.usbc: Registered HCD for port 0 on irq 56                                            
oprofile: using timer interrupt.                                                                              
u32 classifier                                                                                                
    Actions configured                                                                                        
NET: Registered protocol family 10                                                                            
Segment Routing with IPv6                                                                                     
sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver                                                           
NET: Registered protocol family 17                                                                            
Key type dns_resolver registered                                                                              
Bootbus flash: Setting flash for 4MB flash at 0x1f800000                                                      
phys_mapped_flash: Found 1 x16 devices at 0x0 in 8-bit bank. Manufacturer ID 0x0000c2 Chip ID 0x0000a7        
Amd/Fujitsu Extended Query Table at 0x0040                                                                    
  Amd/Fujitsu Extended Query version 1.1.                                                                     
phys_mapped_flash: Swapping erase regions for top-boot CFI table.                                             
number of CFI chips: 1                                                                                        
3 cmdlinepart partitions found on MTD device phys_mapped_flash                                                
Creating 3 MTD partitions on "phys_mapped_flash":                                                             
0x000000000000-0x000000080000 : "boot0"                                                                       
0x000000080000-0x000000100000 : "boot1"                                                                       
0x000000300000-0x000000310000 : "eeprom"                                                                      
Loading compiled-in X.509 certificates                                                                        
Btrfs loaded, crc32c=crc32c-generic                                                                           
Key type encrypted registered                                                                                 
console [netcon0] enabled                                                                                     
netconsole: network logging started                                                                           
OF: fdt: not creating '/sys/firmware/fdt': CRC check failed                                                   
eth0: 100 Mbps Full duplex, port 0, queue 0                                                                   
IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready                                                            
usb 1-1: new high-speed USB device number 2 using octeon-hcd                                                  
usb-storage 1-1:1.0: USB Mass Storage device detected                                                         
scsi host0: usb-storage 1-1:1.0                                                                               
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready                                                       
IP-Config: Complete:                                                                                          
     device=eth0, hwaddr=dc:9f:db:29:da:ef, ipaddr=128.224.165.32, mask=255.255.254.0, gw=128.224.165.1       
     host=edge, domain=, nis-domain=(none)                                                                    
     bootserver=255.255.255.255, rootserver=128.224.178.20, rootpath=                                         
md: Waiting for all devices to be available before autodetect                                                 
md: If you don't use raid, use raid=noautodetect                                                              
md: Autodetecting RAID arrays.                                                                                
md: autorun ...                                                                                               
md: ... autorun DONE.                                                                                         
scsi 0:0:0:0: Direct-Access              USB DISK 2.0     PMAP PQ: 0 ANSI: 4                                  
sd 0:0:0:0: [sda] 7579008 512-byte logical blocks: (3.88 GB/3.61 GiB)                                         
sd 0:0:0:0: [sda] Write Protect is off                                                                        
sd 0:0:0:0: [sda] No Caching mode page found                                                                  
sd 0:0:0:0: [sda] Assuming drive cache: write through                                                         
 sda: sda1                                                                                                    
sd 0:0:0:0: [sda] Attached SCSI removable disk                                                                
random: crng init done                                                                                        
VFS: Unable to mount root fs via NFS, trying floppy.                                                          
VFS: Cannot open root device "nfs" or unknown-block(2,0): error -6                                            
Please append a correct "root=" boot option; here are the available partitions:                               
0100            4096 ram0                                                                                     
 (driver?)                                                                                                    
0101            4096 ram1                                                                                     
 (driver?)                                                                                                    
0102            4096 ram2                                                                                     
 (driver?)                                                                                                    
0103            4096 ram3                                                                                     
 (driver?)                                                                                                    
0104            4096 ram4                                                                                     
 (driver?)                                                                                                    
0105            4096 ram5                                                                                     
 (driver?)                                                                                                    
0106            4096 ram6                                                                                     
 (driver?)                                                                                                    
0107            4096 ram7                                                                                     
 (driver?)                                                                                                    
0108            4096 ram8                                                                                     
 (driver?)                                                                                                    
0109            4096 ram9                                                                                     
 (driver?)                                                                                                    
010a            4096 ram10                                                                                    
 (driver?)                                                                                                    
010b            4096 ram11                                                                                    
 (driver?)                                                                                                    
010c            4096 ram12                                                                                    
 (driver?)                                                                                                    
010d            4096 ram13                                                                                    
 (driver?)                                                                                                    
010e            4096 ram14                                                                                    
 (driver?)                                                                                                    
010f            4096 ram15                                                                                    
 (driver?)                                                                                                    
1f00             512 mtdblock0                                                                                
 (driver?)                                                                                                    
1f01             512 mtdblock1                                                                                
 (driver?)                                                                                                    
1f02              64 mtdblock2                                                                                
 (driver?)                                                                                                    
0800         3789504 sda                                                                                      
 driver: sd                                                                                                   
  0801         3788480 sda1 465ecc6e-01                                                                       
                                                                                                              
VFS: Unable to mount root fs on unknown-block(2,0)                                                            
User configuration error - no valid root filesystem found                                                     
Kernel panic - not syncing: Invalid configuration from end user prevents continuing                           
---[ end Kernel panic - not syncing: Invalid configuration from end user prevents continuing                  
                                                                                                              
*** NMI Watchdog interrupt on Core 0x00 ***                                                                   
	$0	0x0000000000000000	at	0xffffffff8112a5fc                                                                  
	v0	0xffffffff81c0a218	v1	0x0000000000000000                                                                  
	a0	0x0000000000000020	a1	0xffffffff81c0a418                                                                  
	a2	0x0000000000000040	a3	0x0000000000000000                                                                  
	a4	0x0000000000000002	a5	0x0000000000000400                                                                  
	a6	0x0000004975a8394e	a7	0x0000000000000472                                                                  
	t0	0x800000041f903e28	t1	0x0000000000003ff0                                                                  
	t2	0x800000041f22e748	t3	0x0000000000000000                                                                  
	s0	0x0000000000000000	s1	0x0000000000000000                                                                  
	s2	0x0000000000000000	s3	0xffffffff8112a5a0                                                                  
	s4	0xffffffff81b10658	s5	0xffffffff81bdf780                                                                  
	s6	0xffffffff81c10000	s7	0xffffffffc00d5340                                                                  
	t8	0x000000000000000e	t9	0xffffffff8111f5f8                                                                  
	k0	0x0000000000000000	k1	0x0000000000000000                                                                  
	gp	0xffffffff81bd0000	sp	0x800000041f903e30                                                                  
	s8	0x800000041f8ccc80	ra	0xffffffff8112a5fc                                                                  
	err_epc	0xffffffff8112a600	epc	0xffffffff8111d820                                                            
	status	0x0000000010588ce4	cause	0x0000000040808c00                                                           
	sum0	0x002000f000008000	en0	0x0120200400008000                                                               
*** Chip soft reset soon ***                                                                                  
                                                                                                              
Looking for valid bootloader image....                                                                        
Jumping to start of image at address 0xbfc80000
Comment 1 Apoorv 2018-06-20 08:07:52 UTC
can you please try to boot up the edgerouter using USB and report the result ?
Comment 3 Yi Zhao 2018-07-23 00:47:59 UTC
Verified with 2.6 M2 RC1 build.
Poky git rev: b0f2f690a3513e4c9fa30fee1b8d7ac2d7140657