Modify

Opened 5 years ago

Closed 5 years ago

#13811 closed defect (fixed)

swith-robo fails to load twice on boot

Reported by: Mitch BIgelow <ipha00@…> Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: kernel Version: Trunk
Keywords: Cc:

Description

On my WNR3500L v1 running r37132

During boot, switch-robo is loaded before bgmac and fails.

[    3.896000] roboswitch: Probing device 'eth0'
[    3.900000] roboswitch: No such device
[    3.904000] roboswitch: Probing device 'eth1'
[    3.908000] roboswitch: No such device
[    3.912000] roboswitch: Probing device 'eth2'
[    3.916000] roboswitch: No such device
[    3.920000] roboswitch: Probing device 'eth3'
[    3.928000] roboswitch: No such device
failed to insert /lib/modules/3.8.13/switch-robo.ko
[    5.736000] bgmac bcma0:1: Found PHY addr: 30 (NOREGS)
[    5.748000] bgmac bcma0:1: Support for Roboswitch not implemented
[    5.776000] usb-storage 1-1:1.0: Quirks match for vid 058f pid 6387: 400
[    5.784000] scsi0 : usb-storage 1-1:1.0
[    5.816000] bgmac: Broadcom 47xx GBit MAC driver loaded

After bgmac is loaded during init switch-robo is loaded again and fails while probing eth0

[   15.620000] roboswitch: Probing device 'eth0'
[   15.628000] roboswitch: error (-11) while accessing MII phy registers with ioctls
[   15.636000] roboswitch: Probing device 'eth1'
[   15.640000] roboswitch: No such device
[   15.644000] roboswitch: Probing device 'eth2'
[   15.648000] roboswitch: No such device
[   15.652000] roboswitch: Probing device 'eth3'
[   15.656000] roboswitch: No such device

After the second failure the router is inaccessible by any ethernet port. If I load the module again via a serial console it succeeds and is accessable after restarting /etc/init.d/network.

root@OpenWrt:/# insmod switch-robo
[   49.300000] roboswitch: Probing device 'eth0'
[   49.392000] roboswitch: found a 53115! at eth0

Attachments (2)

boot_log (18.9 KB) - added by Mitch BIgelow <ipha00@…> 5 years ago.
Full boot log
boot_log_linksys_e4200.txt (11.5 KB) - added by Mitch <mitchhubers@…> 5 years ago.
Linksys E4200 boot log r37187

Download all attachments as: .zip

Change History (8)

Changed 5 years ago by Mitch BIgelow <ipha00@…>

Full boot log

comment:1 Changed 5 years ago by anonymous

Just saw the same on Linksys E3200 V1 with r37154.

comment:2 Changed 5 years ago by blogic

  • Resolution set to fixed
  • Status changed from new to closed

comment:3 Changed 5 years ago by Mitch Bigelow <ipha00@…>

  • Resolution fixed deleted
  • Status changed from closed to reopened

Modules are loaded in the proper order now, but it still fails twice on boot with error (-11) while accessing MII phy registers with ioctls

Inserting the module manually after boot still works.

[    3.244000] bgmac bcma0:1: Found PHY addr: 30 (NOREGS)
[    3.256000] bgmac bcma0:1: Support for Roboswitch not implemented
[    3.264000] bgmac: Broadcom 47xx GBit MAC driver loaded
[    3.792000] SCSI subsystem initialized
[    3.860000] roboswitch: Probing device 'eth0'
[    3.864000] roboswitch: error (-11) while accessing MII phy registers with ioctls
[    3.872000] roboswitch: Probing device 'eth1'
[    3.876000] roboswitch: No such device
[    3.880000] roboswitch: Probing device 'eth2'
[    3.884000] roboswitch: No such device
[    3.888000] roboswitch: Probing device 'eth3'
[    3.892000] roboswitch: No such device
...
[   15.524000] roboswitch: Probing device 'eth0'
[   15.532000] roboswitch: error (-11) while accessing MII phy registers with ioctls
[   15.540000] roboswitch: Probing device 'eth1'
[   15.544000] roboswitch: No such device
[   15.548000] roboswitch: Probing device 'eth2'
[   15.552000] roboswitch: No such device
[   15.556000] roboswitch: Probing device 'eth3'
[   15.560000] roboswitch: No such device

comment:4 Changed 5 years ago by gz <goni@…>

same issue in wndr3700v3 05.07.13 trunk snapshot

Changed 5 years ago by Mitch <mitchhubers@…>

Linksys E4200 boot log r37187

comment:5 Changed 5 years ago by nightmare04@…

E3000 same problem:

[    0.000000] Linux version 3.8.13 (fnord@tschunk) (gcc version 4.6.4 (OpenWrt3
[    0.000000] CPU revision is: 00019740 (MIPS 74Kc)                            
[    0.000000] bcm47xx: using bcma bus                                          
[    0.000000] bcma: bus0: Found chip with id 0x4716, rev 0x01 and package 0x0A 
[    0.000000] bcma: bus0: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev)
[    0.000000] bcma: bus0: Core 3 found: MIPS 74K (manuf 0x4A7, id 0x82C, rev 0)
[    0.000000] bcma: bus0: Found rev 5 PMU (capabilities 0x11242C05)            
[    0.000000] bcma: bus0: Found parallel flash                                 
[    0.000000] bcma: bus0: Early bus registered                                 
[    0.000000] Determined physical RAM map:                                     
[    0.000000]  memory: 04000000 @ 00000000 (usable)                            
[    0.000000] Initrd not found or empty - disabling initrd                     
[    0.000000] Zone ranges:                                                     
[    0.000000]   Normal   [mem 0x00000000-0x03ffffff]                           
[    0.000000] Movable zone start for each node                                 
[    0.000000] Early memory node ranges                                         
[    0.000000]   node   0: [mem 0x00000000-0x03ffffff]                          
[    0.000000] On node 0 totalpages: 16384                                      
[    0.000000] free_area_init_node: node 0, pgdat 802e8a50, node_mem_map 8100000
[    0.000000]   Normal zone: 128 pages used for memmap                         
[    0.000000]   Normal zone: 0 pages reserved                                  
[    0.000000]   Normal zone: 16256 pages, LIFO batch:3                         
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.  
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32s
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768                    
[    0.000000] pcpu-alloc: [0] 0                                                
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pa6
[    0.000000] Kernel command line:  noinitrd console=ttyS0,115200              
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)              
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)    
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)     
[    0.000000] __ex_table already sorted, skipping sort                         
[    0.000000] Writing ErrCtl register=00000000                                 
[    0.000000] Readback ErrCtl register=00000000                                
[    0.000000] Memory: 61428k/65536k available (2484k kernel code, 4108k reserv)
[    0.000000] NR_IRQS:128                                                      
[    0.032000] Calibrating delay loop... 239.10 BogoMIPS (lpj=478208)           
[    0.032000] pid_max: default: 32768 minimum: 301                             
[    0.032000] Mount-cache hash table entries: 512                              
[    0.032000] NET: Registered protocol family 16                               
[    0.056000] bio: create slab <bio-0> at 0                                    
[    0.060000] Switching to clocksource MIPS                                    
[    0.068000] NET: Registered protocol family 2                                
[    0.068000] TCP established hash table entries: 512 (order: 0, 4096 bytes)   
[    0.068000] TCP bind hash table entries: 512 (order: -1, 2048 bytes)         
[    0.068000] TCP: Hash tables configured (established 512 bind 512)           
[    0.068000] TCP: reno registered                                             
[    0.068000] UDP hash table entries: 256 (order: 0, 4096 bytes)               
[    0.068000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)          
[    0.068000] NET: Registered protocol family 1                                
[    0.068000] PCI: CLS 0 bytes, default 32                                     
[    0.072000] bcma: bus0: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, re)
[    0.072000] bcma: bus0: Core 2 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0)
[    0.072000] bcma: bus0: Core 4 found: USB 2.0 Host (manuf 0x4BF, id 0x819, r)
[    0.072000] bcma: bus0: Core 5 found: PCIe (manuf 0x4BF, id 0x820, rev 0x0E,)
[    0.072000] bcma: bus0: Core 6 found: DDR1/DDR2 Memory Controller (manuf 0x4)
[    0.072000] bcma: bus0: Core 7 found: Internal Memory (manuf 0x4BF, id 0x80E)
[    0.072000] bcma: bus0: Core 8 found: I2S (manuf 0x4BF, id 0x834, rev 0x00, )
[    0.112000] bcma: bus0: Using SPROM revision 8 provided by platform.         
[    0.112000] bcma: bus0: PMU resource config unknown or not needed for device6
[    0.116000] bcma: bus0: Workarounds unknown or not needed for device 0x4716  
[    0.116000] bcma: bus0: Initializing MIPS core...                            
[    0.116000] bcma: bus0: Moved i2s interrupt to oob line 7 instead of 8       
[    0.116000] bcma: bus0: set_irq: core 0x0812, irq 3 => 3                     
[    0.116000] bcma: bus0: set_irq: core 0x082d, irq 4 => 4                     
[    0.116000] bcma: bus0: set_irq: core 0x0819, irq 5 => 5                     
[    0.116000] bcma: bus0: set_irq: core 0x0820, irq 6 => 6                     
[    0.116000] bcma: bus0: set_irq: core 0x0800, irq 2 => 2                     
[    0.116000] bcma: bus0: set_irq: core 0x0834, irq 0 => 2                     
[    0.116000] bcma: bus0: IRQ reconfiguration done                             
[    0.116000] bcma: core 0x0800, irq : 2(S)* 3  4  5  6  D  I                  
[    0.116000] bcma: core 0x082c, irq : 2(S)  3  4  5  6  D  I*                 
[    0.116000] bcma: core 0x0812, irq : 2(S)  3* 4  5  6  D  I                  
[    0.116000] bcma: core 0x082d, irq : 2(S)  3  4* 5  6  D  I                  
[    0.116000] bcma: core 0x0819, irq : 2(S)  3  4  5* 6  D  I                  
[    0.116000] bcma: core 0x0820, irq : 2(S)  3  4  5  6* D  I                  
[    0.116000] bcma: core 0x082e, irq : 2(S)  3  4  5  6  D* I                  
[    0.116000] bcma: core 0x080e, irq : 2(S)  3  4  5  6  D  I*                 
[    0.116000] bcma: core 0x0834, irq : 2(S)* 3  4  5  6  D  I                  
[    0.116000] bcma: bus0: PCIEcore in host mode found                          
[    0.292000] PCI host bridge to bus 0000:00                                   
[    0.292000] pci_bus 0000:00: root bus resource [mem 0x08000000-0x0bffffff]   
[    0.292000] pci_bus 0000:00: root bus resource [io  0x0100-0x07ff]           
[    0.292000] pci_bus 0000:00: No busn resource found for root bus, will use []
[    0.292000] pci 0000:00:00.0: [14e4:4716] type 00 class 0x060000             
[    0.292000] bcma: PCI: Fixing up bridge 0000:00:00.0                         
[    0.292000] bcma: PCI: Fixing up device 0000:00:00.0                         
[    0.292000] pci 0000:00:00.0: reg 10: [mem 0x00000000-0x00003fff 64bit]      
[    0.292000] pci 0000:00:00.0: reg 18: [mem 0x00000000-0x07ffffff 64bit]      
[    0.292000] pci 0000:00:00.0: supports D1 D2                                 
[    0.292000] pci 0000:00:00.1: [14e4:0000] type 00 class 0x060000             
[    0.292000] bcma: PCI: Fixing up bridge 0000:00:00.1                         
[    0.292000] bcma: PCI: Fixing up device 0000:00:00.1                         
[    0.292000] pci 0000:00:00.1: reg 10: [mem 0x00000000-0x00003fff 64bit]      
[    0.292000] pci 0000:00:00.1: reg 18: [mem 0x00000000-0x07ffffff 64bit]      
[    0.292000] pci 0000:00:00.1: supports D1 D2                                 
[    0.292000] pci 0000:00:01.0: [14e4:4322] type 00 class 0x028000             
[    0.292000] pci 0000:00:01.0: reg 10: [mem 0x00000000-0x00003fff 64bit]      
[    0.292000] bcma: PCI: Fixing up addresses 0000:00:01.0                      
[    0.292000] pci 0000:00:01.0: BAR 0: assigned [mem 0x08000000-0x08003fff 64b]
[    0.292000] pci 0000:00:01.0: supports D1 D2                                 
[    0.292000] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00      
[    0.296000] PCI: Enabling device 0000:00:01.0 (0000 -> 0002)                 
[    0.296000] bcma: PCI: Fixing up device 0000:00:01.0                         
[    0.316000] ssb: Found chip with id 0x4322, rev 0x01 and package 0x0A        
[    0.316000] ssb: Core 0 found: ChipCommon (cc 0x800, rev 0x17, vendor 0x4243)
[    0.316000] ssb: Core 1 found: IEEE 802.11 (cc 0x812, rev 0x10, vendor 0x424)
[    0.316000] ssb: Core 2 found: PCI-E (cc 0x820, rev 0x0B, vendor 0x4243)     
[    0.316000] ssb: Core 3 found: PCI (cc 0x804, rev 0x0E, vendor 0x4243)       
[    0.316000] ssb: Core 4 found: USB 2.0 Device (cc 0x81A, rev 0x05, vendor 0x)
[    0.316000] ssb: Core 5 found: UNKNOWN (cc 0x8FF, rev 0x00, vendor 0x4243)   
[    0.316000] ssb: Core 6 found: Internal Memory (cc 0x80E, rev 0x03, vendor 0)
[    0.336000] ssb: chipcommon status is 0x68040                                
[    0.336000] ssb: Found rev 2 PMU (capabilities 0x04583002)                   
[    0.336000] ssb: SPROM offset is 0x1000                                      
[    0.344000] ssb: WARNING: Using fallback SPROM failed (err -2)               
[    0.344000] ssb: WARNING: Invalid SPROM CRC (corrupt SPROM)                  
[    0.344000] ssb: SPROM revision 255 detected                                 
[    0.344000] ssb: Unsupported SPROM revision 255 detected. Will extract v1    
[    0.396000] ssb: Sonics Silicon Backplane found on PCI device 0000:00:01.0   
[    0.400000] bcma: bus0: Bus registered                                       
[    0.404000] squashfs: version 4.0 (2009/01/31) Phillip Lougher               
[    0.404000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORI.
[    0.404000] msgmni has been set to 119                                       
[    0.408000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major )
[    0.408000] io scheduler noop registered                                     
[    0.408000] io scheduler deadline registered (default)                       
[    0.408000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled         
[    0.440000] serial8250.0: ttyS0 at MMIO 0xb8000300 (irq = 2) is a U6_16550A  
[    0.896000] console [ttyS0] enabled                                          
[    0.904000] physmap platform flash device: 02000001 at 1c000000              
[    0.908000] physmap-flash.0: Found 1 x16 devices at 0x0 in 8-bit bank. Manufb
[    0.920000] physmap-flash.0: Found an alias at 0x800000 for the chip at 0x0  
[    0.920000] physmap-flash.0: Found an alias at 0x1000000 for the chip at 0x0 
[    0.920000] physmap-flash.0: Found an alias at 0x1800000 for the chip at 0x0 
[    0.920000] Amd/Fujitsu Extended Query Table at 0x0040                       
[    0.924000]   Amd/Fujitsu Extended Query version 1.1.                        
[    0.928000] number of CFI chips: 1                                           
[    0.988000] 6 bcm47xxpart partitions found on MTD device physmap-flash.0     
[    0.996000] Creating 6 MTD partitions on "physmap-flash.0":                  
[    1.000000] 0x000000000000-0x000000040000 : "boot"                           
[    1.008000] 0x000000040000-0x0000007f0000 : "linux"                          
[    1.016000] 0x00000004001c-0x000000040960 : "loader"                         
[    1.024000] 0x000000040960-0x000000148c00 : "kernel"                         
[    1.028000] mtd: partition "kernel" must either start or end on erase block y
[    1.044000] 0x000000148c00-0x0000007f0000 : "rootfs"                         
[    1.048000] mtd: partition "rootfs" must either start or end on erase block y
[    1.064000] mtd: partition "rootfs" set to be root filesystem                
[    1.072000] mtd: partition "rootfs_data" created automatically, ofs=320000,  
[    1.080000] 0x000000320000-0x0000007f0000 : "rootfs_data"                    
[    1.088000] 0x0000007f0000-0x000000800000 : "nvram"                          
[    1.100000] bcm47xx-wdt bcm47xx-wdt.0: BCM47xx Watchdog Timer enabled (30 se)
[    1.108000] TCP: cubic registered                                            
[    1.112000] NET: Registered protocol family 17                               
[    1.116000] Bridge firewalling registered                                    
[    1.120000] 8021q: 802.1Q VLAN Support v1.8                                  
[    1.136000] VFS: Mounted root (squashfs filesystem) readonly on device 31:4. 
[    1.144000] Freeing unused kernel memory: 208k freed                         
[    2.908000] bgmac bcma0:1: Found PHY addr: 30 (NOREGS)                       
[    2.916000] bgmac bcma0:1: Support for Roboswitch not implemented            
[    2.924000] bgmac: Broadcom 47xx GBit MAC driver loaded                      
[    3.064000] roboswitch: Probing device 'eth0'                                
[    3.068000] roboswitch: error (-11) while accessing MII phy registers with is
[    3.076000] roboswitch: Probing device 'eth1'                                
[    3.080000] roboswitch: No such device                                       
[    3.084000] roboswitch: Probing device 'eth2'                                
[    3.088000] roboswitch: No such device                                       
[    3.092000] roboswitch: Probing device 'eth3'                                
[    3.096000] roboswitch: No such device                                       
[    3.652000] Found board: "Linksys E3000 V1"                                  
[    3.656000] diag: kernel found a "Linksys E3000 V1"                          
[    3.660000] diag: Detected 'Linksys E3000 V1'                                
[    3.824000] pps_core: LinuxPPS API ver. 1 registered                         
[    3.828000] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giom>
[    3.860000] PTP clock support registered                                     
[    7.596000] jffs2: notice: (235) jffs2_build_xattr_subsystem: complete build.
[   10.448000] Loading modules backported from Linux version master-2013-06-27-5
[   10.456000] Backport generated by backports.git backports-20130617-4-ge3220f5
[   10.496000] cfg80211: Calling CRDA to update world regulatory domain         
[   10.516000] cfg80211: World regulatory domain updated:                       
[   10.520000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_ga)
[   10.528000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2)
[   10.536000] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2)
[   10.544000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2)
[   10.552000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2)
[   10.560000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2)
[   10.852000] NET: Registered protocol family 10                               
[   10.876000] roboswitch: Probing device 'eth0'                                
[   10.884000] roboswitch: error (-11) while accessing MII phy registers with is
[   10.888000] roboswitch: Probing device 'eth1'                                
[   10.896000] roboswitch: No such device                                       
[   10.896000] roboswitch: Probing device 'eth2'                                
[   10.904000] roboswitch: No such device                                       
[   10.908000] roboswitch: Probing device 'eth3'                                
[   10.912000] roboswitch: No such device                                       
[   11.388000] b43-phy0: Broadcom 4716 WLAN found (core revision 17)            
[   11.396000] b43-phy0: Found PHY: Analog 8, Type 4 (N), Revision 5            
[   11.484000] b43-phy1: Broadcom 4322 WLAN found (core revision 16)            
[   11.512000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'    
[   11.540000] b43-phy1: Found PHY: Analog 8, Type 4 (N), Revision 4            
[   11.576000] Broadcom 43xx driver loaded [ Features: PNL ]                    
[   11.780000] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'    
[   11.928000] Broadcom 43xx-legacy driver loaded [ Features: PLD ]             
[   12.176000] PPP generic driver version 2.4.2                                 
[   12.472000] ip_tables: (C) 2000-2006 Netfilter Core Team                     
[   12.556000] xt_time: kernel timezone is -0000                                
[   12.788000] NET: Registered protocol family 24                               
[   12.816000] nf_conntrack version 0.5.0 (963 buckets, 3852 max)               
[   13.908000] ip6_tables: (C) 2000-2006 Netfilter Core Team                    
[   18.408000] device eth0.1 entered promiscuous mode                           
[   18.416000] device eth0 entered promiscuous mode                             
[   18.420000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready        
[   18.448000] br-lan: port 1(eth0.1) entered forwarding state                  
[   18.452000] br-lan: port 1(eth0.1) entered forwarding state                  
[   20.456000] br-lan: port 1(eth0.1) entered forwarding state                  
root@OpenWrt:/# insmod switch-robo                                              
[  271.700000] roboswitch: Probing device 'eth0'                                
[  271.776000] roboswitch: found a 53115! at eth0  


comment:6 Changed 5 years ago by hauke

  • Resolution set to fixed
  • Status changed from reopened to closed

Thank you for reporting this issue.

This was fixed in r37284.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.