Modify

Opened 2 years ago

Closed 2 years ago

#21434 closed defect (fixed)

A5-V11 router build trunk ethernet fail.

Reported by: anonymous Owned by: developers
Priority: high Milestone: Designated Driver (Trunk)
Component: kernel Version: Trunk
Keywords: ethernet Cc:

Description

trunk@47985

This trunk build ethernet is broken. Cannot access from LAN, need to access from serial console.

The error message is "Failed to connect to the switch. Use the "list" command to see which switches are available."

Log is

[    0.000000] Linux version 4.3.0 (nott@ubuntu) (gcc version 5.2.0 (OpenWrt GCC 5.2.0 r47985)3 Thu Dec 24 11:35:36 ICT 2015
[    0.000000] SoC Type: Ralink RT5350 id:1 rev:3
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001964c (MIPS 24KEc)
[    0.000000] MIPS: machine is A5-V11
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000001ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000001ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000001ffffff]
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Writing ErrCtl register=0000e780
[    0.000000] Readback ErrCtl register=0000e780
[    0.000000] Memory: 29072K/32768K available (2538K kernel code, 114K rwdata, 328K rodata, 1init, 185K bss, 3696K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:256
[    0.000000] CPU Clock: 360MHz
[    0.000000] clocksource: systick: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 583261500 n
[    0.000000] systick: running - mult: 214748, shift: 32
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1061813 ns
[    0.000017] sched_clock: 32 bits at 180MHz, resolution 5ns, wraps every 11930464253ns
[    0.015660] Calibrating delay loop... 239.61 BogoMIPS (lpj=1198080)
[    0.090878] pid_max: default: 32768 minimum: 301
[    0.100328] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.113413] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.136055] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1914462750000 ns
[    0.155724] pinctrl core: initialized pinctrl subsystem
[    0.167338] NET: Registered protocol family 16
[    0.214801] rt2880_gpio 10000600.gpio: registering 22 gpios
[    0.225919] rt2880_gpio 10000600.gpio: registering 22 irq handlers
[    0.238617] rt2880_gpio 10000660.gpio: registering 6 gpios
[    0.249546] rt2880_gpio 10000660.gpio: registering 6 irq handlers
[    0.264218] clocksource: Switched to clocksource MIPS
[    0.276590] NET: Registered protocol family 2
[    0.286988] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.300882] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.313461] TCP: Hash tables configured (established 1024 bind 1024)
[    0.326315] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.337944] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.350890] NET: Registered protocol family 1
[    0.360437] rt-timer 10000100.timer: maximum frequency is 3662Hz
[    0.374095] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.431107] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.442702] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-20ed Hat, Inc.
[    0.468830] io scheduler noop registered
[    0.476617] io scheduler deadline registered (default)
[    0.488703] gpio-export gpio_export: 2 gpio(s) exported
[    0.499528] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.514714] console [ttyS0] disabled
[    0.521758] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is lmchip BK-3103
[    0.541572] console [ttyS0] enabled
[    0.541572] console [ttyS0] enabled
[    0.555340] bootconsole [early0] disabled
[    0.555340] bootconsole [early0] disabled
[    0.581732] spi spi0.0: force spi mode3
[    0.590190] m25p80 spi0.0: pm25lq032 (4096 Kbytes)
[    0.599926] 4 ofpart partitions found on MTD device spi0.0
[    0.610908] Creating 4 MTD partitions on "spi0.0":
[    0.620505] 0x000000000000-0x000000030000 : "u-boot"
[    0.633947] 0x000000030000-0x000000040000 : "u-boot-env"
[    0.648425] 0x000000040000-0x000000050000 : "factory"
[    0.662385] 0x000000050000-0x000000400000 : "firmware"
[    0.695992] 2 uimage-fw partitions found on MTD device firmware
[    0.707921] 0x000000050000-0x0000001507bd : "kernel"
[    0.721025] 0x0000001507bd-0x000000400000 : "rootfs"
[    0.734967] mtd: device 5 (rootfs) set to be root filesystem
[    0.746564] 1 squashfs-split partitions found on MTD device rootfs
[    0.759015] 0x000000380000-0x000000400000 : "rootfs_data"
[    0.777658] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[    0.795382] rt2880_wdt 10000120.watchdog: Initialized
[    0.806459] NET: Registered protocol family 17
[    0.815691] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update yocripts to load br_netfilter if you need this.
[    0.841029] Bridge firewalling registered
[    0.849078] 8021q: 802.1Q VLAN Support v1.8
[    0.880805] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    0.896593] Freeing unused kernel memory: 148K (802eb000 - 80310000)
[    3.372370] init: Console is alive
[    3.379834] init: - watchdog -
[    5.968986] usbcore: registered new interface driver usbfs
[    5.980360] usbcore: registered new interface driver hub
[    5.991330] usbcore: registered new device driver usb
[    6.066624] SCSI subsystem initialized
[    6.085237] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    6.101201] ehci-platform: EHCI generic platform driver
[    6.312445] phy phy-usbphy.0: remote usb device wakeup disabled
[    6.324310] phy phy-usbphy.0: UTMI 16bit 30MHz
[    6.333228] ehci-platform 101c0000.ehci: EHCI Host Controller
[    6.344818] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[    6.360942] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
[    6.384323] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
[    6.399060] hub 1-0:1.0: USB hub found
[    6.407530] hub 1-0:1.0: 1 port detected
[    6.420652] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    6.435707] ohci-platform: OHCI generic platform driver
[    6.446791] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
[    6.460551] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
[    6.476618] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
[    6.550347] hub 2-0:1.0: USB hub found
[    6.558821] hub 2-0:1.0: 1 port detected
[    6.579257] usbcore: registered new interface driver usb-storage
[    7.490059] init: - preinit -
Failed to connect to the switch. Use the "list" command to see which switches are available.
Failed to connect to the switch. Use the "list" command to see which switches are available.
Failed to connect to the switch. Use the "list" command to see which switches are available.
Failed to connect to the switch. Use the "list" command to see which switches are available.
Failed to connect to the switch. Use the "list" command to see which switches are available.
[    9.165064] random: procd urandom read with 14 bits of entropy available
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[   12.526672] mount_root: loading kmods from internal overlay
[   13.275460] jffs2: notice: (337) jffs2_build_xattr_subsystem: complete building xattr subsy, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   13.307631] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[   13.332340] block: extroot: not configured
[   13.458676] jffs2: notice: (334) jffs2_build_xattr_subsystem: complete building xattr subsy, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   13.492897] mount_root: loading kmods from internal overlay
[   14.147374] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[   14.166169] block: extroot: not configured
[   14.176517] mount_root: switching to jffs2 overlay
[   14.250721] procd: - early -
[   14.256902] procd: - watchdog -
[   15.220024] procd: - ubus -
[   16.237963] procd: - init -
Please press Enter to activate this console.
[   17.502167] Loading modules backported from Linux version master-2015-12-03-0-g1677f62
[   17.518120] Backport generated by backports.git backports-20151120-0-g906a6b3
[   17.546763] nf_conntrack version 0.5.0 (456 buckets, 1824 max)
[   17.626904] xt_time: kernel timezone is -0000
[   17.665550] cfg80211: World regulatory domain updated:
[   17.675934] cfg80211:  DFS Master region: unset
[   17.684654] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), _cac_time)
[   17.704122] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   17.720131] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   17.736134] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[   17.752133] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 200m), (N/A)
[   17.771077] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 200m), (0 s)
[   17.790017] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[   17.806185] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   17.822178] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[   17.857713] ip_tables: (C) 2000-2006 Netfilter Core Team
[   17.984973] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 5350, rev 0500 detected
[   18.000513] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 5350 detected
[   29.191486] device eth0.1 entered promiscuous mode
[   29.201219] device eth0 entered promiscuous mode
[   29.231220] br-lan: port 1(eth0.1) entered forwarding state
[   29.242556] br-lan: port 1(eth0.1) entered forwarding state
[   31.234236] br-lan: port 1(eth0.1) entered forwarding state
[   81.014298] random: nonblocking pool is initialized

Attachments (0)

Change History (11)

comment:1 Changed 2 years ago by anonymous

"$swconfig list" show nothing.

comment:2 Changed 2 years ago by anonymous

I tried to build trunk@47616 which also have extactly ethernet problem like trunk@47985.

My own build trunk@47551 have no ethernet problem. The initial problem build should be between 47551 to 47616.

comment:3 follow-up: Changed 2 years ago by firecode95@…

Does usb work for you? because I have problems with ethernet too need to wait long time for ip or set it manualy and after that wait for magic moment for connection of some second until it drops without any message. And usb just wont work at all. #21439

comment:4 in reply to: ↑ 3 ; follow-up: Changed 2 years ago by anonymous

Replying to firecode95@…:

Does usb work for you? because I have problems with ethernet too need to wait long time for ip or set it manualy and after that wait for magic moment for connection of some second until it drops without any message. And usb just wont work at all. #21439

For r47985, I not test USB. However, I will test it and will report USB useability soon.

comment:5 in reply to: ↑ 4 Changed 2 years ago by anonymous

Replying to anonymous:

Replying to firecode95@…:

Does usb work for you? because I have problems with ethernet too need to wait long time for ip or set it manualy and after that wait for magic moment for connection of some second until it drops without any message. And usb just wont work at all. #21439

For r47985, I not test USB. However, I will test it and will report USB useability soon.

USB work, USB thumb drive can mount, read or write.
ASUS RT-N13u may be different problem from A5-V11.

comment:6 Changed 2 years ago by anonymous

For r47985, after booting a while there is a error

WARNING: CPU: 0 PID: 0 at net/sched/sch_generic.c:303 dev_watchdog+0x1dc/0x260()

May be related to this topic
http://permalink.gmane.org/gmane.comp.embedded.openwrt.devel/37118

OT mention that,

But this old driver is replaced by a new upstream driver (Yay!), 
I really want to figure out what needs to be changed to get it
working again. I've attached the ethernet portion of the M2M.dts
[2]. Because I suspect its because of because mtk_soc_eth handles
devices with no real switch (hence the "Failed to connect to the
switch" messages) differently... and it was sort of an hack with
the old driver anyways. Any ideas?

comment:7 Changed 2 years ago by anonymous

The r47831 upgrade ramips kernel from 3.18 to 4.3. It look like A5-V11 is not work from there. Hope will fix it soon.

comment:8 follow-up: Changed 2 years ago by anonymous

Slightly related:

There seem to be 5 PHYs in this SoC:

mmio 0x101100c0 0x08002000
mmio 0x101100c0 0x08002001
mmio 0x101100c0 0x08002002
mmio 0x101100c0 0x08002003
mmio 0x101100c0 0x08002004

Even if they are not physical connected they consume power - really.
Wi-Fi off, all ethernet on: 203mA
Wi-Fi off, one ethernet on: 128mA

Can we shutdown all the PHY's except for [0x08002000] which will keep the eth0 and WiFi functional?

These commands turn off port 1-4:

swconfig dev switch0 port 1 set disable 1
swconfig dev switch0 port 2 set disable 1
swconfig dev switch0 port 3 set disable 1
swconfig dev switch0 port 4 set disable 1
swconfig dev switch0 set apply

https://forum.openwrt.org/viewtopic.php?id=57377&p=2

comment:9 in reply to: ↑ 8 Changed 2 years ago by anonymous

Replying to anonymous:

Slightly related:

There seem to be 5 PHYs in this SoC:

mmio 0x101100c0 0x08002000
mmio 0x101100c0 0x08002001
mmio 0x101100c0 0x08002002
mmio 0x101100c0 0x08002003
mmio 0x101100c0 0x08002004

Even if they are not physical connected they consume power - really.
Wi-Fi off, all ethernet on: 203mA
Wi-Fi off, one ethernet on: 128mA

Can we shutdown all the PHY's except for [0x08002000] which will keep the eth0 and WiFi functional?

These commands turn off port 1-4:

swconfig dev switch0 port 1 set disable 1
swconfig dev switch0 port 2 set disable 1
swconfig dev switch0 port 3 set disable 1
swconfig dev switch0 port 4 set disable 1
swconfig dev switch0 set apply

https://forum.openwrt.org/viewtopic.php?id=57377&p=2

Do you try commands and measure power consumption? Could those command reduce power consumption?

comment:10 Changed 2 years ago by AndreiM

Power consumption is an issue, but not before making the new ethernet driver work ;-) Looks like many other rt305x devices are affected (RT-N13U here). I reverted to the old ethernet driver for now, and trunk works as expected (except USB OTG that is, #21396).

Maybe we should consolidate all the ethernet reports (e.g., #21402, #21403).

comment:11 Changed 2 years ago by blogic

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

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.