[FS#1500] GL-MT300A: No network after boot

LEDE Bugs lede-bugs at lists.infradead.org
Mon Apr 16 20:19:00 PDT 2018


A new Flyspray task has been opened.  Details are below. 

User who did this - J. D. (WBINVD) 

Attached to Project - OpenWrt/LEDE Project
Summary - GL-MT300A: No network after boot
Task Type - Bug Report
Category - Base system
Status - Unconfirmed
Assigned To - 
Operating System - All
Severity - Medium
Priority - Very Low
Reported Version - Trunk
Due in Version - Undecided
Due Date - Undecided
Details - Device affected: GL.iNet GL-MT300A

17.01.4 works fine.

Flashing snapshot image "openwrt-ramips-mt7620-gl-mt300a-squashfs-sysupgrade.bin" results in no network functionality.

Kernel boot log shows "Failed to connect to the switch." "swconfig list" shows nothing.



U-Boot 1.1.3 (Dec 23 2015 - 18:37:46)

Board: Ralink APSoC DRAM:  128 MB
relocate_code Pointer2 at: 87fac000
enable ephy clock...done. rf reg 29 = 5
SSC disabled.
spi_wait_nsec: 29
spi device id: ef 40 18 0 0 (40180000)
find flash: W25Q128FV
*** Warning - bad CRC, using default environment

======================================================
uboot-gl-mt7620 version: 0.0.0.1
--------------------------------------------------
ASIC 7620_MP (Port5None)
DRAM component: 1024 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 128 MBytes
Flash component: SPI Flash
Date:Dec 23 2015  Time:18:37:46
--------------------------------------------------
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768
--------------------------------------------------
 ##### The CPU freq = 580 MHZ ####
 ##### Memory size =128 Mbytes ####
======================================================

Press press WPS button for more than 2 seconds to run web failsafe mode

WPS button is pressed for:  0 second(s)

Catution: WPS button wasn't pressed or not long enough!
Continuing normal boot...


   *** ***         ** ** *****  ***   ***   ***    *
  *  *  *          ** ** * * * *   * *   * *   *   *
 *      *          ** **   *       * *   * *   *   **
 *      *    ***** ** **   *     **  *   * *   *  * *
 *  *** *          * * *   *       * *   * *   *  * *
 *   *  *          * * *   *       * *   * *   *  ****
  *  *  *   *      * * *   *   *   * *   * *   *  *  *
   **  ******      * * *  ***   ***   ***   ***  **  **


Hit SPACE to stop autoboot:  0
Found calibration data, checking calibration status...
Device calibrated. Checking MAC address...
Found MAC. Starting firmware...
## Booting image at bc050000 ...
   Image Name:   MIPS OpenWrt Linux-4.14.34
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1536066 Bytes =  1.5 MB
   Load Address: 80000000
   Entry Point:  80000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80000000) ...
## Giving linux memsize in MB, 128

Starting kernel ...

[    0.000000] Linux version 4.14.34 (buildbot at slashdirt-02) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r6696-ed4ac0e)) #0 Mon Apr 16 20:01:09 2018
[    0.000000] Board has DDR2
[    0.000000] Analog PMU set to hw control
[    0.000000] Digital PMU set to hw control
[    0.000000] SoC Type: MediaTek MT7620A ver:2 eco:6
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019650 (MIPS 24KEc)
[    0.000000] MIPS: machine is GL-MT300A
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] random: get_random_bytes called from start_kernel+0x8c/0x47c with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=0007604f
[    0.000000] Readback ErrCtl register=0007604f
[    0.000000] Memory: 124820K/131072K available (3555K kernel code, 180K rwdata, 856K rodata, 200K init, 222K bss, 6252K 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: 580MHz
[    0.000000] clocksource: systick: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 583261500 ns
[    0.000000] systick: enable autosleep mode
[    0.000000] systick: running - mult: 214748, shift: 32
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
[    0.000012] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[    0.007593] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.073535] pid_max: default: 32768 minimum: 301
[    0.078261] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.084640] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.097454] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.106994] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.112979] pinctrl core: initialized pinctrl subsystem
[    0.119274] NET: Registered protocol family 16
[    0.140645] random: fast init done
[    0.151853] rt2880_gpio 10000600.gpio: registering 24 gpios
[    0.157249] rt2880_gpio 10000600.gpio: registering 24 irq handlers
[    0.163639] rt2880_gpio 10000638.gpio: registering 16 gpios
[    0.169014] rt2880_gpio 10000638.gpio: registering 16 irq handlers
[    0.175397] rt2880_gpio 10000660.gpio: registering 32 gpios
[    0.180772] rt2880_gpio 10000660.gpio: registering 32 irq handlers
[    0.187152] rt2880_gpio 10000688.gpio: registering 1 gpios
[    0.192443] rt2880_gpio 10000688.gpio: registering 1 irq handlers
[    0.203204] clocksource: Switched to clocksource systick
[    0.209516] NET: Registered protocol family 2
[    0.214741] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.221469] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.227690] TCP: Hash tables configured (established 1024 bind 1024)
[    0.233957] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.239583] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.245986] NET: Registered protocol family 1
[    0.252566] rt-timer 10000100.timer: maximum frequency is 1220Hz
[    0.259266] Crashlog allocated RAM at address 0x3f00000
[    0.265779] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.277882] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.283523] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.301820] io scheduler noop registered
[    0.305623] io scheduler deadline registered (default)
[    0.311512] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.320673] console [ttyS0] disabled
[    0.324181] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a Palmchip BK-3103
[    0.333791] console [ttyS0] enabled
[    0.333791] console [ttyS0] enabled
[    0.340836] bootconsole [early0] disabled
[    0.340836] bootconsole [early0] disabled
[    0.349651] cacheinfo: Failed to find cpu0 device node
[    0.354941] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.367683] spi spi0.0: force spi mode3
[    0.382870] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    0.387745] 5 fixed-partitions partitions found on MTD device spi0.0
[    0.394239] Creating 5 MTD partitions on "spi0.0":
[    0.399138] 0x000000000000-0x000000030000 : "u-boot"
[    0.405119] 0x000000030000-0x000000040000 : "u-boot-env"
[    0.411385] 0x000000040000-0x000000050000 : "factory"
[    0.417475] 0x000000050000-0x000000fd0000 : "firmware"
[    2.289339] 2 uimage-fw partitions found on MTD device firmware
[    2.295424] 0x000000050000-0x0000001c7082 : "kernel"
[    2.301392] 0x0000001c7082-0x000000fd0000 : "rootfs"
[    2.307328] mtd: device 5 (rootfs) set to be root filesystem
[    2.314500] 1 squashfs-split partitions found on MTD device rootfs
[    2.320830] 0x0000003cb000-0x000000fd0000 : "rootfs_data"
[    2.327330] 0x000000ff0000-0x000001000000 : "art"
[    2.333778] libphy: Fixed MDIO Bus: probed
[    2.338550] rt2880-pinmux pinctrl: pin io40 already requested by pinctrl; cannot claim for 10100000.ethernet
[    2.348648] rt2880-pinmux pinctrl: pin-40 (10100000.ethernet) status -22
[    2.355501] rt2880-pinmux pinctrl: could not request pin 40 (io40) from group ephy  on device rt2880-pinmux
[    2.365451] mtk_soc_eth 10100000.ethernet: Error applying setting, reverse things back
[    2.373556] mtk_soc_eth: probe of 10100000.ethernet failed with error -22
[    2.380876] rt2880_wdt 10000120.watchdog: Initialized
[    2.387506] NET: Registered protocol family 10
[    2.398149] Segment Routing with IPv6
[    2.402024] NET: Registered protocol family 17
[    2.406685] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    2.419918] 8021q: 802.1Q VLAN Support v1.8
[    2.438844] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    2.447179] Freeing unused kernel memory: 200K
[    2.451715] This architecture does not have kernel memory protection.
[    3.851019] init: Console is alive
[    3.854826] init: - watchdog -
[    5.771751] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    6.032755] usbcore: registered new interface driver usbfs
[    6.038545] usbcore: registered new interface driver hub
[    6.044104] usbcore: registered new device driver usb
[    6.055363] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    6.063853] ehci-platform: EHCI generic platform driver
[    6.079564] phy phy-usbphy.0: remote usb device wakeup disabled
[    6.085620] phy phy-usbphy.0: UTMI 16bit 30MHz
[    6.090169] ehci-platform 101c0000.ehci: EHCI Host Controller
[    6.096076] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[    6.104283] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
[    6.118485] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
[    6.125830] hub 1-0:1.0: USB hub found
[    6.130122] hub 1-0:1.0: 1 port detected
[    6.137440] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    6.145489] ohci-platform: OHCI generic platform driver
[    6.151221] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
[    6.158206] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
[    6.166392] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
[    6.200164] hub 2-0:1.0: USB hub found
[    6.204409] hub 2-0:1.0: 1 port detected
[    6.212749] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    6.224295] 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.
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
[   10.681955] jffs2: notice: (381) jffs2_build_xattr_subsystem: complete building xattr subsystem, 3 of xdatum (0 unchecked, 3 orphan) and 3 of xref (3 dead, 0 orphan) found.
[   10.700657] mount_root: switching to jffs2 overlay
[   10.736502] overlayfs: upper fs does not support tmpfile.
[   10.751783] urandom-seed: Seeding with /etc/urandom.seed
[   11.013075] procd: - early -
[   11.016946] procd: - watchdog -
[   11.453532] procd: - watchdog -
[   11.457049] procd: - ubus -
[   11.537345] procd: - init -
Please press Enter to activate this console.
[   11.915869] kmodloader: loading kernel modules from /etc/modules.d/*
[   11.929394] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   11.947931] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[   11.956182] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[   11.967502] ip_tables: (C) 2000-2006 Netfilter Core Team
[   11.983109] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[   12.059562] xt_time: kernel timezone is -0000
[   12.236054] PPP generic driver version 2.4.2
[   12.243314] NET: Registered protocol family 24
[   12.279702] rt2800_wmac 10180000.wmac: loaded eeprom from mtd device "factory"
[   12.287156] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 6352, rev 0500 detected
[   12.295081] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 7620 detected
[   12.320640] kmodloader: done loading kernel modules from /etc/modules.d/*



BusyBox v1.28.3 () built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r6696-ed4ac0e
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root at OpenWrt:/# lsmod
cfg80211              212900  5 rt2x00lib,mt76x2e,mt7603e,mt76,mac80211
compat                   667  4 rt2800soc,rt2800pci,mac80211,cfg80211
crc_ccitt               1035  2 rt2800lib,ppp_async
crc_itu_t               1035  0
eeprom_93cx6            2250  1 rt2800pci
ehci_hcd               32759  1 ehci_platform
ehci_platform           4464  0
gpio_button_hotplug     6288  0
ip_tables              10317  3 iptable_nat,iptable_mangle,iptable_filter
ip6_tables             10081  2 ip6table_mangle,ip6table_filter
ip6t_REJECT              976  2
ip6table_filter          688  1
ip6table_mangle         1168  0
ipt_MASQUERADE           720  1
ipt_REJECT               944  2
iptable_filter           688  1
iptable_mangle           912  0
iptable_nat              752  1
leds_gpio               2832  0
mac80211              411999  7 rt2800lib,rt2x00soc,rt2x00pci,rt2x00lib,mt76x2e,mt7603e,mt76
mt76                   19656  2 mt76x2e,mt7603e
mt7603e                29737  0
mt76x2e                44217  0
nf_conntrack           60765 13 nf_conntrack_ipv6,ipt_MASQUERADE,xt_state,xt_nat,xt_conntrack,xt_REDIRECT,xt_CT,nf_nat_masquerade_ipv4,nf_conntrack_ipv4,nf_nat_ipv4,nf_nat,nf_flow_table,nf_conntrack_rtcache
nf_conntrack_ipv4       5008  9
nf_conntrack_ipv6       5120  3
nf_conntrack_rtcache    2512  0
nf_defrag_ipv4          1142  1 nf_conntrack_ipv4
nf_defrag_ipv6          9102  1 nf_conntrack_ipv6
nf_flow_table          12732  2 xt_FLOWOFFLOAD,nf_flow_table_hw
nf_flow_table_hw        2064  1
nf_log_common           2895  2 nf_log_ipv4,nf_log_ipv6
nf_log_ipv4             3312  0
nf_log_ipv6             3440  0
nf_nat                 10140  4 xt_nat,nf_nat_redirect,nf_nat_masquerade_ipv4,nf_nat_ipv4
nf_nat_ipv4             4017  1 iptable_nat
nf_nat_masquerade_ipv4    1596  1 ipt_MASQUERADE
nf_nat_redirect         1211  1 xt_REDIRECT
nf_reject_ipv4          2275  1 ipt_REJECT
nf_reject_ipv6          2696  1 ip6t_REJECT
nls_base                5056  1 usbcore
ohci_hcd               22303  1 ohci_platform
ohci_platform           4016  0
ppp_async               6256  0
ppp_generic            21570  3 pppoe,ppp_async,pppox
pppoe                   8112  0
pppox                   1386  1 pppoe
rt2800lib              88047  3 rt2800soc,rt2800pci,rt2800mmio
rt2800mmio              6057  2 rt2800soc,rt2800pci
rt2800pci               3616  0
rt2800soc               2464  0
rt2x00lib              34816  7 rt2800soc,rt2800pci,rt2800mmio,rt2800lib,rt2x00soc,rt2x00pci,rt2x00mmio
rt2x00mmio              2384  3 rt2800soc,rt2800pci,rt2800mmio
rt2x00pci               1682  1 rt2800pci
rt2x00soc               1234  1 rt2800soc
slhc                    4411  1 ppp_generic
usb_common              2519  1 usbcore
usbcore               126065  4 ohci_platform,ohci_hcd,ehci_platform,ehci_hcd
x_tables               13453 24 ipt_REJECT,ipt_MASQUERADE,xt_time,xt_tcpudp,xt_state,xt_nat,xt_multiport,xt_mark,xt_mac,xt_limit,xt_conntrack,xt_comment,xt_TCPMSS,xt_REDIRECT,xt_LOG,xt_FLOWOFFLOAD,xt_CT,iptable_mangle,iptable_filter,ip_tables,ip6t_REJECT,ip6table_mangle,ip6table_filter,ip6_tables
xt_CT                   2576  0
xt_FLOWOFFLOAD          2432  0
xt_LOG                   816  0
xt_REDIRECT              752  0
xt_TCPMSS               2768  0
xt_comment               528 95
xt_conntrack            2256 10
xt_limit                1040 20
xt_mac                   656  0
xt_mark                  720  0
xt_multiport            1264  0
xt_nat                  1584  0
xt_state                 752  0
xt_tcpudp               1808  8
xt_time                 1648  0
root at OpenWrt:~# swconfig
swconfig list
swconfig dev  [port |vlan ] (help|set  |get |load |show)
root at OpenWrt:/# swconfig list
root at OpenWrt:/# swconfig list
root at OpenWrt:/# [   50.360082] random: crng init done

More information can be found at the following URL:
https://bugs.openwrt.org/index.php?do=details&task_id=1500



More information about the lede-bugs mailing list